CFx SDK Documentation
2026 SP0
Loading...
Searching...
No Matches
SDK
CFx
dd_inc
PdfPublish
PdfPublishButton.h
Go to the documentation of this file.
1
2
// Copyright (C) 2002-2024, 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 Open Design Alliance software pursuant to a license
16
// agreement with Open Design Alliance.
17
// Open Design Alliance Copyright (C) 2002-2024 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
// PdfPublishButton.h
28
//
30
31
#ifndef _PDF_PUBLISH_BUTTON_INCLUDED_
32
#define _PDF_PUBLISH_BUTTON_INCLUDED_
33
34
#include "
PdfPublishBaseObject.h
"
35
#include "
PdfPublishImage.h
"
36
41
namespace
OdPdfPublish
{
42
48
class
PDFPUBLISH_TOOLKIT
OdButton
:
public
OdObject
49
{
50
//DOM-IGNORE-BEGIN
51
protected
:
52
OdButton
();
53
//DOM-IGNORE-END
54
public
:
55
//DOM-IGNORE-BEGIN
56
ODRX_DECLARE_MEMBERS
(
OdButton
);
57
ODRX_HEAP_OPERATORS
();
58
//DOM-IGNORE-END
59
63
virtual
~OdButton
();
64
73
void
setName
(
const
OdString
&
name
);
74
80
void
setLabel
(
const
OdString
& label);
81
100
void
setFont
(
const
OdString
& fontName,
Text::FontStyle
fontStyle =
Text::kRegular
,
Text::Language
language =
Text::kDefault
,
bool
embed =
false
);
101
110
void
setFont
(
const
Text::StandardFontsType
fontType);
111
117
void
setFontSize
(
OdUInt16
size
);
118
124
void
setTextColor
(
ODCOLORREF
color);
125
131
void
setTooltip
(
const
OdString
& tooltip);
132
138
void
setVisibility
(
bool
state);
139
145
void
setPrintability
(
bool
state);
146
155
void
setTextRotation
(
Text::Rotation
rotation);
156
162
void
setLock
(
bool
state);
163
169
void
setBorder
(
bool
state);
170
176
void
setBorderColor
(
ODCOLORREF
color);
177
186
void
setBorderThickness
(
Border::Thickness
thickness);
187
195
void
setBorderStyle
(
Border::Style
style);
196
202
void
setFillColor
(
ODCOLORREF
color);
203
212
void
setLabelPosition
(
Label::Position
position);
213
222
void
setHighlighting
(
Highlighting::Mode
mode);
223
232
void
setIconImage
(
const
OdImagePtr& image);
233
240
void
getName
(
OdString
&
name
)
const
;
241
248
void
getLabel
(
OdString
& label)
const
;
249
267
void
getFont
(
Text::StorageType
& storageType,
Text::StandardFontsType
& fontType,
OdString
& fontName,
Text::FontStyle
& fontStyle,
Text::Language
& language,
bool
& embed)
const
;
268
275
void
getFontSize
(
OdUInt16
&
size
)
const
;
276
283
void
getTextColor
(
ODCOLORREF
& color)
const
;
284
291
void
getTooltip
(
OdString
& tooltip)
const
;
292
300
void
getVisibility
(
bool
& state)
const
;
301
309
void
getPrintability
(
bool
& state)
const
;
310
320
void
getTextRotation
(
Text::Rotation
& rotation)
const
;
321
329
void
getLock
(
bool
& state)
const
;
330
338
void
getBorder
(
bool
& state)
const
;
339
346
void
getBorderColor
(
ODCOLORREF
& color)
const
;
347
357
void
getBorderThickness
(
Border::Thickness
& thickness)
const
;
358
368
void
getBorderStyle
(
Border::Style
& style)
const
;
369
376
void
getFillColor
(
ODCOLORREF
& color)
const
;
377
387
void
getLabelPosition
(
Label::Position
& position)
const
;
388
398
void
getHighlighting
(
Highlighting::Mode
& mode)
const
;
399
409
void
getIconImage
(OdImagePtr& image)
const
;
410
411
};
412
416
SMARTPTR
(
OdButton
);
417
418
}
419
#endif
// _PDF_PUBLISH_BUTTON_INCLUDED_
420
SMARTPTR
#define SMARTPTR(classname)
Definition
IfcCommon.h:33
ODCOLORREF
#define ODCOLORREF
OdUInt16
unsigned short OdUInt16
Definition
OdPlatformSettings.h:745
PdfPublishBaseObject.h
PDFPUBLISH_TOOLKIT
#define PDFPUBLISH_TOOLKIT
Definition
PdfPublishDef.h:40
PdfPublishImage.h
OdPdfPublish::OdButton
Definition
PdfPublishButton.h:49
OdPdfPublish::OdButton::getBorder
void getBorder(bool &state) const
OdPdfPublish::OdButton::getName
void getName(OdString &name) const
OdPdfPublish::OdButton::getTextRotation
void getTextRotation(Text::Rotation &rotation) const
OdPdfPublish::OdButton::getVisibility
void getVisibility(bool &state) const
OdPdfPublish::OdButton::setLock
void setLock(bool state)
OdPdfPublish::OdButton::getTooltip
void getTooltip(OdString &tooltip) const
OdPdfPublish::OdButton::getIconImage
void getIconImage(OdImagePtr &image) const
OdPdfPublish::OdButton::getFillColor
void getFillColor(ODCOLORREF &color) const
OdPdfPublish::OdButton::setName
void setName(const OdString &name)
OdPdfPublish::OdButton::setLabel
void setLabel(const OdString &label)
OdPdfPublish::OdButton::setIconImage
void setIconImage(const OdImagePtr &image)
OdPdfPublish::OdButton::setBorderColor
void setBorderColor(ODCOLORREF color)
OdPdfPublish::OdButton::setBorderThickness
void setBorderThickness(Border::Thickness thickness)
OdPdfPublish::OdButton::getLock
void getLock(bool &state) const
OdPdfPublish::OdButton::setHighlighting
void setHighlighting(Highlighting::Mode mode)
OdPdfPublish::OdButton::~OdButton
virtual ~OdButton()
OdPdfPublish::OdButton::getTextColor
void getTextColor(ODCOLORREF &color) const
OdPdfPublish::OdButton::setFont
void setFont(const OdString &fontName, Text::FontStyle fontStyle=Text::kRegular, Text::Language language=Text::kDefault, bool embed=false)
OdPdfPublish::OdButton::OdButton
OdButton()
OdPdfPublish::OdButton::setPrintability
void setPrintability(bool state)
OdPdfPublish::OdButton::getPrintability
void getPrintability(bool &state) const
OdPdfPublish::OdButton::setTextRotation
void setTextRotation(Text::Rotation rotation)
OdPdfPublish::OdButton::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdButton)
OdPdfPublish::OdButton::getHighlighting
void getHighlighting(Highlighting::Mode &mode) const
OdPdfPublish::OdButton::setBorder
void setBorder(bool state)
OdPdfPublish::OdButton::setTextColor
void setTextColor(ODCOLORREF color)
OdPdfPublish::OdButton::setFontSize
void setFontSize(OdUInt16 size)
OdPdfPublish::OdButton::setBorderStyle
void setBorderStyle(Border::Style style)
OdPdfPublish::OdButton::getLabelPosition
void getLabelPosition(Label::Position &position) const
OdPdfPublish::OdButton::setVisibility
void setVisibility(bool state)
OdPdfPublish::OdButton::setTooltip
void setTooltip(const OdString &tooltip)
OdPdfPublish::OdButton::getBorderStyle
void getBorderStyle(Border::Style &style) const
OdPdfPublish::OdButton::setFillColor
void setFillColor(ODCOLORREF color)
OdPdfPublish::OdButton::getBorderThickness
void getBorderThickness(Border::Thickness &thickness) const
OdPdfPublish::OdButton::getBorderColor
void getBorderColor(ODCOLORREF &color) const
OdPdfPublish::OdButton::setLabelPosition
void setLabelPosition(Label::Position position)
OdPdfPublish::OdButton::setFont
void setFont(const Text::StandardFontsType fontType)
OdPdfPublish::OdButton::ODRX_HEAP_OPERATORS
ODRX_HEAP_OPERATORS()
OdPdfPublish::OdButton::getFont
void getFont(Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::FontStyle &fontStyle, Text::Language &language, bool &embed) const
OdPdfPublish::OdButton::getLabel
void getLabel(OdString &label) const
OdPdfPublish::OdButton::getFontSize
void getFontSize(OdUInt16 &size) const
OdString
Definition
OdString.h:97
size
GLsizeiptr size
Definition
gles2_ext.h:182
name
GLuint const GLchar * name
Definition
gles2_ext.h:265
OdPdfPublish::Border::Thickness
Thickness
Definition
PdfPublishCommon.h:248
OdPdfPublish::Border::Style
Style
Definition
PdfPublishCommon.h:257
OdPdfPublish::Highlighting::Mode
Mode
Definition
PdfPublishCommon.h:381
OdPdfPublish::Label::Position
Position
Definition
PdfPublishCommon.h:360
OdPdfPublish::Text::StorageType
StorageType
Definition
PdfPublishCommon.h:325
OdPdfPublish::Text::Language
Language
Definition
PdfPublishCommon.h:334
OdPdfPublish::Text::kDefault
@ kDefault
Definition
PdfPublishCommon.h:347
OdPdfPublish::Text::Rotation
Rotation
Definition
PdfPublishCommon.h:293
OdPdfPublish::Text::FontStyle
FontStyle
Definition
PdfPublishCommon.h:274
OdPdfPublish::Text::kRegular
@ kRegular
Definition
PdfPublishCommon.h:275
OdPdfPublish::Text::StandardFontsType
StandardFontsType
Definition
PdfPublishCommon.h:304
OdPdfPublish
Definition
PdfPublish.h:44
Generated on Tue Apr 15 2025 11:30:04