| 1 | // |
|---|---|
| 2 | // Outline.cpp |
| 3 | // |
| 4 | // Library: PDF |
| 5 | // Package: PDFCore |
| 6 | // Module: Outline |
| 7 | // |
| 8 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
| 9 | // and Contributors. |
| 10 | // |
| 11 | // SPDX-License-Identifier: BSL-1.0 |
| 12 | // |
| 13 | |
| 14 | |
| 15 | #include "Poco/PDF/Outline.h" |
| 16 | #include "Poco/PDF/PDFException.h" |
| 17 | |
| 18 | |
| 19 | namespace Poco { |
| 20 | namespace PDF { |
| 21 | |
| 22 | |
| 23 | Outline::Outline(HPDF_Doc* pPDF, const HPDF_Outline& outline, const std::string& name): |
| 24 | Resource<HPDF_Outline>(pPDF, outline, name) |
| 25 | { |
| 26 | open(); |
| 27 | } |
| 28 | |
| 29 | |
| 30 | Outline::~Outline() |
| 31 | { |
| 32 | } |
| 33 | |
| 34 | |
| 35 | Outline::Outline(const Outline& other): |
| 36 | Resource<HPDF_Outline>(other) |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | |
| 41 | Outline& Outline::operator = (const Outline& outline) |
| 42 | { |
| 43 | Outline tmp(outline); |
| 44 | swap(tmp); |
| 45 | return *this; |
| 46 | } |
| 47 | |
| 48 | |
| 49 | } } // namespace Poco::PDF |
| 50 |