Vanilla.PDF  1.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_outline.h
Go to the documentation of this file.
1 #ifndef _C_OUTLINE_H
2 #define _C_OUTLINE_H
3 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12 
65  typedef enum {
66 
72 
78  } OutlineType;
79 
88  VANILLAPDF_API error_type CALLING_CONVENTION OutlineBase_GetType(OutlineBaseHandle* handle, OutlineType* result);
89 
93  VANILLAPDF_API error_type CALLING_CONVENTION OutlineBase_ToOutline(OutlineBaseHandle* handle, OutlineHandle** result);
94 
98  VANILLAPDF_API error_type CALLING_CONVENTION OutlineBase_ToOutlineItem(OutlineBaseHandle* handle, OutlineItemHandle** result);
99 
104  VANILLAPDF_API error_type CALLING_CONVENTION OutlineBase_Release(OutlineBaseHandle* handle);
105 
118  VANILLAPDF_API error_type CALLING_CONVENTION Outline_GetFirst(OutlineHandle* handle, OutlineItemHandle** result);
119 
125  VANILLAPDF_API error_type CALLING_CONVENTION Outline_GetLast(OutlineHandle* handle, OutlineItemHandle** result);
126 
135  VANILLAPDF_API error_type CALLING_CONVENTION Outline_GetCount(OutlineHandle* handle, IntegerObjectHandle** result);
136 
140  VANILLAPDF_API error_type CALLING_CONVENTION Outline_Release(OutlineHandle* handle);
141 
153  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetTitle(OutlineItemHandle* handle, StringObjectHandle** result);
154 
159  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetParent(OutlineItemHandle* handle, OutlineBaseHandle** result);
160 
165  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetPrev(OutlineItemHandle* handle, OutlineItemHandle** result);
166 
171  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetNext(OutlineItemHandle* handle, OutlineItemHandle** result);
172 
177  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetFirst(OutlineItemHandle* handle, OutlineItemHandle** result);
178 
183  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetLast(OutlineItemHandle* handle, OutlineItemHandle** result);
184 
189  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetCount(OutlineItemHandle* handle, IntegerObjectHandle** result);
190 
191  //VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetDestinations(OutlineItemHandle* handle, IntegerObjectHandle** result);
192  //VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetActions(OutlineItemHandle* handle, IntegerObjectHandle** result);
193  //VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetStructureElement(OutlineItemHandle* handle, IntegerObjectHandle** result);
194 
198  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetColor(OutlineItemHandle* handle, OutlineItemColorHandle** result);
199 
203  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_GetFlags(OutlineItemHandle* handle, OutlineItemFlagsHandle** result);
204 
208  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItem_Release(OutlineItemHandle* handle);
209 
220  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItemColor_GetRed(OutlineItemColorHandle* handle, IntegerObjectHandle** result);
221 
225  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItemColor_GetGreen(OutlineItemColorHandle* handle, IntegerObjectHandle** result);
226 
230  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItemColor_GetBlue(OutlineItemColorHandle* handle, IntegerObjectHandle** result);
231 
236  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItemColor_Release(OutlineItemColorHandle* handle);
237 
248  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItemFlags_IsItalic(OutlineItemFlagsHandle* handle, boolean_type* result);
249 
253  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItemFlags_IsBold(OutlineItemFlagsHandle* handle, boolean_type* result);
254 
259  VANILLAPDF_API error_type CALLING_CONVENTION OutlineItemFlags_Release(OutlineItemFlagsHandle* handle);
260 
263 #ifdef __cplusplus
264 };
265 #endif
266 
267 #endif /* _C_OUTLINE_H */
error_type OutlineItem_GetFirst(OutlineItemHandle *handle, OutlineItemHandle **result)
The first of this item's immediate children in the outline hierarchy.
Definition: c_outline.h:77
error_type OutlineItemFlags_Release(OutlineItemFlagsHandle *handle)
Decrement the internal reference counter.
error_type OutlineItem_GetPrev(OutlineItemHandle *handle, OutlineItemHandle **result)
The previous item at this outline level.
error_type OutlineItem_GetCount(OutlineItemHandle *handle, IntegerObjectHandle **result)
Sum of the number of visible descendent outline items at all levels.
error_type OutlineItemColor_GetRed(OutlineItemColorHandle *handle, IntegerObjectHandle **result)
Get red component of defined RGB color.
Representing the components in the DeviceRGB colour space of the colour that shall be used for the ou...
error_type OutlineItemFlags_IsBold(OutlineItemFlagsHandle *handle, boolean_type *result)
Determine if the outline item shall be displayed in bold.
error_type OutlineItemColor_GetBlue(OutlineItemColorHandle *handle, IntegerObjectHandle **result)
Get blue component of defined RGB color.
error_type OutlineBase_ToOutlineItem(OutlineBaseHandle *handle, OutlineItemHandle **result)
Reinterpret current object as OutlineItemHandle.
Base class for document outlines.
error_type OutlineItem_Release(OutlineItemHandle *handle)
Decrement the internal reference counter.
Represents integer values.
error_type OutlineItem_GetNext(OutlineItemHandle *handle, OutlineItemHandle **result)
The next item at this outline level.
This file contains all type forward declarations returned by the library API.
error_type OutlineItemColor_Release(OutlineItemColorHandle *handle)
Decrement the internal reference counter.
error_type OutlineBase_GetType(OutlineBaseHandle *handle, OutlineType *result)
Get derived type of current object.
error_type OutlineBase_Release(OutlineBaseHandle *handle)
Decrement the internal reference counter.
error_type Outline_GetFirst(OutlineHandle *handle, OutlineItemHandle **result)
An outline item dictionary representing the first top-level item in the outline.
error_type OutlineBase_ToOutline(OutlineBaseHandle *handle, OutlineHandle **result)
Reinterpret current object as OutlineHandle.
error_type OutlineItem_GetTitle(OutlineItemHandle *handle, StringObjectHandle **result)
The text that shall be displayed on the screen for this item.
error_type OutlineItem_GetParent(OutlineItemHandle *handle, OutlineBaseHandle **result)
The parent of this item in the outline hierarchy.
error_type OutlineItem_GetLast(OutlineItemHandle *handle, OutlineItemHandle **result)
The last of this item's immediate children in the outline hierarchy.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
error_type OutlineItemFlags_IsItalic(OutlineItemFlagsHandle *handle, boolean_type *result)
Determine if the outline item shall be displayed in italic.
This file contains macro declarations for importing and exporting symbols from library boundaries...
A set of flags specifying style characteristics for displaying the outline item's text...
The root of a document's outline hierarchy.
error_type OutlineItem_GetFlags(OutlineItemHandle *handle, OutlineItemFlagsHandle **result)
A set of flags specifying style characteristics for displaying the outline item's text...
error_type Outline_GetLast(OutlineHandle *handle, OutlineItemHandle **result)
An outline item dictionary representing the last top-level item in the outline.
Definition: c_outline.h:71
error_type OutlineItemColor_GetGreen(OutlineItemColorHandle *handle, IntegerObjectHandle **result)
Get green component of defined RGB color.
This file contains types and constants used as parameters or return values.
error_type Outline_Release(OutlineHandle *handle)
Decrement the internal reference counter.
OutlineType
Available types of outlines.
Definition: c_outline.h:65
error_type Outline_GetCount(OutlineHandle *handle, IntegerObjectHandle **result)
Total number of visible outline items at all levels of the outline.
Reprsents human readable text.
Child element within tree-structured hierarchy of outline items.
error_type OutlineItem_GetColor(OutlineItemHandle *handle, OutlineItemColorHandle **result)
Representing the components in the DeviceRGB colour space of the colour that shall be used for the ou...
int8_t boolean_type
Boolean type supported in C.
Definition: c_types.h:31