LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Enumerations | Functions
autotextdefinition.h File Reference
#include <LayOutAPI/common.h>
#include <LayOutAPI/model/defs.h>

Go to the source code of this file.

Enumerations

enum  LOAutoTextDefinitionType {
  LOAutoTextDefinitionType_File = 0, LOAutoTextDefinitionType_PageName, LOAutoTextDefinitionType_PageNumber, LOAutoTextDefinitionType_CustomText,
  LOAutoTextDefinitionType_DateCurrent, LOAutoTextDefinitionType_DateCreated, LOAutoTextDefinitionType_DateModified, LOAutoTextDefinitionType_DatePublished,
  LOAutoTextDefinitionType_ModelGroupName, LOAutoTextDefinitionType_ModelComponentInstanceName, LOAutoTextDefinitionType_ModelComponentDefinitionName, LOAutoTextDefinitionType_ModelComponentDescription,
  LOAutoTextDefinitionType_ModelVolume, LOAutoTextDefinitionType_ModelFaceArea, LOAutoTextDefinitionType_ModelEdgeLength, LOAutoTextDefinitionType_ModelCoordinates,
  LOAutoTextDefinitionType_ModelDynamicComponentAttribute, LOAutoTextDefinitionType_ModelClassifierAttribute, LOAutoTextDefinitionType_ModelComponentInstanceAttribute, LOAutoTextDefinitionType_ModelComponentDefinitionAttribute,
  LOAutoTextDefinitionType_Count
}
 Defines the different types of auto text. More...
 
enum  LOAutoTextDefinitionNumberingStyle {
  LOAutoTextDefinitionNumberingStyle_Arabic = 0, LOAutoTextDefinitionNumberingStyle_ArabicPadded, LOAutoTextDefinitionNumberingStyle_UCAlpha, LOAutoTextDefinitionNumberingStyle_LCAlpha,
  LOAutoTextDefinitionNumberingStyle_UCRoman, LOAutoTextDefinitionNumberingStyle_LCRoman, LOAutoTextDefinitionNumberingStyle_Count
}
 An enumeration of the different styles of page numbers we support. More...
 

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 the page number auto text definition starts numbering on. More...
 
LO_RESULT LOAutoTextDefinitionSetPageNumberStartIndex (LOAutoTextDefinitionRef autotext, int start_index)
 Sets the index the page number auto text definition starts numbering on. More...
 
LO_RESULT LOAutoTextDefinitionGetPageNumberStartPage (LOAutoTextDefinitionRef autotext, LOPageRef *page)
 Gets the page the page number auto text definition starts numbering on. More...
 
LO_RESULT LOAutoTextDefinitionSetPageNumberStartPage (LOAutoTextDefinitionRef autotext, LOPageRef page)
 Sets the page the page number auto text definition starts numbering on. More...
 

Enumeration Type Documentation

An enumeration of the different styles of page numbers we support.

Since
LayOut 2017, API 2.0
Enumerator
LOAutoTextDefinitionNumberingStyle_Arabic 
LOAutoTextDefinitionNumberingStyle_ArabicPadded 
LOAutoTextDefinitionNumberingStyle_UCAlpha 
LOAutoTextDefinitionNumberingStyle_LCAlpha 
LOAutoTextDefinitionNumberingStyle_UCRoman 
LOAutoTextDefinitionNumberingStyle_LCRoman 
LOAutoTextDefinitionNumberingStyle_Count 

Defines the different types of auto text.

Since
LayOut 2017, API 2.0
Enumerator
LOAutoTextDefinitionType_File 
LOAutoTextDefinitionType_PageName 
LOAutoTextDefinitionType_PageNumber 
LOAutoTextDefinitionType_CustomText 
LOAutoTextDefinitionType_DateCurrent 
LOAutoTextDefinitionType_DateCreated 
LOAutoTextDefinitionType_DateModified 
LOAutoTextDefinitionType_DatePublished 
LOAutoTextDefinitionType_ModelGroupName 
LOAutoTextDefinitionType_ModelComponentInstanceName 
LOAutoTextDefinitionType_ModelComponentDefinitionName 
LOAutoTextDefinitionType_ModelComponentDescription 
LOAutoTextDefinitionType_ModelVolume 
LOAutoTextDefinitionType_ModelFaceArea 
LOAutoTextDefinitionType_ModelEdgeLength 
LOAutoTextDefinitionType_ModelCoordinates 
LOAutoTextDefinitionType_ModelDynamicComponentAttribute 
LOAutoTextDefinitionType_ModelClassifierAttribute 
LOAutoTextDefinitionType_ModelComponentInstanceAttribute 
LOAutoTextDefinitionType_ModelComponentDefinitionAttribute 
LOAutoTextDefinitionType_Count 

Function Documentation

LO_RESULT LOAutoTextDefinitionGetCustomText ( LOAutoTextDefinitionRef  autotext,
SUStringRef custom_text 
)

Gets the text string of the specified custom auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]custom_textThe auto text definition custom text string.
Returns
LO_RESULT LOAutoTextDefinitionGetDateFormat ( LOAutoTextDefinitionRef  autotext,
SUStringRef date_format 
)

Gets the date format string of the specified date auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]date_formatThe auto text definition date format string.
Returns
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.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[in]is_display_file_extBoolean signifying if the full path is being displayed.
Returns
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.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[in]is_display_full_pathBoolean signifying if the full path is being displayed.
Returns
LO_RESULT LOAutoTextDefinitionGetDocument ( LOAutoTextDefinitionRef  autotext,
LODocumentRef document 
)

Returns the document that this auto text definition belongs to.

Since
LayOut 2018, API 3.0
Parameters
[in]autotextThe auto text definition object.
[out]documentThe document object.
Returns
LO_RESULT LOAutoTextDefinitionGetIndex ( LOAutoTextDefinitionRef  autotext,
size_t *  index 
)

Gets the index of the specified auto text definition.

Since
LayOut 2018, API 3.0
Parameters
[in]autotextThe auto text definition object.
[out]indexThe index of the auto text definition.
Returns
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.

Since
LayOut 2018, API 3.0
Parameters
[in]autotextThe auto text definition object.
[out]is_mandatoryWhether it is a mandatory auto text definition.
Returns
LO_RESULT LOAutoTextDefinitionGetName ( LOAutoTextDefinitionRef  autotext,
SUStringRef name 
)

Gets the name of the specified auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]nameThe auto text definition name string.
Returns
LO_RESULT LOAutoTextDefinitionGetPageNumberStartIndex ( LOAutoTextDefinitionRef  autotext,
int *  start_index 
)

Gets the index the page number auto text definition starts numbering on.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]start_indexThe starting index.
Returns
LO_RESULT LOAutoTextDefinitionGetPageNumberStartPage ( LOAutoTextDefinitionRef  autotext,
LOPageRef page 
)

Gets the page the page number auto text definition starts numbering on.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]pageThe page object.
Returns
LO_RESULT LOAutoTextDefinitionGetPageNumberStyle ( LOAutoTextDefinitionRef  autotext,
LOAutoTextDefinitionNumberingStyle numbering_style 
)

Gets the numbering style of the specified page number auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]numbering_styleThe style of numbering.
Returns
LO_RESULT LOAutoTextDefinitionGetTag ( LOAutoTextDefinitionRef  autotext,
SUStringRef tag 
)

Gets the tag string of the specified auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]tagThe auto text definition tag string.
Returns
LO_RESULT LOAutoTextDefinitionGetType ( LOAutoTextDefinitionRef  autotext,
LOAutoTextDefinitionType type 
)

Gets the type of the specified auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]typeThe auto text definition type.
Returns
LO_RESULT LOAutoTextDefinitionSetCustomText ( LOAutoTextDefinitionRef  autotext,
const char *  custom_text 
)

Sets the text string of the specified custom auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[in]custom_textThe auto text definition custom text string.
Returns
LO_RESULT LOAutoTextDefinitionSetDateFormat ( LOAutoTextDefinitionRef  autotext,
const char *  date_format 
)

Sets the date format string of the specified date auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[in]date_formatThe auto text definition date format string.
Returns
LO_RESULT LOAutoTextDefinitionSetDisplayFileExtension ( LOAutoTextDefinitionRef  autotext,
bool  is_display_file_ext 
)

Sets whether the file extension is displayed for the specified file auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[in]is_display_file_extBoolean signifying if the full path is being displayed.
Returns
LO_RESULT LOAutoTextDefinitionSetDisplayFullPath ( LOAutoTextDefinitionRef  autotext,
bool  is_display_full_path 
)

Sets whether the full path is displayed for the specified file auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[in]is_display_full_pathBoolean signifying if the full path is being displayed.
Returns
LO_RESULT LOAutoTextDefinitionSetName ( LOAutoTextDefinitionRef  autotext,
const char *  name 
)

Sets the name of the specified auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]nameThe auto text definition name string.
Returns
LO_RESULT LOAutoTextDefinitionSetPageNumberStartIndex ( LOAutoTextDefinitionRef  autotext,
int  start_index 
)

Sets the index the page number auto text definition starts numbering on.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]start_indexThe starting index.
Returns
LO_RESULT LOAutoTextDefinitionSetPageNumberStartPage ( LOAutoTextDefinitionRef  autotext,
LOPageRef  page 
)

Sets the page the page number auto text definition starts numbering on.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[in]pageThe page object.
Returns
LO_RESULT LOAutoTextDefinitionSetPageNumberStyle ( LOAutoTextDefinitionRef  autotext,
LOAutoTextDefinitionNumberingStyle  numbering_style 
)

Sets the numbering style of the specified page number auto text definition.

Since
LayOut 2017, API 2.0
Parameters
[in]autotextThe auto text definition object.
[out]numbering_styleThe style of numbering.
Returns