Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
idomoutline.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2007-2025 Global Graphics Software Ltd. All rights reserved.
3 */
4
5#ifndef __EDLIDOMOUTLINE_H__
6#define __EDLIDOMOUTLINE_H__
7
8#include <edl/edltypes.h>
9#include <edl/iedltree.h>
10#include <edl/idomnode.h>
11#include <edl/idomtarget.h>
12#include <edl/idomcolor.h>
13
15
18
19#define IDOMOutlineTreeNodeClassID 0xc50ff402, 0xeb5146bd, 0xb71cb56d, 0xb2917eb8
22#define edlobj2IDOMOutlineTreeNode(src) edl_cast((IDOMOutlineTreeNode *)NULL, src)
23
24#define IDOMOutlineTreeClassID 0xe506e704, 0x6e2a44ac, 0x90492ec9, 0xf0030b95
27#define edlobj2IDOMOutlineTree(src) edl_cast((IDOMOutlineTree *)NULL, src)
28
29class IDOMOutline;
31
52{
53#define IDOMOutlineEntryClassID 0x8779c348, 0x5b8647ad, 0x998a9ac5, 0xf917346d
54 public:
55
61 typedef enum
62 {
66#ifdef SWIG
67 eTextStyleBoldItalic = 0x01 | 0x02
68#else
70#endif
71 } eTextStyle;
72
74
88 static EDL_API IDOMOutlineTreeNodePtr createNode(IEDLClassFactory *pFactory,
89 const EDLString &description,
90 bool expanded = true,
91 const IDOMTargetPtr &target = IDOMTargetPtr(),
92 const IDOMColorPtr &textColor = IDOMColorPtr(),
94 EDLString language = EDLString(L"und"));
95
100 class Data : public CClassParams
101 {
102 public:
104 {}
107 IDOMTargetPtr ptrTarget;
108 IDOMColorPtr ptrTextColor;
111 IEDLObjectPtr ptrStructureElement;
112 };
113
125 virtual bool getLanguage (EDLString &strLanguage) const = 0;
126
138 virtual bool setLanguage (const EDLString &strLanguage) = 0;
139
145 virtual bool getDescription(EDLString &strDescription) const = 0;
146
152 virtual bool setDescription (const EDLString &strDescription) = 0;
153
160 virtual bool getTarget(IDOMTargetPtr &ptrTarget) const = 0;
161
168 virtual bool setTarget(const IDOMTargetPtr &ptrTarget) = 0;
169
175 virtual bool getTextColor(IDOMColorPtr &ptrColor) const = 0;
176
182 virtual bool setTextColor(const IDOMColorPtr &ptrColor) = 0;
183
189 virtual eTextStyle getTextStyle() const = 0;
190
196 virtual void setTextStyle(eTextStyle style) = 0;
197
202 virtual bool getExpanded() const = 0;
203
208 virtual void setExpanded(bool expanded) = 0;
209
215 virtual bool getStructureElement(IEDLObjectPtr &ptrSE) const = 0;
216
222 virtual bool setStructureElement(const IEDLObjectPtr &ptrSE) = 0;
223};
224
225#define edlobj2IDOMOutlineEntry(src) edl_cast((IDOMOutlineEntry *)NULL, src)
226
238{
239#define IDOMOutlineClassID 0x236225f5, 0xf0ab4443, 0xa0f0b200, 0x138611e3
240
241public:
242
244
251 static EDL_API IDOMOutlinePtr create(IEDLClassFactory *pFactory, const EDLString &language = EDLString(L"und"));
252
257 class Data : public CClassParams
258 {
259 public:
261 {}
263 };
264
276 virtual bool getLanguage (EDLString &strLanguage) const = 0;
277
289 virtual bool setLanguage (const EDLString &strLanguage) = 0;
290
295 virtual IDOMOutlineTreePtr getOutlineTree() = 0;
296};
297
298#define edlobj2IDOMOutline(src) edl_cast((IDOMOutline *)NULL, src)
299
301
302#endif // __EDLIDOMOUTLINE_H__
EDL Object Interface.
Definition iedlobject.h:31
Data()
Definition idomoutline.h:260
EDLString language
Definition idomoutline.h:262
bool expanded
Definition idomoutline.h:110
EDLString description
Definition idomoutline.h:106
Data()
Definition idomoutline.h:103
eTextStyle textStyle
Definition idomoutline.h:109
IEDLObjectPtr ptrStructureElement
Definition idomoutline.h:111
IDOMColorPtr ptrTextColor
Definition idomoutline.h:108
EDLString language
Definition idomoutline.h:105
IDOMTargetPtr ptrTarget
Definition idomoutline.h:107
Represents an index to a specific location in the document or a specific location external to the doc...
Definition idomoutline.h:52
virtual bool setDescription(const EDLString &strDescription)=0
Sets the description of the outline entry node.
virtual bool setStructureElement(const IEDLObjectPtr &ptrSE)=0
Sets the structure element.
virtual bool getLanguage(EDLString &strLanguage) const =0
Retrieves the default language of the outline entry node.
virtual bool getDescription(EDLString &strDescription) const =0
Retrieves the description of the outline entry node.
virtual bool setTextColor(const IDOMColorPtr &ptrColor)=0
Sets the color to be used for the outline entry's text.
virtual bool getTarget(IDOMTargetPtr &ptrTarget) const =0
Retrieves the target of the outline entry node. If outline entry doesn't have target then ptrTarget w...
virtual void setExpanded(bool expanded)=0
Sets the outline entry's "expanded" flag.
virtual bool getTextColor(IDOMColorPtr &ptrColor) const =0
Retrieves the color to be used for the outline entry's text.
virtual bool getExpanded() const =0
Retrieves "expanded" flag value.
DECLARE_CLASS_ID(IDOMOutlineEntryClassID)
virtual bool getStructureElement(IEDLObjectPtr &ptrSE) const =0
Retrieves the structure element.
static EDL_API IDOMOutlineTreeNodePtr createNode(IEDLClassFactory *pFactory, const EDLString &description, bool expanded=true, const IDOMTargetPtr &target=IDOMTargetPtr(), const IDOMColorPtr &textColor=IDOMColorPtr(), eTextStyle style=eTextStyleNone, EDLString language=EDLString(L"und"))
Simplified creator to create an outline tree entry with a new outline tree node.
virtual eTextStyle getTextStyle() const =0
Retrieves the style to be used for the outline entry's text.
virtual void setTextStyle(eTextStyle style)=0
Sets the outline entry's text style.
virtual bool setLanguage(const EDLString &strLanguage)=0
Retrieves the default language of the outline entry node.
virtual bool setTarget(const IDOMTargetPtr &ptrTarget)=0
Sets the target of the outline entry node. NULL is a valid value of ptrTarget parameter.
@ eTextStyleItalic
Italic text style.
Definition idomoutline.h:64
@ eTextStyleNone
Default text style.
Definition idomoutline.h:63
@ eTextStyleBoldItalic
Bold and italic text style.
Definition idomoutline.h:69
@ eTextStyleBold
Bold text style.
Definition idomoutline.h:65
Represents the outline of the document, which is the collection of bookmarks for the document.
Definition idomoutline.h:238
virtual bool setLanguage(const EDLString &strLanguage)=0
the default language of the outline node.
static EDL_API IDOMOutlinePtr create(IEDLClassFactory *pFactory, const EDLString &language=EDLString(L"und"))
Simplified creator to create an outline.
virtual IDOMOutlineTreePtr getOutlineTree()=0
Retrieves the outline tree.
virtual bool getLanguage(EDLString &strLanguage) const =0
Retrieves the default language of the outline node.
DECLARE_CLASS_ID(IDOMOutlineClassID)
EDL Factory Interface allows one part of the EDL infrastructure to register class creation methods id...
Definition iedlfactory.h:31
IEDLObject is an abstract base class that is used by all classes that are intended to be created via ...
Definition iedlobject.h:53
Definition iedltree.h:47
Definition iedltree.h:22
#define _END_EDL_DOM_NAMESPACE
Definition edlnamespaces.h:110
#define _BEGIN_EDL_DOM_NAMESPACE
Definition edlnamespaces.h:109
std::wstring EDLString
Definition edlstring.h:165
EDL "standard" types including known bit-length signed and unsigned integer type[def]s and definition...
#define EDL_API
Definition edltypes.h:86
eTextStyle
Specifies an outline text style.
Definition idomoutline.h:62
#define IDOMOutlineClassID
Definition idomoutline.h:239
#define IDOMOutlineEntryClassID
Definition idomoutline.h:53
IEDLTreeNode< IDOMOutlineEntryPtr > IDOMOutlineTreeNode
Definition idomoutline.h:20
IEDLTree< IDOMOutlineEntryPtr > IDOMOutlineTree
Definition idomoutline.h:25
EDL "tree" interface.
#define DECL_SMART_PTR(cls)
Definition smartptr.h:211