LayOut C API
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
LayOutAPI
model
document.h
Go to the documentation of this file.
1
// Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
// This file is intended for public distribution.
3
4
#ifndef LAYOUT_MODEL_DOCUMENT_H_
5
#define LAYOUT_MODEL_DOCUMENT_H_
6
7
#include <
LayOutAPI/common.h
>
8
#include <
LayOutAPI/model/defs.h
>
9
#include <
LayOutAPI/model/imagerep.h
>
10
#include <time.h>
11
22
typedef
enum
{
23
LODocumentVersion_1
= 1,
24
LODocumentVersion_2
= 2,
25
LODocumentVersion_3
= 3,
26
LODocumentVersion_2013
= 13,
27
LODocumentVersion_2014
= 14,
28
LODocumentVersion_2015
= 15,
29
LODocumentVersion_2016
= 16,
30
LODocumentVersion_2017
= 17,
31
LODocumentVersion_2018
= 18,
32
LODocumentVersion_2019
= 19,
33
LODocumentVersion_2020
= 20,
34
LODocumentVersion_2021
= 21,
35
LODocumentVersion_2022
= 22,
36
LODocumentVersion_2023
= 23,
37
38
LODocumentVersion_Current
=
LODocumentVersion_2023
,
39
40
LONumDocumentVersions
41
}
LODocumentVersion
;
42
47
typedef
enum
{
48
LODocumentUnits_FractionalInches
= 0,
49
LODocumentUnits_DecimalInches
,
50
LODocumentUnits_DecimalFeet
,
51
LODocumentUnits_DecimalMillimeters
,
52
LODocumentUnits_DecimalCentimeters
,
53
LODocumentUnits_DecimalMeters
,
54
LODocumentUnits_DecimalPoints
,
55
56
LONumDocumentUnits
57
}
LODocumentUnits
;
58
59
#ifdef __cplusplus
60
extern
"C"
{
61
#endif
62
72
LO_RESULT
LODocumentCreateEmpty
(
LODocumentRef
* document);
73
86
LO_RESULT
LODocumentCreateFromFile
(
LODocumentRef
* document,
const
char
* path);
87
102
LO_RESULT
LODocumentCreateFromTemplate
(
LODocumentRef
* document,
const
char
* path);
103
115
LO_RESULT
LODocumentRelease
(
LODocumentRef
* document);
116
125
LO_RESULT
LODocumentAddReference
(
LODocumentRef
document);
126
141
LO_RESULT
LODocumentSaveToFile
(
LODocumentRef
document,
const
char
* path,
LODocumentVersion
version);
142
185
LO_RESULT
LODocumentExportToPDF
(
186
LODocumentRef
document,
const
char
* path,
LODictionaryRef
options_dict);
187
188
227
LO_RESULT
LODocumentExportToImageSet
(
228
LODocumentRef
document,
const
char
* export_path,
const
char
* base_name,
229
LOImageRepOutputFormat
format,
LODictionaryRef
options_dict);
230
244
LO_RESULT
LODocumentGetFilePath
(
LODocumentRef
document,
SUStringRef
* path);
245
255
LO_RESULT
LODocumentGetNumberOfLayers
(
LODocumentRef
document,
size_t
* num_layers);
256
271
LO_RESULT
LODocumentGetLayerAtIndex
(
272
LODocumentRef
document,
size_t
index,
LOLayerRef
* layer_definition);
273
286
LO_RESULT
LODocumentGetLayers
(
LODocumentRef
document,
LOLayerListRef
layer_definitions);
287
298
LO_RESULT
LODocumentGetActiveLayer
(
LODocumentRef
document,
LOLayerRef
* layer_definition);
299
313
LO_RESULT
LODocumentSetActiveLayer
(
LODocumentRef
document,
LOLayerRef
layer_definition);
314
329
LO_RESULT
LODocumentReorderLayer
(
330
LODocumentRef
document,
LOLayerRef
layer_definition,
size_t
new_index);
345
LO_RESULT
LODocumentAddLayer
(
LODocumentRef
document,
bool
shared,
LOLayerRef
* layer_definition);
346
374
LO_RESULT
LODocumentRemoveLayer
(
375
LODocumentRef
document,
LOLayerRef
* layer_definition,
bool
delete_entities);
376
387
LO_RESULT
LODocumentGetPageInfo
(
LODocumentRef
document,
LOPageInfoRef
* page_info);
388
399
LO_RESULT
LODocumentGetGrid
(
LODocumentRef
document,
LOGridRef
* grid);
400
410
LO_RESULT
LODocumentGetNumberOfPages
(
LODocumentRef
document,
size_t
* num_pages);
411
424
LO_RESULT
LODocumentGetPageAtIndex
(
LODocumentRef
document,
size_t
index,
LOPageRef
* page);
425
435
LO_RESULT
LODocumentGetPages
(
LODocumentRef
document,
LOPageListRef
pages);
436
448
LO_RESULT
LODocumentGetInitialPage
(
LODocumentRef
document,
LOPageRef
* page);
449
462
LO_RESULT
LODocumentSetInitialPage
(
LODocumentRef
document,
LOPageRef
page);
463
475
LO_RESULT
LODocumentAddPage
(
LODocumentRef
document,
LOPageRef
* page);
476
491
LO_RESULT
LODocumentRemovePage
(
LODocumentRef
document,
LOPageRef
* page);
492
506
LO_RESULT
LODocumentReorderPage
(
LODocumentRef
document,
LOPageRef
page,
size_t
new_index);
507
529
LO_RESULT
LODocumentAddEntity
(
530
LODocumentRef
document,
LOEntityRef
entity,
LOLayerRef
layer_definition,
LOPageRef
page);
531
551
LO_RESULT
LODocumentAddEntityUsingIndexes
(
552
LODocumentRef
document,
LOEntityRef
entity,
size_t
layer_index,
size_t
page_index);
553
566
LO_RESULT
LODocumentRemoveEntity
(
LODocumentRef
document,
LOEntityRef
* entity);
567
579
LO_RESULT
LODocumentGetNumberOfSharedEntities
(
LODocumentRef
document,
size_t
* num_shared_entities);
580
595
LO_RESULT
LODocumentGetSharedEntityAtIndex
(
596
LODocumentRef
document,
size_t
index,
LOEntityRef
* entity);
597
609
LO_RESULT
LODocumentGetSharedEntities
(
LODocumentRef
document,
LOEntityListRef
entity_list);
610
620
LO_RESULT
LODocumentGetObjectSnap
(
LODocumentRef
document,
bool
* object_snap);
621
630
LO_RESULT
LODocumentSetObjectSnap
(
LODocumentRef
document,
bool
object_snap);
631
641
LO_RESULT
LODocumentGetGridSnap
(
LODocumentRef
document,
bool
* grid_snap);
642
651
LO_RESULT
LODocumentSetGridSnap
(
LODocumentRef
document,
bool
grid_snap);
652
662
LO_RESULT
LODocumentGetTimeCreated
(
LODocumentRef
document, time_t* time_created);
663
673
LO_RESULT
LODocumentGetTimeModified
(
LODocumentRef
document, time_t* time_modified);
674
684
LO_RESULT
LODocumentGetTimePublished
(
LODocumentRef
document, time_t* time_published);
685
698
LO_RESULT
LODocumentGetUnits
(
LODocumentRef
document,
LODocumentUnits
* units,
double
* precision);
699
716
LO_RESULT
LODocumentSetUnits
(
LODocumentRef
document,
LODocumentUnits
units,
double
precision);
717
718
729
LO_RESULT
LODocumentGetNumberOfAutoTextDefinitions
(
LODocumentRef
document,
size_t
* size);
730
743
LO_RESULT
LODocumentGetAutoTextDefinitionAtIndex
(
744
LODocumentRef
document,
size_t
index,
LOAutoTextDefinitionRef
* autotext);
745
759
LO_RESULT
LODocumentGetAutoTextDefinitionByName
(
760
LODocumentRef
document,
const
char
* name,
LOAutoTextDefinitionRef
* autotext);
761
773
LO_RESULT
LODocumentGetAutoTextDefinitions
(
774
LODocumentRef
document,
LOAutoTextDefinitionListRef
autotexts);
775
791
LO_RESULT
LODocumentAddAutoTextDefinition
(
792
LODocumentRef
document,
int
type,
const
char
* name,
LOAutoTextDefinitionRef
* autotext);
793
809
LO_RESULT
LODocumentRemoveAutoTextDefinition
(
810
LODocumentRef
document,
LOAutoTextDefinitionRef
* autotext,
bool
convert_tags_to_normal_text);
811
827
LO_RESULT
LODocumentGetLengthFormatter
(
LODocumentRef
document,
SULengthFormatterRef
* formatter);
828
#ifdef __cplusplus
829
}
// extern "C" {
830
#endif
831
832
#endif // LAYOUT_MODEL_DOCUMENT_H_
Generated on Wed Feb 1 2023 16:37:56 for LayOut C API by
1.8.3.1