LayOut C API
|
Go to the source code of this file.
Functions | |
LO_RESULT | LOAutoTextDefinitionGetType (LOAutoTextDefinitionRef autotext, LOAutoTextDefinitionType *type) |
Gets the type of the specified auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetMandatory (LOAutoTextDefinitionRef autotext, bool *is_mandatory) |
Gets whether the specified auto-text definition is a mandatory definition. Mandatory auto-text definitions may not be removed from a document, and they may not be created through the API, but they may be modified. More... | |
LO_RESULT | LOAutoTextDefinitionGetDocument (LOAutoTextDefinitionRef autotext, LODocumentRef *document) |
Returns the document that this auto-text definition belongs to. More... | |
LO_RESULT | LOAutoTextDefinitionGetName (LOAutoTextDefinitionRef autotext, SUStringRef *name) |
Gets the name of the specified auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetName (LOAutoTextDefinitionRef autotext, const char *name) |
Sets the name of the specified auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetTag (LOAutoTextDefinitionRef autotext, SUStringRef *tag) |
Gets the tag string of the specified auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetIndex (LOAutoTextDefinitionRef autotext, size_t *index) |
Gets the index of the specified auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetCustomText (LOAutoTextDefinitionRef autotext, SUStringRef *custom_text) |
Gets the text string of the specified custom auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetCustomText (LOAutoTextDefinitionRef autotext, const char *custom_text) |
Sets the text string of the specified custom auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetDateFormat (LOAutoTextDefinitionRef autotext, SUStringRef *date_format) |
Gets the date format string of the specified date auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetDateFormat (LOAutoTextDefinitionRef autotext, const char *date_format) |
Sets the date format string of the specified date auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetDisplayFullPath (LOAutoTextDefinitionRef autotext, bool *is_display_full_path) |
Gets a boolean signifying if the full path is displayed for the specified file auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetDisplayFullPath (LOAutoTextDefinitionRef autotext, bool is_display_full_path) |
Sets whether the full path is displayed for the specified file auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetDisplayFileExtension (LOAutoTextDefinitionRef autotext, bool *is_display_file_ext) |
Gets a boolean signifying if the file extension is displayed for the specified file auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetDisplayFileExtension (LOAutoTextDefinitionRef autotext, bool is_display_file_ext) |
Sets whether the file extension is displayed for the specified file auto text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetPageNumberStyle (LOAutoTextDefinitionRef autotext, LOAutoTextDefinitionNumberingStyle *numbering_style) |
Gets the numbering style of the specified page number auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetPageNumberStyle (LOAutoTextDefinitionRef autotext, LOAutoTextDefinitionNumberingStyle numbering_style) |
Sets the numbering style of the specified page number auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetPageNumberStartIndex (LOAutoTextDefinitionRef autotext, int *start_index) |
Gets the index at which the auto-text definition starts numbering. More... | |
LO_RESULT | LOAutoTextDefinitionSetPageNumberStartIndex (LOAutoTextDefinitionRef autotext, int value) |
Sets the value at which to start counting. More... | |
LO_RESULT | LOAutoTextDefinitionGetStartPage (LOAutoTextDefinitionRef autotext, LOPageRef *page) |
Gets the page that the page number or page count auto-text definition starts numbering on. More... | |
LO_RESULT | LOAutoTextDefinitionSetStartPage (LOAutoTextDefinitionRef autotext, LOPageRef page) |
Sets the page that the page number or page count auto-text definition starts numbering on. More... | |
LO_RESULT | LOAutoTextDefinitionGetEndPage (LOAutoTextDefinitionRef autotext, LOPageRef *page) |
Gets the page the page count auto-text definition stops counting at. page may be returned as SU_INVALID, which indicates that the auto-text uses the last page in the document. More... | |
LO_RESULT | LOAutoTextDefinitionSetEndPage (LOAutoTextDefinitionRef autotext, LOPageRef page) |
Sets the page the page count auto-text definition stops counting at. This page must be after or the same as start page. If page is SU_INVALID, then the last page in the document will be used. More... | |
LO_RESULT | LOAutoTextDefinitionGetIncrement (LOAutoTextDefinitionRef autotext, int *increment) |
Gets the increment value of the specified sequence auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetIncrement (LOAutoTextDefinitionRef autotext, int increment) |
Sets the increment value of the specified sequence auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetSequenceFormat (LOAutoTextDefinitionRef autotext, SUStringRef *sequence_format) |
Gets the sequence format string of the specified date auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetSequenceFormat (LOAutoTextDefinitionRef autotext, const char *sequence_format) |
Sets the format string of the specified sequence auto-text definition. If the string is empty, the format string will be set to the default of ###. More... | |
LO_RESULT | LOAutoTextDefinitionRenumberSequence (LOAutoTextDefinitionRef autotext) |
Iterates through all uses of the auto-text definition and eliminates gaps and duplicates in the sequence. More... | |
LO_RESULT | LOAutoTextDefinitionGetNumberStyle (LOAutoTextDefinitionRef autotext, LOAutoTextDefinitionNumberingStyle *numbering_style) |
Gets the numbering style of the specified page number, page count, or sequence auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetNumberStyle (LOAutoTextDefinitionRef autotext, LOAutoTextDefinitionNumberingStyle numbering_style) |
Sets the numbering style of the specified page number, page count, or sequence auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionGetStartIndex (LOAutoTextDefinitionRef autotext, int *start_index) |
Gets the index at which the auto-text definition starts numbering. More... | |
LO_RESULT | LOAutoTextDefinitionSetStartIndex (LOAutoTextDefinitionRef autotext, int value) |
Sets the value at which to start counting. More... | |
LO_RESULT | LOAutoTextDefinitionGetSequenceType (LOAutoTextDefinitionRef autotext, LOAutoTextDefinitionSequenceType *sequence_type) |
Gets the sequence type of the specified sequence auto-text definition. More... | |
LO_RESULT | LOAutoTextDefinitionSetSequenceType (LOAutoTextDefinitionRef autotext, LOAutoTextDefinitionSequenceType sequence_type) |
Sets the sequence type of the specified sequence auto-text definition. More... | |
An enumeration of the different styles of page numbers we support.
Defines the different types of auto-text.
LO_RESULT LOAutoTextDefinitionGetCustomText | ( | LOAutoTextDefinitionRef | autotext, |
SUStringRef * | custom_text | ||
) |
Gets the text string of the specified custom auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | custom_text | The auto-text definition custom text string. |
LO_RESULT LOAutoTextDefinitionGetDateFormat | ( | LOAutoTextDefinitionRef | autotext, |
SUStringRef * | date_format | ||
) |
Gets the date format string of the specified date auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | date_format | The auto-text definition date format string. |
LO_RESULT LOAutoTextDefinitionGetDisplayFileExtension | ( | LOAutoTextDefinitionRef | autotext, |
bool * | is_display_file_ext | ||
) |
Gets a boolean signifying if the file extension is displayed for the specified file auto-text definition.
[in] | autotext | The auto-text definition object. |
[in] | is_display_file_ext | Boolean signifying if the full path is being displayed. |
LO_RESULT LOAutoTextDefinitionGetDisplayFullPath | ( | LOAutoTextDefinitionRef | autotext, |
bool * | is_display_full_path | ||
) |
Gets a boolean signifying if the full path is displayed for the specified file auto-text definition.
[in] | autotext | The auto-text definition object. |
[in] | is_display_full_path | Boolean signifying if the full path is being displayed. |
LO_RESULT LOAutoTextDefinitionGetDocument | ( | LOAutoTextDefinitionRef | autotext, |
LODocumentRef * | document | ||
) |
Returns the document that this auto-text definition belongs to.
[in] | autotext | The auto-text definition object. |
[out] | document | The document object. |
LO_RESULT LOAutoTextDefinitionGetEndPage | ( | LOAutoTextDefinitionRef | autotext, |
LOPageRef * | page | ||
) |
Gets the page the page count auto-text definition stops counting at. page may be returned as SU_INVALID, which indicates that the auto-text uses the last page in the document.
[in] | autotext | The auto-text definition object. |
[out] | page | The page object. |
autotext
does not refer to a valid objectpage
is NULLautotext's
type is not page count LO_RESULT LOAutoTextDefinitionGetIncrement | ( | LOAutoTextDefinitionRef | autotext, |
int * | increment | ||
) |
Gets the increment value of the specified sequence auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | increment | The amount each sequence object increments by. |
autotext
does not refer to a valid objectincrement
is NULLautotext's
type is not a sequence type LO_RESULT LOAutoTextDefinitionGetIndex | ( | LOAutoTextDefinitionRef | autotext, |
size_t * | index | ||
) |
Gets the index of the specified auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | index | The index of the auto-text definition. |
LO_RESULT LOAutoTextDefinitionGetMandatory | ( | LOAutoTextDefinitionRef | autotext, |
bool * | is_mandatory | ||
) |
Gets whether the specified auto-text definition is a mandatory definition. Mandatory auto-text definitions may not be removed from a document, and they may not be created through the API, but they may be modified.
[in] | autotext | The auto-text definition object. |
[out] | is_mandatory | Whether it is a mandatory auto-text definition. |
LO_RESULT LOAutoTextDefinitionGetName | ( | LOAutoTextDefinitionRef | autotext, |
SUStringRef * | name | ||
) |
Gets the name of the specified auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | name | The auto-text definition name string. |
LO_RESULT LOAutoTextDefinitionGetNumberStyle | ( | LOAutoTextDefinitionRef | autotext, |
LOAutoTextDefinitionNumberingStyle * | numbering_style | ||
) |
Gets the numbering style of the specified page number, page count, or sequence auto-text definition.
LOAutoTextDefinitionGetPageNumberStyle
. [in] | autotext | The auto-text definition object. |
[out] | numbering_style | The style of numbering. |
autotext
does not refer to a valid objectnumbering_style
is NULLautotext's
type is not page number, page count, or sequence LO_RESULT LOAutoTextDefinitionGetPageNumberStartIndex | ( | LOAutoTextDefinitionRef | autotext, |
int * | start_index | ||
) |
Gets the index at which the auto-text definition starts numbering.
[in] | autotext | The auto-text definition object. |
[out] | start_index | The starting index. |
autotext
does not refer to a valid objectstart_index
is NULLautotext's
type is not page number LO_RESULT LOAutoTextDefinitionGetPageNumberStyle | ( | LOAutoTextDefinitionRef | autotext, |
LOAutoTextDefinitionNumberingStyle * | numbering_style | ||
) |
Gets the numbering style of the specified page number auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | numbering_style | The style of numbering. |
autotext
does not refer to a valid objectnumbering_style
is NULLautotext's
type is not page number LO_RESULT LOAutoTextDefinitionGetSequenceFormat | ( | LOAutoTextDefinitionRef | autotext, |
SUStringRef * | sequence_format | ||
) |
Gets the sequence format string of the specified date auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | sequence_format | The auto-text definition sequence format string. |
autotext
does not refer to a valid objectsequence_format
is NULLautotext's
type is not a sequence type LO_RESULT LOAutoTextDefinitionGetSequenceType | ( | LOAutoTextDefinitionRef | autotext, |
LOAutoTextDefinitionSequenceType * | sequence_type | ||
) |
Gets the sequence type of the specified sequence auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | sequence_type | The sequencing behavior of this definition. |
autotext
does not refer to a valid objectsequence_type
is NULLautotext's
type is not sequence LO_RESULT LOAutoTextDefinitionGetStartIndex | ( | LOAutoTextDefinitionRef | autotext, |
int * | start_index | ||
) |
Gets the index at which the auto-text definition starts numbering.
LOAutoTextDefinitionGetPageNumberStartIndex
. [in] | autotext | The auto-text definition object. |
[out] | start_index | The starting index. |
autotext
does not refer to a valid objectstart_index
is NULLautotext's
type is not page number, page count, or sequence LO_RESULT LOAutoTextDefinitionGetStartPage | ( | LOAutoTextDefinitionRef | autotext, |
LOPageRef * | page | ||
) |
Gets the page that the page number or page count auto-text definition starts numbering on.
[in] | autotext | The auto-text definition object. |
[out] | page | The page object. |
autotext
does not refer to a valid objectpage
is NULLautotext's
type is not page number, page count, or sequence LO_RESULT LOAutoTextDefinitionGetTag | ( | LOAutoTextDefinitionRef | autotext, |
SUStringRef * | tag | ||
) |
Gets the tag string of the specified auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | tag | The auto-text definition tag string. |
LO_RESULT LOAutoTextDefinitionGetType | ( | LOAutoTextDefinitionRef | autotext, |
LOAutoTextDefinitionType * | type | ||
) |
Gets the type of the specified auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | type | The auto-text definition type. |
LO_RESULT LOAutoTextDefinitionRenumberSequence | ( | LOAutoTextDefinitionRef | autotext | ) |
Iterates through all uses of the auto-text definition and eliminates gaps and duplicates in the sequence.
[in] | autotext | The auto-text definition object. |
autotext
does not refer to a valid objectautotext's
type is not a sequence type LO_RESULT LOAutoTextDefinitionSetCustomText | ( | LOAutoTextDefinitionRef | autotext, |
const char * | custom_text | ||
) |
Sets the text string of the specified custom auto-text definition.
[in] | autotext | The auto-text definition object. |
[in] | custom_text | The auto-text definition custom text string. |
LO_RESULT LOAutoTextDefinitionSetDateFormat | ( | LOAutoTextDefinitionRef | autotext, |
const char * | date_format | ||
) |
Sets the date format string of the specified date auto-text definition.
[in] | autotext | The auto-text definition object. |
[in] | date_format | The auto-text definition date format string. |
LO_RESULT LOAutoTextDefinitionSetDisplayFileExtension | ( | LOAutoTextDefinitionRef | autotext, |
bool | is_display_file_ext | ||
) |
Sets whether the file extension is displayed for the specified file auto text definition.
[in] | autotext | The auto-text definition object. |
[in] | is_display_file_ext | Boolean signifying if the full path is being displayed. |
LO_RESULT LOAutoTextDefinitionSetDisplayFullPath | ( | LOAutoTextDefinitionRef | autotext, |
bool | is_display_full_path | ||
) |
Sets whether the full path is displayed for the specified file auto-text definition.
[in] | autotext | The auto-text definition object. |
[in] | is_display_full_path | Boolean signifying if the full path is being displayed. |
LO_RESULT LOAutoTextDefinitionSetEndPage | ( | LOAutoTextDefinitionRef | autotext, |
LOPageRef | page | ||
) |
Sets the page the page count auto-text definition stops counting at. This page must be after or the same as start page. If page is SU_INVALID, then the last page in the document will be used.
[in] | autotext | The auto-text definition object. |
[in] | page | The page object. |
autotext
does not refer to a valid objectpage
is a page that comes after this definition's start pageautotext's
type is not page count LO_RESULT LOAutoTextDefinitionSetIncrement | ( | LOAutoTextDefinitionRef | autotext, |
int | increment | ||
) |
Sets the increment value of the specified sequence auto-text definition.
[in] | autotext | The auto-text definition object. |
[in] | increment | The new amount each sequence object will increment by. |
autotext
does not refer to a valid objectautotext's
type is not a sequence type LO_RESULT LOAutoTextDefinitionSetName | ( | LOAutoTextDefinitionRef | autotext, |
const char * | name | ||
) |
Sets the name of the specified auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | name | The auto-text definition name string. |
LO_RESULT LOAutoTextDefinitionSetNumberStyle | ( | LOAutoTextDefinitionRef | autotext, |
LOAutoTextDefinitionNumberingStyle | numbering_style | ||
) |
Sets the numbering style of the specified page number, page count, or sequence auto-text definition.
LOAutoTextDefinitionSetPageNumberStyle
. [in] | autotext | The auto-text definition object. |
[in] | numbering_style | The style of numbering. |
autotext
does not refer to a valid objectautotext's
type is not page number, page count, or sequencenumbering_style
is not a valid numbering style LO_RESULT LOAutoTextDefinitionSetPageNumberStartIndex | ( | LOAutoTextDefinitionRef | autotext, |
int | value | ||
) |
Sets the value at which to start counting.
[in] | autotext | The auto-text definition object. |
[out] | value | The number at which to start counting. |
autotext
does not refer to a valid objectvalue
is NULLLO_RESULT LOAutoTextDefinitionSetPageNumberStyle | ( | LOAutoTextDefinitionRef | autotext, |
LOAutoTextDefinitionNumberingStyle | numbering_style | ||
) |
Sets the numbering style of the specified page number auto-text definition.
[in] | autotext | The auto-text definition object. |
[out] | numbering_style | The style of numbering. |
autotext
does not refer to a valid objectnumbering_style
is NULLautotext's
type is not page number LO_RESULT LOAutoTextDefinitionSetSequenceFormat | ( | LOAutoTextDefinitionRef | autotext, |
const char * | sequence_format | ||
) |
Sets the format string of the specified sequence auto-text definition. If the string is empty, the format string will be set to the default of ###.
[in] | autotext | The auto-text definition object. |
[in] | sequence_format | The new format string for the sequence. |
autotext
does not refer to a valid objectsequence_format
is NULLautotext's
type is not a sequence type LO_RESULT LOAutoTextDefinitionSetSequenceType | ( | LOAutoTextDefinitionRef | autotext, |
LOAutoTextDefinitionSequenceType | sequence_type | ||
) |
Sets the sequence type of the specified sequence auto-text definition.
[in] | autotext | The auto-text definition object. |
[in] | sequence_type | The sequencing behavior. |
autotext
does not refer to a valid objectautotext's
type is not sequencesequence_type
is not a valid sequence type LO_RESULT LOAutoTextDefinitionSetStartIndex | ( | LOAutoTextDefinitionRef | autotext, |
int | value | ||
) |
Sets the value at which to start counting.
LOAutoTextDefinitionGetPageNumberStartIndex
. [in] | autotext | The auto-text definition object. |
[in] | value | The number at which to start counting. |
autotext
does not refer to a valid objectLO_RESULT LOAutoTextDefinitionSetStartPage | ( | LOAutoTextDefinitionRef | autotext, |
LOPageRef | page | ||
) |
Sets the page that the page number or page count auto-text definition starts numbering on.
[in] | autotext | The auto-text definition object. |
[in] | page | The page object. |
autotext
does not refer to a valid objectpage
does not refer to a valid objectautotext's
type is not page number or page count