#include <sprk_publish.h>
Public Member Functions | |
bool | Empty () const |
bool | Equals (LinkKit const &in_kit) const |
LinkKit () | |
LinkKit (LinkKit const &in_kit) | |
LinkKit (LinkKit &&in_kit) | |
HPS::Type | ObjectType () const |
bool | operator!= (LinkKit const &in_kit) const |
LinkKit & | operator= (LinkKit const &in_kit) |
LinkKit & | operator= (LinkKit &&in_kit) |
bool | operator== (LinkKit const &in_kit) const |
void | Set (LinkKit const &in_kit) |
LinkKit & | SetBorderColor (RGBColor const &in_color) |
LinkKit & | SetBorderWidth (int in_width) |
LinkKit & | SetHighlighting (Highlighting::Mode in_mode) |
LinkKit & | SetJavaScript (char const *in_source, Source::Type in_type=Source::Type::Code) |
void | Show (LinkKit &out_kit) const |
bool | ShowBorderColor (RGBColor &out_color) const |
bool | ShowBorderWidth (int &out_width) const |
bool | ShowHighlighting (Highlighting::Mode &out_mode) const |
bool | ShowJavaScript (UTF8 &out_source, Source::Type &out_type) const |
LinkKit & | UnsetBorderColor () |
LinkKit & | UnsetBorderWidth () |
LinkKit & | UnsetEverything () |
LinkKit & | UnsetHighlighting () |
LinkKit & | UnsetJavaScript () |
![]() | |
Sprocket (HPS::Sprocket const &in_that)=default | |
Sprocket (Sprocket &&in_that) | |
![]() | |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (HPS::Type in_mask) const |
Object (Object const &that) | |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
HPS::Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The LinkKit class is a user space object. It acts as the container for all data that can be used to specify a link for a Publish PDF.
HPS::Publish::LinkKit::LinkKit | ( | ) |
The default constructor creates an empty LinkKit object.
HPS::Publish::LinkKit::LinkKit | ( | LinkKit const & | in_kit | ) |
HPS::Publish::LinkKit::LinkKit | ( | LinkKit && | in_kit | ) |
|
virtual |
Indicates whether this LinkKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Publish::LinkKit::Equals | ( | LinkKit const & | in_kit | ) | const |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Object.
bool HPS::Publish::LinkKit::operator!= | ( | LinkKit const & | in_kit | ) | const |
bool HPS::Publish::LinkKit::operator== | ( | LinkKit const & | in_kit | ) | const |
void HPS::Publish::LinkKit::Set | ( | LinkKit const & | in_kit | ) |
Sets the color of the border for the link. This corresponds to the value that will be passed to A3DPDFLinkData::m_sColor.
in_color | The color of the border for the link. |
LinkKit& HPS::Publish::LinkKit::SetBorderWidth | ( | int | in_width | ) |
Sets the border width in points for the link. This corresponds to the value that will be passed to A3DPDFLinkData::m_iBorderWidth.
in_width | The border width in points for the link. |
LinkKit& HPS::Publish::LinkKit::SetHighlighting | ( | Highlighting::Mode | in_mode | ) |
Sets the highlighting mode for the link. This corresponds to the value that will be passed to A3DPDFLinkData::m_eHighlightingMode.
in_mode | The highlighting mode for the link. |
LinkKit& HPS::Publish::LinkKit::SetJavaScript | ( | char const * | in_source, |
Source::Type | in_type = Source::Type::Code |
||
) |
Sets the JavaScript source or file for the link. This corresponds to the value that will be passed to A3DPDFLinkData::m_pcJavascriptString.
in_source | The JavaScript source or file (depending on the next argument) for the link. |
in_type | The type of the preceding argument. Defaults to Source::Type::Code. |
void HPS::Publish::LinkKit::Show | ( | LinkKit & | out_kit | ) | const |
bool HPS::Publish::LinkKit::ShowBorderColor | ( | RGBColor & | out_color | ) | const |
Shows the border color setting.
out_color | The border color of the link. |
bool HPS::Publish::LinkKit::ShowBorderWidth | ( | int & | out_width | ) | const |
Shows the border width setting.
out_width | The border width of the link. |
bool HPS::Publish::LinkKit::ShowHighlighting | ( | Highlighting::Mode & | out_mode | ) | const |
Shows the highlighting mode setting.
out_mode | The highlighting mode of the link. |
bool HPS::Publish::LinkKit::ShowJavaScript | ( | UTF8 & | out_source, |
Source::Type & | out_type | ||
) | const |
Shows the JavaScript setting.
out_source | The JavaScript source or file (depending on the next argument) for the link. |
out_type | The type of the preceding argument. |
LinkKit& HPS::Publish::LinkKit::UnsetBorderColor | ( | ) |
Removes the border color setting.
LinkKit& HPS::Publish::LinkKit::UnsetBorderWidth | ( | ) |
Removes the border width setting.
LinkKit& HPS::Publish::LinkKit::UnsetEverything | ( | ) |
Removes all data from the link.
LinkKit& HPS::Publish::LinkKit::UnsetHighlighting | ( | ) |
Removes the highlighting mode setting.
LinkKit& HPS::Publish::LinkKit::UnsetJavaScript | ( | ) |
Removes the JavaScript setting.