00001
00002
00003
00004
00005
00006
00007 #ifndef H_PDFTRON_PDF_CPPWRAP_SCREEN
00008 #define H_PDFTRON_PDF_CPPWRAP_SCREEN
00009
00010 #include <PDF/Annot.h>
00011
00012 namespace pdftron {
00013 namespace PDF {
00014 namespace Annots {
00020 class Screen : public Annot
00021 {
00022 public:
00028 Screen(SDF::Obj d = 0);
00029
00035 Screen(const Annot& ann) : Annot(ann.GetSDFObj()) {}
00036
00045 static Screen Create(SDF::SDFDoc& doc, const Rect& pos);
00046
00052 UString GetTitle() const;
00053
00060 void SetTitle(const UString& title);
00061
00068 Action GetAction() const;
00069
00078 void SetAction(const Action& action);
00079
00088 SDF::Obj GetTriggerAction() const;
00089
00099 void SetTriggerAction(SDF::Obj action);
00100
00116 int GetRotation() const;
00117
00128 void SetRotation(int rot);
00129
00138 int GetBorderColorCompNum() const;
00139
00147 ColorPt GetBorderColor() const;
00148
00156 void SetBorderColor(const ColorPt& c, int CompNum);
00157
00166 int GetBackgroundColorCompNum() const;
00167
00175 ColorPt GetBackgroundColor() const;
00176
00184 void SetBackgroundColor(const ColorPt& c, int CompNum);
00185
00193 UString GetStaticCaptionText() const;
00194
00203 void SetStaticCaptionText(const UString& ct);
00204
00212 UString GetRolloverCaptionText() const;
00213
00222 void SetRolloverCaptionText(const UString& ct);
00223
00231 UString GetMouseDownCaptionText() const;
00232
00241 void SetMouseDownCaptionText(const UString& ct);
00242
00252 SDF::Obj GetStaticIcon() const;
00253
00264 void SetStaticIcon(SDF::Obj ic);
00265
00276 SDF::Obj GetRolloverIcon() const;
00277
00289 void SetRolloverIcon(SDF::Obj ic);
00290
00300 SDF::Obj GetMouseDownIcon() const;
00301
00312 void SetMouseDownIcon(SDF::Obj ic);
00313
00314
00328 enum IconCaptionRelation
00329 {
00330 e_NoIcon,
00331 e_NoCaption,
00332 e_CBelowI,
00333 e_CAboveI,
00334 e_CRightILeft,
00335 e_CLeftIRight,
00336 e_COverlayI
00337 };
00338
00346 IconCaptionRelation GetIconCaptionRelation() const;
00347
00357 void SetIconCaptionRelation(IconCaptionRelation icr);
00358
00371 enum ScaleCondition
00372 {
00373 e_Always,
00374 e_WhenBigger,
00375 e_WhenSmaller,
00376 e_Never
00377 };
00378
00386 ScaleCondition GetScaleCondition() const;
00387
00395 void SetScaleCondition(ScaleCondition sd);
00396
00412 enum ScaleType
00413 {
00414 e_Anamorphic,
00415 e_Proportional
00416 };
00417
00425 ScaleType GetScaleType() const;
00426
00435 void SetScaleType(ScaleType st);
00436
00437
00450 double GetHIconLeftOver() const;
00451
00465 void SetHIconLeftOver(double hl);
00466
00482 double GetVIconLeftOver() const;
00483
00500 void SetVIconLeftOver(double vl);
00501
00512 bool GetFitFull() const;
00513
00524 void SetFitFull(bool ff);
00525
00527 Screen(TRN_Annot screen);
00529
00530 };
00531 };
00532 };
00533 };
00534 #include <Impl/Screen.inl>
00535 #endif