The TableKit class is a user space object. More...
#include <sprk_publish.h>
Public Member Functions | |
TableKit () | |
The default constructor creates an empty TableKit object. More... | |
TableKit (TableKit const &in_kit) | |
The copy constructor creates a new TableKit object that contains the same settings as the source TableKit. More... | |
TableKit (TableKit &&in_kit) | |
The move constructor creates a TableKit by transferring the underlying object of the rvalue reference to this TableKit. More... | |
virtual | ~TableKit () |
HPS::Type | ObjectType () const |
void | Set (TableKit const &in_kit) |
Copies the source TableKit into this TableKit. More... | |
void | Show (TableKit &out_kit) const |
Copies this TableKit into the given TableKit. More... | |
TableKit & | operator= (TableKit const &in_kit) |
Copies the source TableKit into this TableKit. More... | |
TableKit & | operator= (TableKit &&in_kit) |
The move assignment operator transfers the underlying object of the rvalue reference to this TableKit. More... | |
bool | Empty () const |
Indicates whether this TableKit has any values set on it. More... | |
bool | Equals (TableKit const &in_kit) const |
Check if the source TableKit is equivalent to this TableKit. More... | |
bool | operator== (TableKit const &in_kit) const |
Check if the source TableKit is equivalent to this TableKit. More... | |
bool | operator!= (TableKit const &in_kit) const |
Check if the source TableKit is not equivalent to this TableKit. More... | |
TableKit & | SetHTML (char const *in_source, Source::Type in_type=Source::Type::Code) |
Sets the HTML table source or file. More... | |
TableKit & | SetHTMLStyle (char const *in_source, Source::Type in_type=Source::Type::Code) |
Sets the HTML table style source or file. More... | |
TableKit & | SetLink (int in_row, int in_column, LinkKit const &in_link) |
Adds a link to this table at the specified row and column. More... | |
TableKit & | SetText (int in_row, int in_column, TextKit const &in_text) |
Adds text to this table at the specified row and column. More... | |
TableKit & | SetButton (int in_row, int in_column, ButtonKit const &in_button) |
Adds a button to this table at the specified row and column. More... | |
TableKit & | SetTextField (int in_row, int in_column, TextFieldKit const &in_text_field) |
Adds a text field to this table at the specified row and column. More... | |
TableKit & | UnsetHTML () |
Removes the HTML table setting. More... | |
TableKit & | UnsetHTMLStyle () |
Removes the HTML table style setting. More... | |
TableKit & | UnsetLink (int in_row, int in_column) |
Removes the link at the specified row and column. More... | |
TableKit & | UnsetText (int in_row, int in_column) |
Removes the text at the specified row and column. More... | |
TableKit & | UnsetButton (int in_row, int in_column) |
Removes the button at the specified row and column. More... | |
TableKit & | UnsetTextField (int in_row, int in_column) |
Removes the text field at the specified row and column. More... | |
TableKit & | UnsetEverything () |
Removes all data from the table. More... | |
bool | ShowHTML (UTF8 &out_source, Source::Type &out_type) const |
Shows the HTML table setting. More... | |
bool | ShowHTMLStyle (UTF8 &out_source, Source::Type &out_type) const |
Shows the HTML table style setting. More... | |
bool | ShowLink (int in_row, int in_column, LinkKit &out_link) const |
Shows the link at the specified row and column. More... | |
bool | ShowText (int in_row, int in_column, TextKit &out_text) const |
Shows the text at the specified row and column. More... | |
bool | ShowButton (int in_row, int in_column, ButtonKit &out_button) const |
Shows the button at the specified row and column. More... | |
bool | ShowTextField (int in_row, int in_column, TextFieldKit &out_text_field) const |
Shows the link at the specified row and column. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::PublishTableKit |
The TableKit class is a user space object.
It acts as the container for all data that can be used to specify a table for a Publish PDF.
HPS::Publish::TableKit::TableKit | ( | ) |
The default constructor creates an empty TableKit object.
HPS::Publish::TableKit::TableKit | ( | TableKit const & | in_kit | ) |
HPS::Publish::TableKit::TableKit | ( | TableKit && | in_kit | ) |
|
virtual |
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
virtual |
Indicates whether this TableKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Publish::TableKit::Equals | ( | TableKit const & | in_kit | ) | const |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::Publish::TableKit::operator!= | ( | TableKit const & | in_kit | ) | const |
bool HPS::Publish::TableKit::operator== | ( | TableKit const & | in_kit | ) | const |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::Publish::TableKit::Set | ( | TableKit const & | in_kit | ) |
TableKit& HPS::Publish::TableKit::SetButton | ( | int | in_row, |
int | in_column, | ||
ButtonKit const & | in_button | ||
) |
Adds a button to this table at the specified row and column.
This corresponds to the value that will be passed to A3DPDFPageInsertButtonInTable.
in_row | Row in which to add the button. |
in_column | Column in which to add the button. |
in_button | Button to add at the specified row and column in the table. |
TableKit& HPS::Publish::TableKit::SetHTML | ( | char const * | in_source, |
Source::Type | in_type = Source::Type::Code |
||
) |
Sets the HTML table source or file.
in_source | UTF8-encoded HTML table source or file (depending on the following argument). |
in_type | The type of the preceding argument. Defaults to Source::Type::Code. |
TableKit& HPS::Publish::TableKit::SetHTMLStyle | ( | char const * | in_source, |
Source::Type | in_type = Source::Type::Code |
||
) |
Adds a link to this table at the specified row and column.
This corresponds to the value that will be passed to A3DPDFPageInsertLinkInTable.
in_row | Row in which to add the link. |
in_column | Column in which to add the link. |
in_link | Link to add at the specified row and column in the table. |
Adds text to this table at the specified row and column.
This corresponds to the value that will be passed to A3DPDFPageInsertTextInTable.
in_row | Row in which to add the text. |
in_column | Column in which to add the text. |
in_text | Text to add at the specified row and column in the table. |
TableKit& HPS::Publish::TableKit::SetTextField | ( | int | in_row, |
int | in_column, | ||
TextFieldKit const & | in_text_field | ||
) |
Adds a text field to this table at the specified row and column.
This corresponds to the value that will be passed to A3DPDFPageInsertTextFieldInTable.
in_row | Row in which to add the text field. |
in_column | Column in which to add the text field. |
in_text_field | Text field to add at the specified row and column in the table. |
void HPS::Publish::TableKit::Show | ( | TableKit & | out_kit | ) | const |
bool HPS::Publish::TableKit::ShowButton | ( | int | in_row, |
int | in_column, | ||
ButtonKit & | out_button | ||
) | const |
Shows the button at the specified row and column.
in_row | Row in which to show the button. |
in_column | Column in which to show the button. |
out_button | The button at the specified row and column in the table. |
bool HPS::Publish::TableKit::ShowHTML | ( | UTF8 & | out_source, |
Source::Type & | out_type | ||
) | const |
bool HPS::Publish::TableKit::ShowHTMLStyle | ( | UTF8 & | out_source, |
Source::Type & | out_type | ||
) | const |
bool HPS::Publish::TableKit::ShowLink | ( | int | in_row, |
int | in_column, | ||
LinkKit & | out_link | ||
) | const |
Shows the link at the specified row and column.
in_row | Row in which to show the link. |
in_column | Column in which to show the link. |
out_link | The link at the specified row and column in the table. |
bool HPS::Publish::TableKit::ShowText | ( | int | in_row, |
int | in_column, | ||
TextKit & | out_text | ||
) | const |
Shows the text at the specified row and column.
in_row | Row in which to show the text. |
in_column | Column in which to show the text. |
out_text | The text at the specified row and column in the table. |
bool HPS::Publish::TableKit::ShowTextField | ( | int | in_row, |
int | in_column, | ||
TextFieldKit & | out_text_field | ||
) | const |
Shows the link at the specified row and column.
in_row | Row in which to show the link. |
in_column | Column in which to show the link. |
out_text_field | The text field at the specified row and column in the table. |
|
virtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented in HPS::UpdateOptionsControl, HPS::HighlightControl, HPS::SelectionOptionsControl, HPS::OffScreenWindowOptionsControl, HPS::ApplicationWindowOptionsControl, HPS::StandAloneWindowOptionsControl, HPS::AttributeLockControl, HPS::WindowInfoControl, HPS::DebuggingControl, HPS::SubwindowControl, HPS::ContourLineControl, HPS::VisualEffectsControl, HPS::TransformMaskControl, HPS::PostProcessEffectsControl, HPS::DrawingAttributeControl, HPS::HiddenLineAttributeControl, HPS::PerformanceControl, HPS::NURBSSurfaceAttributeControl, HPS::ConditionControl, HPS::StyleControl, HPS::PortfolioControl, HPS::MaterialMappingControl, HPS::TextureMatrixControl, HPS::ModellingMatrixControl, HPS::CurveAttributeControl, HPS::EdgeAttributeControl, HPS::LineAttributeControl, HPS::TextAttributeControl, HPS::CuttingSectionAttributeControl, HPS::CylinderAttributeControl, HPS::LightingAttributeControl, HPS::SphereAttributeControl, HPS::MarkerAttributeControl, HPS::CullingControl, HPS::ColorInterpolationControl, HPS::TransparencyControl, HPS::SelectabilityControl, HPS::CameraControl, HPS::VisibilityControl, HPS::BoundingControl, HPS::Kit, and HPS::Control.
TableKit& HPS::Publish::TableKit::UnsetButton | ( | int | in_row, |
int | in_column | ||
) |
Removes the button at the specified row and column.
TableKit& HPS::Publish::TableKit::UnsetEverything | ( | ) |
Removes all data from the table.
TableKit& HPS::Publish::TableKit::UnsetHTML | ( | ) |
TableKit& HPS::Publish::TableKit::UnsetHTMLStyle | ( | ) |
TableKit& HPS::Publish::TableKit::UnsetLink | ( | int | in_row, |
int | in_column | ||
) |
Removes the link at the specified row and column.
TableKit& HPS::Publish::TableKit::UnsetText | ( | int | in_row, |
int | in_column | ||
) |
Removes the text at the specified row and column.
TableKit& HPS::Publish::TableKit::UnsetTextField | ( | int | in_row, |
int | in_column | ||
) |
Removes the text field at the specified row and column.
|
static |