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
36
LODocumentVersion_Current
=
LODocumentVersion_2021
,
37
38
LONumDocumentVersions
39
}
LODocumentVersion
;
40
45
typedef
enum
{
46
LODocumentUnits_FractionalInches
= 0,
47
LODocumentUnits_DecimalInches
,
48
LODocumentUnits_DecimalFeet
,
49
LODocumentUnits_DecimalMillimeters
,
50
LODocumentUnits_DecimalCentimeters
,
51
LODocumentUnits_DecimalMeters
,
52
LODocumentUnits_DecimalPoints
,
53
54
LONumDocumentUnits
55
}
LODocumentUnits
;
56
57
#ifdef __cplusplus
58
extern
"C"
{
59
#endif
60
70
LO_RESULT
LODocumentCreateEmpty
(
LODocumentRef
* document);
71
84
LO_RESULT
LODocumentCreateFromFile
(
LODocumentRef
* document,
85
const
char
* path);
86
101
LO_RESULT
LODocumentCreateFromTemplate
(
LODocumentRef
* document,
102
const
char
* path);
103
115
LO_RESULT
LODocumentRelease
(
LODocumentRef
* document);
116
125
LO_RESULT
LODocumentAddReference
(
LODocumentRef
document);
126
141
LO_RESULT
LODocumentSaveToFile
(
LODocumentRef
document,
142
const
char
* path,
143
LODocumentVersion
version);
144
187
LO_RESULT
LODocumentExportToPDF
(
LODocumentRef
document,
188
const
char
* path,
189
LODictionaryRef
options_dict);
190
229
LO_RESULT
LODocumentExportToImageSet
(
LODocumentRef
document,
230
const
char
* export_path,
231
const
char
* base_name,
232
LOImageRepOutputFormat
format,
233
LODictionaryRef
options_dict);
234
248
LO_RESULT
LODocumentGetFilePath
(
LODocumentRef
document,
249
SUStringRef
* path);
250
260
LO_RESULT
LODocumentGetNumberOfLayers
(
LODocumentRef
document,
261
size_t
* num_layers);
262
277
LO_RESULT
LODocumentGetLayerAtIndex
(
LODocumentRef
document,
278
size_t
index,
279
LOLayerRef
* layer_definition);
280
293
LO_RESULT
LODocumentGetLayers
(
LODocumentRef
document,
294
LOLayerListRef
layer_definitions);
295
306
LO_RESULT
LODocumentGetActiveLayer
(
LODocumentRef
document,
307
LOLayerRef
* layer_definition);
308
322
LO_RESULT
LODocumentSetActiveLayer
(
LODocumentRef
document,
323
LOLayerRef
layer_definition);
324
339
LO_RESULT
LODocumentReorderLayer
(
LODocumentRef
document,
340
LOLayerRef
layer_definition,
341
size_t
new_index);
356
LO_RESULT
LODocumentAddLayer
(
LODocumentRef
document,
357
bool
shared,
358
LOLayerRef
* layer_definition);
359
387
LO_RESULT
LODocumentRemoveLayer
(
LODocumentRef
document,
388
LOLayerRef
* layer_definition,
389
bool
delete_entities);
390
401
LO_RESULT
LODocumentGetPageInfo
(
LODocumentRef
document,
402
LOPageInfoRef
* page_info);
403
414
LO_RESULT
LODocumentGetGrid
(
LODocumentRef
document,
LOGridRef
* grid);
415
425
LO_RESULT
LODocumentGetNumberOfPages
(
LODocumentRef
document,
426
size_t
* num_pages);
427
440
LO_RESULT
LODocumentGetPageAtIndex
(
LODocumentRef
document,
441
size_t
index,
442
LOPageRef
* page);
443
453
LO_RESULT
LODocumentGetPages
(
LODocumentRef
document,
LOPageListRef
pages);
454
466
LO_RESULT
LODocumentGetInitialPage
(
LODocumentRef
document,
LOPageRef
* page);
467
480
LO_RESULT
LODocumentSetInitialPage
(
LODocumentRef
document,
LOPageRef
page);
481
493
LO_RESULT
LODocumentAddPage
(
LODocumentRef
document,
LOPageRef
* page);
494
509
LO_RESULT
LODocumentRemovePage
(
LODocumentRef
document,
LOPageRef
* page);
510
524
LO_RESULT
LODocumentReorderPage
(
LODocumentRef
document,
525
LOPageRef
page,
526
size_t
new_index);
527
549
LO_RESULT
LODocumentAddEntity
(
LODocumentRef
document,
550
LOEntityRef
entity,
551
LOLayerRef
layer_definition,
552
LOPageRef
page);
553
573
LO_RESULT
LODocumentAddEntityUsingIndexes
(
LODocumentRef
document,
574
LOEntityRef
entity,
575
size_t
layer_index,
576
size_t
page_index);
577
590
LO_RESULT
LODocumentRemoveEntity
(
LODocumentRef
document,
591
LOEntityRef
* entity);
592
604
LO_RESULT
LODocumentGetNumberOfSharedEntities
(
LODocumentRef
document,
605
size_t
* num_shared_entities);
606
621
LO_RESULT
LODocumentGetSharedEntityAtIndex
(
LODocumentRef
document,
622
size_t
index,
623
LOEntityRef
* entity);
624
636
LO_RESULT
LODocumentGetSharedEntities
(
LODocumentRef
document,
637
LOEntityListRef
entity_list);
638
648
LO_RESULT
LODocumentGetObjectSnap
(
LODocumentRef
document,
bool
* object_snap);
649
658
LO_RESULT
LODocumentSetObjectSnap
(
LODocumentRef
document,
659
bool
object_snap);
660
670
LO_RESULT
LODocumentGetGridSnap
(
LODocumentRef
document,
bool
* grid_snap);
671
680
LO_RESULT
LODocumentSetGridSnap
(
LODocumentRef
document,
bool
grid_snap);
681
691
LO_RESULT
LODocumentGetTimeCreated
(
LODocumentRef
document,
692
time_t* time_created);
693
703
LO_RESULT
LODocumentGetTimeModified
(
LODocumentRef
document,
704
time_t* time_modified);
705
715
LO_RESULT
LODocumentGetTimePublished
(
LODocumentRef
document,
716
time_t* time_published);
717
730
LO_RESULT
LODocumentGetUnits
(
LODocumentRef
document,
731
LODocumentUnits
* units,
732
double
* precision);
733
750
LO_RESULT
LODocumentSetUnits
(
LODocumentRef
document,
751
LODocumentUnits
units,
752
double
precision);
753
754
765
LO_RESULT
LODocumentGetNumberOfAutoTextDefinitions
(
LODocumentRef
document,
766
size_t
* size);
767
780
LO_RESULT
LODocumentGetAutoTextDefinitionAtIndex
(
781
LODocumentRef
document,
size_t
index,
LOAutoTextDefinitionRef
* autotext);
782
796
LO_RESULT
LODocumentGetAutoTextDefinitionByName
(
LODocumentRef
document,
797
const
char
* name,
LOAutoTextDefinitionRef
* autotext);
798
810
LO_RESULT
LODocumentGetAutoTextDefinitions
(
811
LODocumentRef
document,
LOAutoTextDefinitionListRef
autotexts);
812
828
LO_RESULT
LODocumentAddAutoTextDefinition
(
LODocumentRef
document,
829
int
type,
830
const
char
* name,
831
LOAutoTextDefinitionRef
* autotext);
832
848
LO_RESULT
LODocumentRemoveAutoTextDefinition
(
LODocumentRef
document,
849
LOAutoTextDefinitionRef
* autotext,
850
bool
convert_tags_to_normal_text);
851
867
LO_RESULT
LODocumentGetLengthFormatter
(
LODocumentRef
document,
868
SULengthFormatterRef
* formatter);
869
#ifdef __cplusplus
870
}
// extern "C" {
871
#endif
872
873
#endif // LAYOUT_MODEL_DOCUMENT_H_
Generated on Wed Sep 8 2021 14:15:26 for LayOut C API by
1.8.3.1