|
PDFTool
6.0
|
PDFの開き方を表現したクラスです。
PtlOpenModeはPtlDocPropertyから取得して使用します。
More...
#include <PtlOpenMode.h>
Public Types | |
| enum | PAGE_MODE { PAGE_MODE_USE_NONE = 1, PAGE_MODE_USE_OUTLINES = 2, PAGE_MODE_USE_THUMBS = 3, PAGE_MODE_USE_OC = 5, PAGE_MODE_USE_ATTACHMENTS = 6 } |
| ページモード 文書を開いたときのページ表示方法です。 More... | |
| enum | PAGE_LAYOUT { PAGE_LAYOUT_SINGLE_PAGE = 1, PAGE_LAYOUT_ONE_COLUMN = 2, PAGE_LAYOUT_TWO_COLUMN_LEFT = 3, PAGE_LAYOUT_TWO_COLUMN_RIGHT = 4, PAGE_LAYOUT_TWO_PAGE_LEFT = 5, PAGE_LAYOUT_TWO_PAGE_RIGHT = 6 } |
| ページレイアウトタイプ 文書を開いたときに使われるページレイアウトです。 More... | |
| enum | WINDOWS_OPTION { WINDOWS_OPTION_NONE = 0x00000000, WINDOWS_OPTION_FIT_WINDOW = 0x00000001, WINDOWS_OPTION_CENTER_WINDOW = 0x00000002, WINDOWS_OPTION_FULL_SCREEN = 0x00000004 } |
| ウィンドウオプション More... | |
| enum | UI_OPTION { UI_OPTION_NONE = 0x00000000, UI_OPTION_HIDE_MENUBAR = 0x00000001, UI_OPTION_HIDE_TOOLBAR = 0x00000002, UI_OPTION_HIDE_WINDOWUI = 0x00000004 } |
| ユーザーインターフェイスオプション More... | |
Public Member Functions | |
| int | getHandle () const |
| PtlOpenMode () | |
| コンストラクタ More... | |
| PtlOpenMode (const PtlOpenMode &obj) | |
| コピーコンストラクタ More... | |
| ‾PtlOpenMode () | |
| デストラクタ | |
| PtlOpenMode & | operator= (const PtlOpenMode &obj) |
| コピーオペレータ More... | |
| bool | hasPageMode () const |
| ページモードを持っているかを取得。 More... | |
| PAGE_MODE | getPageMode () const |
| ページモードを取得。 More... | |
| void | setPageMode (PAGE_MODE pageMode) |
| ページモードを設定。 More... | |
| bool | hasPageLayout () const |
| ページレイアウトを持っているかを取得。 More... | |
| PAGE_LAYOUT | getPageLayout () const |
| ページレイアウトを取得。 More... | |
| void | setPageLayout (PAGE_LAYOUT pageLayout) |
| ページレイアウトを設定。 More... | |
| PtlAction & | getOpenAction () const |
| オープンアクションを取得。 More... | |
| void | setOpenAction (const PtlAction &action) |
| オープンアクションを設定。 More... | |
| PtlDest & | getOpenDest () const |
| オープン時の宛先を取得。 More... | |
| void | setOpenDest (const PtlDest &dest) |
| オープン時の宛先を設定。 More... | |
| void | removeOpenAction () |
| オープンアクションを削除。 More... | |
| int | getWindowOption () const |
| ウィンドウオプションを取得。 More... | |
| void | setWindowOption (int option) |
| ウィンドウオプションを設定。 More... | |
| bool | getDisplayDocTitle () const |
| ウィンドウのタイトルバーに文書タイトルを表示するかどうかを取得。 More... | |
| void | setDisplayDocTitle (bool docTitle) |
| ウィンドウのタイトルバーに文書タイトルを表示するかどうかを設定。 More... | |
| int | getUIOption () const |
| ユーザーインターフェイスオプションを取得。 More... | |
| void | setUIOption (int option) |
| ユーザーインターフェイスオプションを設定。 More... | |
PDFの開き方を表現したクラスです。
PtlOpenModeはPtlDocPropertyから取得して使用します。
| PdfTk::PtlOpenMode::PtlOpenMode | ( | ) |
コンストラクタ
| PtlException |
| PdfTk::PtlOpenMode::PtlOpenMode | ( | const PtlOpenMode & | obj | ) |
| bool PdfTk::PtlOpenMode::getDisplayDocTitle | ( | ) | const |
ウィンドウのタイトルバーに文書タイトルを表示するかどうかを取得。
| PtlAction& PdfTk::PtlOpenMode::getOpenAction | ( | ) | const |
| PtlDest& PdfTk::PtlOpenMode::getOpenDest | ( | ) | const |
オープン時の宛先を取得。
PtlDestを取得後、タイプを確認の上使用して下さい。
GoToRの宛先は取得されません。GoToRの宛先はgetOpenActionから取得して下さい。
| PtlException |
| PAGE_LAYOUT PdfTk::PtlOpenMode::getPageLayout | ( | ) | const |
| PAGE_MODE PdfTk::PtlOpenMode::getPageMode | ( | ) | const |
| int PdfTk::PtlOpenMode::getUIOption | ( | ) | const |
ユーザーインターフェイスオプションを取得。
ユーザーインターフェイスオプションが論理和で指定されています。
| PtlException |
| int PdfTk::PtlOpenMode::getWindowOption | ( | ) | const |
ウィンドウオプションを取得。
ウィンドウオプションが論理和で指定されています。
| PtlException |
| bool PdfTk::PtlOpenMode::hasPageLayout | ( | ) | const |
| bool PdfTk::PtlOpenMode::hasPageMode | ( | ) | const |
| PtlOpenMode& PdfTk::PtlOpenMode::operator= | ( | const PtlOpenMode & | obj | ) |
コピーオペレータ
| obj | コピー元オブジェクト。 |
| void PdfTk::PtlOpenMode::removeOpenAction | ( | ) |
オープンアクションを削除。
| PtlException |
| void PdfTk::PtlOpenMode::setDisplayDocTitle | ( | bool | docTitle | ) |
ウィンドウのタイトルバーに文書タイトルを表示するかどうかを設定。
| docTitle | true: 表示、false: 非表示。 |
| void PdfTk::PtlOpenMode::setOpenAction | ( | const PtlAction & | action | ) |
オープンアクションを設定。
同時にsetOpenDestを使用すると後に設定したほうが反映されます。
AcrobatではPtlActionLaunch(PDFを指定したもの)、PtlActionGoToRを設定しても動作しません。
| action | アクション。 |
| PtlException |
| void PdfTk::PtlOpenMode::setOpenDest | ( | const PtlDest & | dest | ) |
| void PdfTk::PtlOpenMode::setPageLayout | ( | PAGE_LAYOUT | pageLayout | ) |
| void PdfTk::PtlOpenMode::setPageMode | ( | PAGE_MODE | pageMode | ) |
ページモードを設定。
同時にsetWindowOptionでWINDOWS_OPTION_FULL_SCREENを指定すると後に設定したほうが反映されます。
| pageMode | ページモード。 |
| PtlException |
| void PdfTk::PtlOpenMode::setUIOption | ( | int | option | ) |
ユーザーインターフェイスオプションを設定。
ユーザーインターフェイスオプションを論理和で指定します。
| option | ユーザーインターフェイスオプション。UI_OPTION_XXXのユーザーインターフェイスオプション。 |
| PtlException |
| void PdfTk::PtlOpenMode::setWindowOption | ( | int | option | ) |
ウィンドウオプションを設定。
ウィンドウオプションを論理和で指定します。
同時にsetPageModeを使用すると後に設定したほうが反映されます。
| option | ウィンドウオプション。WINDOW_OPTION_XXXのウィンドウオプション。 |
| PtlException |
1.8.18