Antenna House PDF Tool API (C++) 8.0
PtlOutline.h
1
2// PtlOutline.h
3// Copyright (C) 2013-2025 Antenna House,Inc.
4// All rights reserved.
6#ifndef PDFTK_PTLOUTLINE_H_
7#define PDFTK_PTLOUTLINE_H_
8
9#include "PtlColorDeviceRGB.h"
10#include "PtlParamString.h"
11
12namespace PdfTk {
13
14class PtlDest;
15class PtlAction;
16
20
21class PDFTK_API PtlOutline
22{
23public:
27 enum ITEM_FLAG {
28 FLAG_NORMAL = 0x00000000,
29 FLAG_ITALIC = 0x00000001,
30 FLAG_BOLD = 0x00000002
31 };
32
33private:
34 int m_dataOutline;
35public:
36 int getHandle() const;
37
38public:
44
51
56
57public:
63
64public:
73 bool isRoot() const;
74
75public:
82
88 void setTitle(const PtlParamString& title);
89
90public:
99
107 void setAction(const PtlAction& action);
108
114
115public:
124 PtlDest& getDest() const;
125
131 void setDest(const PtlDest& dest);
132
133public:
140
146 void setColor(const PtlColorDeviceRGB& color);
147
148public:
156 int getFlags() const;
157
165 void setFlags(int flags);
166
167public:
173 bool isOpen() const;
174
180 void setOpen(bool open);
181
182public:
188 bool hasParent() const;
189
199
200public:
206 bool hasChild() const;
207
217
227
228public:
234 bool hasPrevSibling() const;
235
245
251 bool hasNextSibling() const;
252
262
263public:
264
272 void appendLastChild(const PtlOutline& item);
273
281 void appendNextSibling(const PtlOutline& item);
282
288
293 void destroy();
294};
295
296} // namespace PdfTk
297
298#endif // PDFTK_PTLOUTLINE_H_
void setAction(const PtlAction &action)
アクションを設定。
const PtlParamString & getTitle()
アウトラインタイトル文字列を取得。
void removeChildren()
子アウトラインを削除。
PtlOutline getNextSibling() const
次の兄弟アウトラインを取得。
PtlOutline(const PtlOutline &obj)
コピーコンストラクタ
PtlOutline getPrevSibling() const
前の兄弟アウトラインを取得。
PtlDest & getDest() const
宛先を取得。
void appendLastChild(const PtlOutline &item)
子アウトラインを追加。
void setOpen(bool open)
PDF表示時の子アウトラインをオープンするかどうかを設定。
void setTitle(const PtlParamString &title)
アウトラインタイトル文字列を設定。
bool hasPrevSibling() const
前の兄弟アウトラインを持つかどうかを取得。
void setDest(const PtlDest &dest)
宛先を設定。
bool isRoot() const
ルートかどうかを取得。
PtlOutline getParent() const
親アウトラインを取得。
int getFlags() const
アウトラインフラグを取得。
PtlColorDeviceRGB getColor() const
アウトラインタイトルの色を取得。
void destroy()
自分自身及び子アウトラインを削除。
PtlAction & getAction() const
アクションを取得。
PtlOutline & operator=(const PtlOutline &obj)
コピーオペレータ
bool hasParent() const
親アウトラインを持つかを取得。
PtlOutline getFirstChild() const
最初の子アウトラインを取得。
void setColor(const PtlColorDeviceRGB &color)
アウトラインタイトルの色を設定。
~PtlOutline()
デストラクタ
void removeAction()
アクションを削除。
bool hasNextSibling() const
次の兄弟アウトラインを持つかどうかを取得。
bool hasChild() const
子アウトラインを持つかどうかを取得。
void setFlags(int flags)
アウトラインフラグを設定。
PtlOutline getLastChild() const
最後の子アウトラインを取得。
PtlOutline()
コンストラクタ
void appendNextSibling(const PtlOutline &item)
兄弟アウトラインを追加。
bool isOpen() const
PDF表示時の子アウトラインをオープンするかどうかを取得。