PDFTool  7.0
PtlParamRestriction.h
1 // PtlParamRestriction.h
3 // Copyright (C) 2013-2018 Antenna House,Inc.
4 // All rights reserved.
6 #ifndef PDFTK_PTLPARAMRESTRICTION_H_
7 #define PDFTK_PTLPARAMRESTRICTION_H_
8 
9 #include "PdfTkBase.h"
10 
11 namespace PdfTk {
12 
13 class PtlParamString;
14 class PtlDate;
15 class PtlParamWaterMark;
16 
21 class PDFTK_API PtlParamRestriction
22 {
23 public:
27  enum PAGE_RANGE {
28  PAGE_RANGE_ALL = 0,
29  PAGE_RANGE_FIRST = 1,
30  PAGE_RANGE_LAST = 2,
31  PAGE_RANGE_ODD = 3,
32  PAGE_RANGE_EVEN = 4,
33  PAGE_RANGE_CUSTOM = 5
34  };
35 
36 private:
37  int m_dataParamRestriction;
38 public:
39  int getHandle() const;
40 
41 public:
47 
54 
59 
60 public:
66 
67 public:
75  void appendValidURL(const PtlParamString& url);
76 
77 public:
83  void setValidTermStart(const PtlDate& start);
84 
90  void setValidTermEnd(const PtlDate& end);
91 
92 public:
102  void setWatermark(const PtlParamWaterMark& paramWM);
103 
112  void setEnableParamWatermark(bool enableParam);
113 public:
121  void setPageRange(PAGE_RANGE pageRange);
122 
131  void setCustomPageRange(const PtlParamString& customPageRange);
132 };
133 
134 } // namespace PdfTk
135 
136 #endif // PDFTK_PTLPARAMRESTRICTION_H_
PdfTk::PtlParamRestriction::operator=
PtlParamRestriction & operator=(const PtlParamRestriction &obj)
コピーオペレータ
PdfTk::PtlParamRestriction::setValidTermStart
void setValidTermStart(const PtlDate &start)
閲覧可能とする期間の開始日を設定。
PdfTk::PtlParamRestriction::appendValidURL
void appendValidURL(const PtlParamString &url)
閲覧可能とするURLを追加。
PdfTk::PtlParamRestriction
PDFの閲覧制限を表現したクラスです。
Definition: PtlParamRestriction.h:22
PdfTk::PtlParamRestriction::setWatermark
void setWatermark(const PtlParamWaterMark &paramWM)
閲覧不可時に表示するウォーターマークを設定。
PdfTk::PtlParamRestriction::PtlParamRestriction
PtlParamRestriction(const PtlParamRestriction &obj)
コピーコンストラクタ
PdfTk::PtlParamRestriction::PAGE_RANGE
PAGE_RANGE
閲覧制限を行うページの範囲
Definition: PtlParamRestriction.h:27
PdfTk::PtlParamRestriction::setEnableParamWatermark
void setEnableParamWatermark(bool enableParam)
閲覧不可時に表示するウォーターマークのパラメータを有効にするかの設定。
PdfTk::PtlParamRestriction::setPageRange
void setPageRange(PAGE_RANGE pageRange)
閲覧制限を行うページの範囲を設定。
PdfTk::PtlParamString
文字列を扱うクラスです。
Definition: PtlParamString.h:27
PdfTk::PtlParamRestriction::setValidTermEnd
void setValidTermEnd(const PtlDate &end)
閲覧可能とする期間の終了日を設定。
PdfTk::PtlParamWaterMark
透かしの設定で使うパラメータクラスです。 すべての透かしパラメータクラスのベースクラスです。
Definition: PtlParamWaterMark.h:22
PdfTk::PtlDate
PDFの日時情報を表現したクラスです。
Definition: PtlDate.h:18
PdfTk::PtlParamRestriction::‾PtlParamRestriction
‾PtlParamRestriction()
デストラクタ
PdfTk::PtlParamRestriction::PtlParamRestriction
PtlParamRestriction()
コンストラクタ
PdfTk::PtlParamRestriction::setCustomPageRange
void setCustomPageRange(const PtlParamString &customPageRange)
閲覧制限を行うページの範囲の指定を設定。