REFERENCE MANUAL
#include <sprk_publish.h>
Public Member Functions | |
bool | Empty () const |
bool | Equals (TextKit const &in_kit) const |
Type | ObjectType () const |
bool | operator!= (TextKit const &in_kit) const |
TextKit & | operator= (TextKit const &in_kit) |
TextKit & | operator= (TextKit &&in_kit) |
bool | operator== (TextKit const &in_kit) const |
void | Set (TextKit const &in_kit) |
TextKit & | SetColor (RGBColor const &in_color) |
TextKit & | SetFont (Text::Font::Name in_font) |
TextKit & | SetFont (char const *in_font_name, Text::Language in_language, bool in_embed_font) |
TextKit & | SetSize (int in_size) |
TextKit & | SetText (char const *in_text) |
void | Show (TextKit &out_kit) const |
bool | ShowColor (RGBColor &out_color) const |
bool | ShowFont (Text::Font::Type &out_type, Text::Font::Name &out_font, UTF8 &out_font_name, Text::Language &out_language, bool &out_embed_font) const |
bool | ShowSize (int &out_size) const |
bool | ShowText (UTF8 &out_text) const |
TextKit () | |
TextKit (TextKit const &in_kit) | |
TextKit (TextKit &&in_kit) | |
TextKit & | UnsetColor () |
TextKit & | UnsetEverything () |
TextKit & | UnsetFont () |
TextKit & | UnsetSize () |
TextKit & | UnsetText () |
![]() | |
Sprocket (Sprocket &&in_that) | |
![]() | |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (Type in_mask) const |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
Type | Type () const |
Static Public Member Functions | |
static TextKit | GetDefault () |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
Additional Inherited Members | |
![]() | |
enum | UpdateType { Synchronous, Asynchronous } |
The TextKit class is a user space object. It acts as the container for all data that can be used to specify a text string for a Publish PDF.
Publish::TextKit::TextKit | ( | ) |
The default constructor creates an empty TextKit object.
Publish::TextKit::TextKit | ( | TextKit const & | in_kit | ) |
Publish::TextKit::TextKit | ( | TextKit && | in_kit | ) |
|
virtual |
bool Publish::TextKit::Equals | ( | TextKit const & | in_kit | ) | const |
|
static |
Creates a TextKit which contains the default settings. The returned object will not necessarily have values for every setting, but it will have them where it is reasonable to have a default. These values will be used for export unless a setting is overridden by the TextKit passed to File::Export.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from Object.
bool Publish::TextKit::operator!= | ( | TextKit const & | in_kit | ) | const |
bool Publish::TextKit::operator== | ( | TextKit const & | in_kit | ) | const |
void Publish::TextKit::Set | ( | TextKit const & | in_kit | ) |
Sets the color for the text. This corresponds to the value that will be passed to A3DPDFTextData::m_sColor or A3DPDFTextDataEx::m_sColor.
in_color | Color for the text. |
TextKit& Publish::TextKit::SetFont | ( | Text::Font::Name | in_font | ) |
Sets a built-in font for the text. This corresponds to the value that will be passed to A3DPDFTextData::m_eFontName.
in_font | The built-in font for the text. |
TextKit& Publish::TextKit::SetFont | ( | char const * | in_font_name, |
Text::Language | in_language, | ||
bool | in_embed_font | ||
) |
Sets an explicit font for the text. As of Publish 5.11, this is only known to create a valid text string in the PDF if the font name is "MS Gothic" and the language is Japanese, otherwise the creation will fail.
in_font_name | UTF8-encoded font name for the text. This corresponds to the value that will be passed to A3DPDFTextDataEx::m_pcFontName. |
in_language | The language for the font. This corresponds to the value that will be passed to A3DPDFTextDataEx::m_eLanguage. |
in_embed_font | Whether to embed the font in the PDF. This corresponds to the value that will be passed to A3DPDFTextDataEx::m_bEmbedFontInPDF. |
TextKit& Publish::TextKit::SetSize | ( | int | in_size | ) |
Sets the size in points for the text. This corresponds to the value that will be passed to A3DPDFTextData::m_iFontSize or A3DPDFTextDataEx::m_iFontSize.
in_size | The size in points for the text. |
TextKit& Publish::TextKit::SetText | ( | char const * | in_text | ) |
Sets the text string for the text. This corresponds to the value that will be passed to A3DPDFTextData::m_pcTextString or A3DPDFTextDataEx::m_pcTextString.
in_text | UTF8-encoded text string for the text. |
void Publish::TextKit::Show | ( | TextKit & | out_kit | ) | const |
bool Publish::TextKit::ShowColor | ( | RGBColor & | out_color | ) | const |
Shows the color setting
out_color | The color for the text. |
bool Publish::TextKit::ShowFont | ( | Text::Font::Type & | out_type, |
Text::Font::Name & | out_font, | ||
UTF8 & | out_font_name, | ||
Text::Language & | out_language, | ||
bool & | out_embed_font | ||
) | const |
Shows the font setting.
out_type | The type of font for the text. |
out_font | The built-in font for the text. This is only valid if out_type is Text::Font::Type::BuiltIn. |
out_font_name | The explicit font name for the text. This is only valid if out_type is Text::Font::Type::Explicit. |
out_language | The language for the font. This is only valid if out_type is Text::Font::Type::Explicit. |
out_embed_font | Whether to embed the font in the PDF. This is only valid if out_type is Text::Font::Type::Explicit. |
bool Publish::TextKit::ShowSize | ( | int & | out_size | ) | const |
Shows the size setting.
out_size | The size for the text. |
bool Publish::TextKit::ShowText | ( | UTF8 & | out_text | ) | const |
Shows the text string setting.
out_text | The text string for the text. |
TextKit& Publish::TextKit::UnsetColor | ( | ) |
Removes the color setting.
TextKit& Publish::TextKit::UnsetEverything | ( | ) |
Removes all data from the text.
TextKit& Publish::TextKit::UnsetFont | ( | ) |
Removes the font setting.
TextKit& Publish::TextKit::UnsetSize | ( | ) |
Removes the size setting.
TextKit& Publish::TextKit::UnsetText | ( | ) |
Removes the text string setting.