PDFTool
7.0
|
PDFのアウトライン(しおり)を表現したクラスです。 More...
#include <PtlOutline.h>
Public Types | |
enum | ITEM_FLAG { FLAG_NORMAL = 0x00000000, FLAG_ITALIC = 0x00000001, FLAG_BOLD = 0x00000002 } |
Outline Item Flagsのビット定義 More... | |
Public Member Functions | |
int | getHandle () const |
PtlOutline () | |
コンストラクタ More... | |
PtlOutline (const PtlOutline &obj) | |
コピーコンストラクタ More... | |
‾PtlOutline () | |
デストラクタ | |
PtlOutline & | operator= (const PtlOutline &obj) |
コピーオペレータ More... | |
bool | isRoot () const |
ルートかどうかを取得。 More... | |
PtlParamString | getTitle () const |
アウトラインタイトル文字列を取得。 More... | |
void | setTitle (const PtlParamString &title) |
アウトラインタイトル文字列を設定。 More... | |
PtlAction & | getAction () const |
アクションを取得。 More... | |
void | setAction (const PtlAction &action) |
アクションを設定。 More... | |
void | removeAction () |
アクションを削除。 More... | |
PtlDest & | getDest () const |
宛先を取得。 More... | |
void | setDest (const PtlDest &dest) |
宛先を設定。 More... | |
PtlColorDeviceRGB | getColor () const |
アウトラインタイトルの色を取得。 More... | |
void | setColor (const PtlColorDeviceRGB &color) |
アウトラインタイトルの色を設定。 More... | |
int | getFlags () const |
アウトラインフラグを取得。 More... | |
void | setFlags (int flags) |
アウトラインフラグを設定。 More... | |
bool | isOpen () const |
PDF表示時の子アウトラインをオープンするかどうかを取得。 More... | |
void | setOpen (bool open) |
PDF表示時の子アウトラインをオープンするかどうかを設定。 More... | |
bool | hasParent () const |
親アウトラインを持つかを取得。 More... | |
PtlOutline | getParent () const |
親アウトラインを取得。 More... | |
bool | hasChild () const |
子アウトラインを持つかどうかを取得。 More... | |
PtlOutline | getFirstChild () const |
最初の子アウトラインを取得。 More... | |
PtlOutline | getLastChild () const |
最後の子アウトラインを取得。 More... | |
bool | hasPrevSibling () const |
前の兄弟アウトラインを持つかどうかを取得。 More... | |
PtlOutline | getPrevSibling () const |
前の兄弟アウトラインを取得。 More... | |
bool | hasNextSibling () const |
次の兄弟アウトラインを持つかどうかを取得。 More... | |
PtlOutline | getNextSibling () const |
次の兄弟アウトラインを取得。 More... | |
void | appendLastChild (const PtlOutline &item) |
子アウトラインを追加。 More... | |
void | appendNextSibling (const PtlOutline &item) |
兄弟アウトラインを追加。 More... | |
void | removeChildren () |
子アウトラインを削除。 More... | |
void | destroy () |
自分自身及び子アウトラインを削除。 More... | |
PDFのアウトライン(しおり)を表現したクラスです。
PdfTk::PtlOutline::PtlOutline | ( | ) |
コンストラクタ
PtlException |
PdfTk::PtlOutline::PtlOutline | ( | const PtlOutline & | obj | ) |
void PdfTk::PtlOutline::appendLastChild | ( | const PtlOutline & | item | ) |
子アウトラインを追加。
最後に、子アウトラインを追加します。
自分自身がルート項目,若しくはルート項目の子孫でない場合、例外が発生します。
item | 子アウトライン |
void PdfTk::PtlOutline::appendNextSibling | ( | const PtlOutline & | item | ) |
兄弟アウトラインを追加。
最後に、兄弟アウトラインを追加します。
自分自身がルート項目,若しくはルート項目の子孫でない場合、例外が発生します。
item | 兄弟アウトライン |
void PdfTk::PtlOutline::destroy | ( | ) |
自分自身及び子アウトラインを削除。
PtlException |
PtlAction& PdfTk::PtlOutline::getAction | ( | ) | const |
PtlColorDeviceRGB PdfTk::PtlOutline::getColor | ( | ) | const |
PtlDest& PdfTk::PtlOutline::getDest | ( | ) | const |
宛先を取得。
PtlDestを取得後、タイプを確認の上使用して下さい。
GoToRの宛先は取得されません。GoToRの宛先はActionGoToRから取得して下さい。
PtlException |
PtlOutline PdfTk::PtlOutline::getFirstChild | ( | ) | const |
最初の子アウトラインを取得。
存在しない場合、PtlErrorCode::NO_OBJECTが例外として発生します。
この関数の使用前にhasChild関数で子アウトラインの有無を確認してください。
PtlException |
int PdfTk::PtlOutline::getFlags | ( | ) | const |
PtlOutline PdfTk::PtlOutline::getLastChild | ( | ) | const |
最後の子アウトラインを取得。
存在しない場合、PtlErrorCode::NO_OBJECTが例外として発生します。
この関数の使用前にhasChild関数で子アウトラインの有無を確認してください。
PtlException |
PtlOutline PdfTk::PtlOutline::getNextSibling | ( | ) | const |
次の兄弟アウトラインを取得。
存在しない場合、PtlErrorCode::NO_OBJECTが例外として発生します。
この関数の使用前にhasNextSibling関数で次の兄弟アウトラインの有無を確認してください。
PtlException |
PtlOutline PdfTk::PtlOutline::getParent | ( | ) | const |
親アウトラインを取得。
存在しない場合、PtlErrorCode::NO_OBJECTが例外として発生します。
この関数の使用前にhasParent関数で親アウトラインの有無を確認してください。
PtlException |
PtlOutline PdfTk::PtlOutline::getPrevSibling | ( | ) | const |
前の兄弟アウトラインを取得。
存在しない場合、PtlErrorCode::NO_OBJECTが例外として発生します。
この関数の使用前にhasPrevSibling関数で前の兄弟アウトラインの有無を確認してください。
PtlException |
PtlParamString PdfTk::PtlOutline::getTitle | ( | ) | const |
bool PdfTk::PtlOutline::hasChild | ( | ) | const |
bool PdfTk::PtlOutline::hasNextSibling | ( | ) | const |
bool PdfTk::PtlOutline::hasParent | ( | ) | const |
bool PdfTk::PtlOutline::hasPrevSibling | ( | ) | const |
bool PdfTk::PtlOutline::isOpen | ( | ) | const |
bool PdfTk::PtlOutline::isRoot | ( | ) | const |
ルートかどうかを取得。
ルートは仮想のしおりで一番上位にあり、他のしおりをたどっていく基点となります。
ルートは基点なので名前などはありません。
PtlException |
PtlOutline& PdfTk::PtlOutline::operator= | ( | const PtlOutline & | obj | ) |
コピーオペレータ
obj | コピー元オブジェクト。 |
void PdfTk::PtlOutline::removeAction | ( | ) |
アクションを削除。
PtlException |
void PdfTk::PtlOutline::removeChildren | ( | ) |
子アウトラインを削除。
PtlException |
void PdfTk::PtlOutline::setAction | ( | const PtlAction & | action | ) |
void PdfTk::PtlOutline::setColor | ( | const PtlColorDeviceRGB & | color | ) |
void PdfTk::PtlOutline::setDest | ( | const PtlDest & | dest | ) |
void PdfTk::PtlOutline::setFlags | ( | int | flags | ) |
void PdfTk::PtlOutline::setOpen | ( | bool | open | ) |
PDF表示時の子アウトラインをオープンするかどうかを設定。
open | PDF表示時の子アウトラインをオープンする指定。trueならオープンする。 |
PtlException |
void PdfTk::PtlOutline::setTitle | ( | const PtlParamString & | title | ) |