CFx SDK Documentation  2020SP3
PdfPublishTextField.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
26 //
27 // PdfPublishTextField.h
28 //
30 
31 #ifndef _PDF_PUBLISH_TEXTFIELD_INCLUDED_
32 #define _PDF_PUBLISH_TEXTFIELD_INCLUDED_
33 
34 #include "PdfPublishBaseObject.h"
35 
39 namespace OdPdfPublish{
40 
46 {
47 public:
48  //DOM-IGNORE-BEGIN
51  //DOM-IGNORE-END
52 
57 
61  virtual ~OdTextField();
62 
70  void setName(const OdString& name);
71 
81 
82  void setFont(const OdString& fontName, Text::FontStyle fontStyle = Text::kRegular);
83 
90 
96  void setTextColor(ODCOLORREF color);
97 
104  void setTooltip(const OdString& tooltip);
105 
112  void setVisibility(bool state);
113 
120  void setPrintability(bool state);
121 
128  void setLock(bool state);
129 
136  void setBorder(bool state);
137 
144 
154 
164 
171 
178 
188 
196  void setMultiline(bool state);
197 
205  void setScrolling(bool state);
206 
213  void setReadOnly(bool state);
214 
224 
231  void getName(OdString& name) const;
232 
233  void getFont(Text::StorageType& storageType, Text::StandardFontsType& fontType, OdString& fontName, Text::FontStyle& fontStyle) const;
234 
241  void getFontSize(OdUInt16& size) const;
242 
249  void getTextColor(ODCOLORREF& color) const;
250 
259  void getTooltip(OdString& tooltip) const;
260 
268  void getVisibility(bool& state) const;
269 
277  void getPrintability(bool& state) const;
278 
286  void getLock(bool& state) const;
287 
295  void getBorder(bool& state) const;
296 
303  void getBorderColor(ODCOLORREF& color) const;
304 
314  void getBorderThickness(Border::Thickness& thickness) const;
315 
324  void getBorderStyle(Border::Style& style) const;
325 
332  void getFillColor(ODCOLORREF& color) const;
333 
341 
351  void getTextJustification(Text::Justification& justification) const;
352 
361  void getMultiline(bool& state) const;
362 
371  void getScrolling(bool& state) const;
372 
380  void getReadOnly(bool& state) const;
381 
391  void getTextRotation(Text::Rotation& rotation) const;
392 
393 };
394 
399 
400 }
401 #endif // _PDF_PUBLISH_TEXTFIELD_INCLUDED_
402 
OdPdfPublish::OdTextField::getFontSize
void getFontSize(OdUInt16 &size) const
OdPdfPublish::OdTextField::getName
void getName(OdString &name) const
OdString
Definition: OdString.h:95
OdPdfPublish::OdTextField::setVisibility
void setVisibility(bool state)
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdPdfPublish::OdTextField::getFillColor
void getFillColor(ODCOLORREF &color) const
OdPdfPublish::OdTextField::setBorderColor
void setBorderColor(ODCOLORREF color)
OdPdfPublish::OdTextField::getReadOnly
void getReadOnly(bool &state) const
OdPdfPublish::Text::StorageType
StorageType
Definition: PdfPublishCommon.h:330
OdPdfPublish::OdTextField::setLock
void setLock(bool state)
OdPdfPublish::OdTextField::getTooltip
void getTooltip(OdString &tooltip) const
OdPdfPublish::Text::kRegular
@ kRegular
Definition: PdfPublishCommon.h:284
OdPdfPublish::OdTextField::setTextColor
void setTextColor(ODCOLORREF color)
OdPdfPublish::OdTextField::getTextJustification
void getTextJustification(Text::Justification &justification) const
OdPdfPublish::OdTextField::getVisibility
void getVisibility(bool &state) const
OdPdfPublish::OdTextField::~OdTextField
virtual ~OdTextField()
OdPdfPublish::OdTextField::setBorderStyle
void setBorderStyle(Border::Style style)
OdPdfPublish::OdTextField::getScrolling
void getScrolling(bool &state) const
OdPdfPublish::OdTextField::setFont
void setFont(Text::StandardFontsType fontType)
OdPdfPublish::Text::Justification
Justification
Definition: PdfPublishCommon.h:293
OdPdfPublish::OdTextField::getBorder
void getBorder(bool &state) const
OdPdfPublish::Border::Thickness
Thickness
Definition: PdfPublishCommon.h:257
OdUInt16
unsigned short OdUInt16
Definition: OdPlatformSettings.h:760
OdPdfPublish::OdTextField::setReadOnly
void setReadOnly(bool state)
OdPdfPublish::OdTextField::setFontSize
void setFontSize(OdUInt16 size)
size
GLsizeiptr size
Definition: gles2_ext.h:182
OdPdfPublish::OdTextField::setScrolling
void setScrolling(bool state)
OdPdfPublish::OdTextField::setTextJustification
void setTextJustification(Text::Justification justification)
OdPdfPublish::OdTextField::setBorder
void setBorder(bool state)
OdPdfPublish::SMARTPTR
SMARTPTR(OdFile)
OdPdfPublish::OdTextField::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdTextField)
OdPdfPublish::OdTextField::setDefaultValue
void setDefaultValue(const OdString &value)
PDFPUBLISH_TOOLKIT
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
OdPdfPublish::Border::Style
Style
Definition: PdfPublishCommon.h:266
OdPdfPublish::OdTextField::getBorderStyle
void getBorderStyle(Border::Style &style) const
OdPdfPublish::OdTextField::setTextRotation
void setTextRotation(Text::Rotation rotation)
OdPdfPublish::OdTextField
Definition: PdfPublishTextField.h:46
OdPdfPublish
Definition: PdfPublish.h:42
OdPdfPublish::Text::StandardFontsType
StandardFontsType
Definition: PdfPublishCommon.h:313
OdPdfPublish::OdTextField::getTextColor
void getTextColor(ODCOLORREF &color) const
OdPdfPublish::OdTextField::getPrintability
void getPrintability(bool &state) const
OdPdfPublish::OdTextField::setMultiline
void setMultiline(bool state)
OdPdfPublish::OdTextField::getTextRotation
void getTextRotation(Text::Rotation &rotation) const
OdPdfPublish::OdTextField::getFont
void getFont(Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::FontStyle &fontStyle) const
OdPdfPublish::OdTextField::getBorderColor
void getBorderColor(ODCOLORREF &color) const
OdPdfPublish::OdTextField::getBorderThickness
void getBorderThickness(Border::Thickness &thickness) const
OdPdfPublish::OdTextField::getMultiline
void getMultiline(bool &state) const
OdPdfPublish::OdTextField::setName
void setName(const OdString &name)
PdfPublishBaseObject.h
OdPdfPublish::OdTextField::setTooltip
void setTooltip(const OdString &tooltip)
OdPdfPublish::OdTextField::setPrintability
void setPrintability(bool state)
OdPdfPublish::OdTextField::setFont
void setFont(const OdString &fontName, Text::FontStyle fontStyle=Text::kRegular)
OdPdfPublish::OdTextField::getLock
void getLock(bool &state) const
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OdPdfPublish::OdTextField::ODRX_HEAP_OPERATORS
ODRX_HEAP_OPERATORS()
OdPdfPublish::Text::FontStyle
FontStyle
Definition: PdfPublishCommon.h:283
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdPdfPublish::OdTextField::setFillColor
void setFillColor(ODCOLORREF color)
OdPdfPublish::OdTextField::getDefaultValue
void getDefaultValue(OdString &value) const
OdPdfPublish::OdTextField::setBorderThickness
void setBorderThickness(Border::Thickness thickness)
OdPdfPublish::OdTextField::OdTextField
OdTextField()
OdPdfPublish::Text::Rotation
Rotation
Definition: PdfPublishCommon.h:302
OdPdfPublish::OdObject
Definition: PdfPublishBaseObject.h:71