1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 18:07:14 +01:00
Sandu Liviu Catalin 4a6bfc086c Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface.
Deprecated the external module API. It was creating more problems than solving.
Removed most built-in libraries in favor of system libraries for easier maintenance.
Cleaned and secured code with help from static analyzers.
2021-01-30 08:51:39 +02:00

85 lines
1.4 KiB
C++

//
// Outline.h
//
// Library: PDF
// Package: PDFCore
// Module: Outline
//
// Definition of the Outline class.
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef PDF_Outline_INCLUDED
#define PDF_Outline_INCLUDED
#include "Poco/PDF/PDF.h"
#include "Poco/PDF/Resource.h"
#include "Poco/PDF/Destination.h"
namespace Poco {
namespace PDF {
class PDF_API Outline: public Resource<HPDF_Outline>
/// A Outline represents a PDF outline resource.
{
public:
typedef HPDF_Outline Type;
Outline(HPDF_Doc* pPDF, const HPDF_Outline& outline, const std::string& name = "");
/// Creates the outline.
Outline(const Outline& other);
/// Copy creates the resource.
~Outline();
/// Destroys the outline.
Outline& operator = (const Outline& resource);
/// Assignment operator.
void open();
/// Opens the outline.
void close();
/// Closes the outline.
void destination(const Destination& dest);
/// Sets the destination for this outline.
};
//
// inlines
//
inline void Outline::open()
{
HPDF_Outline_SetOpened(handle(), HPDF_TRUE);
}
inline void Outline::close()
{
HPDF_Outline_SetOpened(handle(), HPDF_FALSE);
}
inline void Outline::destination(const Destination& dest)
{
HPDF_Outline_SetDestination(handle(), dest);
}
} } // namespace Poco::PDF
#endif // PDF_Outline_INCLUDED