CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfPublishText.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// PdfPublishText.h
28//
30
31#ifndef _PDF_PUBLISH_TEXT_INCLUDED_
32#define _PDF_PUBLISH_TEXT_INCLUDED_
33
36
41namespace OdPdfPublish{
42
47class PDFPUBLISH_TOOLKIT OdText : public OdObject
48{
49 //DOM-IGNORE-BEGIN
50protected:
52 //DOM-IGNORE-END
53public:
54 //DOM-IGNORE-BEGIN
57 //DOM-IGNORE-END
58
62 virtual ~OdText();
63
69 void setText(const OdString& text);
70
80
98 void setFont(const OdString& fontName, Text::FontStyle fontStyle = Text::kRegular, Text::Language language = Text::kDefault, bool embed = false);
99
106
112 void setColor(ODCOLORREF color);
113
120 void getText(OdString& text) const;
121
139 void getFont(Text::StorageType& storageType, Text::StandardFontsType& fontType, OdString& fontName, Text::FontStyle& fontStyle, Text::Language& language, bool& embed) const;
140
147 void getSize(OdUInt16& size) const;
148
155 void getColor(ODCOLORREF& color) const;
156
163 void setLayer(const Od2dGeometryLayerPtr& layer);
164
172 void getLayer(Od2dGeometryLayerPtr& layer) const;
173
174};
175
180
181}
182#endif // _PDF_PUBLISH_TEXT_INCLUDED_
183
#define SMARTPTR(classname)
Definition IfcCommon.h:33
#define ODCOLORREF
unsigned short OdUInt16
#define PDFPUBLISH_TOOLKIT
void getSize(OdUInt16 &size) const
void setText(const OdString &text)
void getText(OdString &text) const
void setSize(OdUInt16 size)
void setFont(Text::StandardFontsType fontType)
void setLayer(const Od2dGeometryLayerPtr &layer)
void setColor(ODCOLORREF color)
ODRX_DECLARE_MEMBERS(OdText)
void getFont(Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::FontStyle &fontStyle, Text::Language &language, bool &embed) const
void getLayer(Od2dGeometryLayerPtr &layer) const
void setFont(const OdString &fontName, Text::FontStyle fontStyle=Text::kRegular, Text::Language language=Text::kDefault, bool embed=false)
void getColor(ODCOLORREF &color) const
GLsizeiptr size
Definition gles2_ext.h:182