#include <cannotation.h>
Public Member Functions | |
| IAnnotInitializator::SupportedList | getSupportedList () const |
| virtual bool | operator() (boost::shared_ptr< CDict > &annotDict, std::string annotType) |
Static Public Attributes | |
| static std::string | CONTENTS = "link" |
| static std::string | DEST = "" |
| static std::string | H = "N" |
Initializator for Link annotation.
Initializes link annotation. Default values for link specific annotation dictionary fields are stored in public static class fields and so can be changed be class user.
| IAnnotInitializator::SupportedList pdfobjects::utils::LinkAnnotInitializer::getSupportedList | ( | ) | const [virtual] |
Returns supported type.
Implements pdfobjects::utils::IAnnotInitializator.
| bool pdfobjects::utils::LinkAnnotInitializer::operator() | ( | boost::shared_ptr< CDict > & | annotDict, | |
| std::string | annotType | |||
| ) | [virtual] |
Initializes Link annotation.
| annotDict | Annotation dictionary to initialize. | |
| annotType | Name of the annotation type to initialize (must be Link). |
Checks if given annotType is Link and if yes, initializes given dictionary as Link annotation. Otherwise immediately returns with false.
Assumes that following entries are initialized: Type, P, Rect, M.
Initialization doesn't do any checking and so annotation dictioanries initialized to different type shouldn't be used here. Result may be incorrect annotation dictionary in such situation.
Implements pdfobjects::utils::IAnnotInitializator.
References pdfobjects::utils::checkAndReplace(), CONTENTS, DEST, pdfobjects::CObjectFactory< Type >::getInstance(), and H.
string pdfobjects::utils::LinkAnnotInitializer::CONTENTS = "link" [static] |
Default value for Contents entry in Annotation dictionary. Value is empty string by default.
Referenced by operator()().
string pdfobjects::utils::LinkAnnotInitializer::DEST = "" [static] |
Default value for Dest entry in Annotation dictionary.
Referenced by operator()().
string pdfobjects::utils::LinkAnnotInitializer::H = "N" [static] |
Default value for H (highlight mode) entry in Annotation dictionary.
Referenced by operator()().