CFx SDK Documentation  2020SP3
PdfPublishListBox.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 // PdfPublishListBox.h
28 //
30 
31 #ifndef _PDF_PUBLISH_LISTBOX_INCLUDED_
32 #define _PDF_PUBLISH_LISTBOX_INCLUDED_
33 
34 #include "PdfPublishBaseObject.h"
35 #include "StringArray.h"
36 
40 namespace OdPdfPublish{
41 
47 {
48 public:
49  //DOM-IGNORE-BEGIN
52  //DOM-IGNORE-END
53 
58 
62  virtual ~OdListBox();
63 
71  void setName(const OdString& name);
72 
82  void setFont(const OdString& fontName, Text::FontStyle fontStyle = Text::kRegular);
83 
84  void setFont(const Text::StandardFontsType fontType);
85 
92 
98  void setTextColor(ODCOLORREF color);
99 
106  void setTooltip(const OdString& tooltip);
107 
114  void setVisibility(bool state);
115 
122  void setPrintability(bool state);
123 
133 
140  void setLock(bool state);
141 
148  void setBorder(bool state);
149 
156 
166 
176 
183 
190  void setMultipleSelection(bool state);
191 
199  void setContents(const OdStringArray& displayed_values, const OdStringArray& export_values);
200 
201 
208  void getName(OdString& name) const;
209 
220  void getFont(Text::StorageType& storageType, Text::StandardFontsType& fontType, OdString& fontName, Text::FontStyle& fontStyle) const;
221 
228  void getFontSize(OdUInt16& size) const;
229 
236  void getTextColor(ODCOLORREF& color) const;
237 
246  void getTooltip(OdString& tooltip) const;
247 
255  void getVisibility(bool& state) const;
256 
264  void getPrintability(bool& state) const;
265 
275  void getTextRotation(Text::Rotation& rotation) const;
276 
284  void getLock(bool& state) const;
285 
293  void getBorder(bool& state) const;
294 
301  void getBorderColor(ODCOLORREF& color) const;
302 
312  void getBorderThickness(Border::Thickness& thickness) const;
313 
323  void getBorderStyle(Border::Style& style) const;
324 
331  void getFillColor(ODCOLORREF& color) const;
332 
339  void getMultipleSelection(bool& state) const;
340 
348  void getContents(OdStringArray& displayed_values, OdStringArray& export_values) const;
349 
350 };
351 
356 
357 }
358 #endif // _PDF_PUBLISH_LISTBOX_INCLUDED_
359 
OdPdfPublish::OdListBox::setTextColor
void setTextColor(ODCOLORREF color)
OdString
Definition: OdString.h:95
OdPdfPublish::OdListBox::setName
void setName(const OdString &name)
OdPdfPublish::OdListBox::setBorderColor
void setBorderColor(ODCOLORREF color)
OdPdfPublish::OdListBox::getVisibility
void getVisibility(bool &state) const
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdPdfPublish::OdListBox::OdListBox
OdListBox()
OdPdfPublish::OdListBox::setLock
void setLock(bool state)
OdPdfPublish::Text::StorageType
StorageType
Definition: PdfPublishCommon.h:330
OdPdfPublish::OdListBox::getLock
void getLock(bool &state) const
OdPdfPublish::OdListBox::getTextRotation
void getTextRotation(Text::Rotation &rotation) const
StringArray.h
OdPdfPublish::Text::kRegular
@ kRegular
Definition: PdfPublishCommon.h:284
OdPdfPublish::OdListBox::setBorderThickness
void setBorderThickness(Border::Thickness thickness)
OdPdfPublish::OdListBox::getFillColor
void getFillColor(ODCOLORREF &color) const
OdArray< OdString >
OdPdfPublish::OdListBox::setTooltip
void setTooltip(const OdString &tooltip)
OdPdfPublish::Border::Thickness
Thickness
Definition: PdfPublishCommon.h:257
OdUInt16
unsigned short OdUInt16
Definition: OdPlatformSettings.h:760
OdPdfPublish::OdListBox::getTextColor
void getTextColor(ODCOLORREF &color) const
size
GLsizeiptr size
Definition: gles2_ext.h:182
OdPdfPublish::OdListBox::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdListBox)
OdPdfPublish::SMARTPTR
SMARTPTR(OdFile)
OdPdfPublish::OdListBox::getFont
void getFont(Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::FontStyle &fontStyle) const
PDFPUBLISH_TOOLKIT
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
OdPdfPublish::Border::Style
Style
Definition: PdfPublishCommon.h:266
OdPdfPublish::OdListBox::setBorder
void setBorder(bool state)
OdPdfPublish::OdListBox::setPrintability
void setPrintability(bool state)
OdPdfPublish::OdListBox::getBorderColor
void getBorderColor(ODCOLORREF &color) const
OdPdfPublish::OdListBox::setContents
void setContents(const OdStringArray &displayed_values, const OdStringArray &export_values)
OdPdfPublish
Definition: PdfPublish.h:42
OdPdfPublish::Text::StandardFontsType
StandardFontsType
Definition: PdfPublishCommon.h:313
OdPdfPublish::OdListBox::setFontSize
void setFontSize(OdUInt16 size)
OdPdfPublish::OdListBox::setBorderStyle
void setBorderStyle(Border::Style style)
OdPdfPublish::OdListBox::setFont
void setFont(const Text::StandardFontsType fontType)
OdPdfPublish::OdListBox::getContents
void getContents(OdStringArray &displayed_values, OdStringArray &export_values) const
OdPdfPublish::OdListBox::getBorder
void getBorder(bool &state) const
PdfPublishBaseObject.h
OdPdfPublish::OdListBox::setTextRotation
void setTextRotation(Text::Rotation rotation)
OdPdfPublish::OdListBox::~OdListBox
virtual ~OdListBox()
OdPdfPublish::OdListBox::getName
void getName(OdString &name) const
OdPdfPublish::OdListBox::setMultipleSelection
void setMultipleSelection(bool state)
OdPdfPublish::OdListBox
Definition: PdfPublishListBox.h:47
OdPdfPublish::OdListBox::getTooltip
void getTooltip(OdString &tooltip) const
OdPdfPublish::OdListBox::getPrintability
void getPrintability(bool &state) const
OdPdfPublish::Text::FontStyle
FontStyle
Definition: PdfPublishCommon.h:283
OdPdfPublish::OdListBox::getBorderThickness
void getBorderThickness(Border::Thickness &thickness) const
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdPdfPublish::OdListBox::setVisibility
void setVisibility(bool state)
OdPdfPublish::OdListBox::setFont
void setFont(const OdString &fontName, Text::FontStyle fontStyle=Text::kRegular)
OdPdfPublish::OdListBox::ODRX_HEAP_OPERATORS
ODRX_HEAP_OPERATORS()
OdPdfPublish::OdListBox::getBorderStyle
void getBorderStyle(Border::Style &style) const
OdPdfPublish::OdListBox::getMultipleSelection
void getMultipleSelection(bool &state) const
OdPdfPublish::OdListBox::setFillColor
void setFillColor(ODCOLORREF color)
OdPdfPublish::OdListBox::getFontSize
void getFontSize(OdUInt16 &size) const
OdPdfPublish::Text::Rotation
Rotation
Definition: PdfPublishCommon.h:302
OdPdfPublish::OdObject
Definition: PdfPublishBaseObject.h:71