FLImaging 6.11.25.2
GUIPropertyItemFont.h
1
8#pragma once
9
10#include "GUIPropertyItemBase.h"
11
13namespace FLImaging
14{
16 namespace GUI
17 {
28 {
29 public:
38
47
60
76 virtual const CResult SetFontName(const Base::CFLString<wchar_t>& flsFontName);
77
90
106 virtual const CResult SetDefaultFontName(const Base::CFLString<wchar_t>& flsFontName);
107
117 virtual float GetFontSize() const;
118
132 virtual const CResult SetFontSize(float f32FontSize);
133
143 virtual float GetDefaultFontSize() const;
144
158 virtual const CResult SetDefaultFontSize(float f32FontSize);
159
172
189
202
219
229 virtual bool IsItalicEnabled() const;
230
244 virtual const CResult EnableItalic(bool bItalic);
245
255 virtual bool IsDefaultItalicEnabled() const;
256
270 virtual const CResult EnableDefaultItalic(bool bItalic);
271
272 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
273 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
274 virtual bool Load(const Base::CFLString<wchar_t>& strFilePath = L"") override;
275 virtual bool Load(const Base::CFLArray<Base::CFLString<wchar_t>>& flaData) override;
276
277 protected:
278 static const CResult ParseFontProperty(const Base::CFLString<wchar_t>& str,
279 LOGFONT& lfOut,
281 CWnd* pReferenceWnd = nullptr);
282
283 protected:
285 Foundation::CFLFigureTextAttribute m_attrTextDefault;
286
287 friend class CGUIPropertyGridPropertyFont;
288 };
289
290 }
291}
292
Template type array class.
Definition FLArray.h:53
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1631
A class of FigureText attribute class.
Definition FLFigureTextAttribute.h:25
CGUIPropertyItemBase()
Default constructor.
virtual Base::CFLString< wchar_t > GetDefaultFontName() const
Returns the default font family name.
virtual bool Load(const Base::CFLArray< Base::CFLString< wchar_t > > &flaData) override
Loads the value of this from a string array.
virtual const CResult EnableDefaultItalic(bool bItalic)
Enables or disables default italic style.
virtual ~CGUIPropertyItemFont()
Destructor.
virtual bool IsDefaultItalicEnabled() const
Returns whether default italic style is enabled.
virtual const CResult SetFontSize(float f32FontSize)
Sets the font size (points).
virtual Foundation::EFigureTextFontWeight GetFontWeight() const
Returns the current font weight.
virtual CMFCPropertyGridProperty * CreateGridProperty() override
It creates and returns the MFC grid property for this item. If an instance has already been created,...
virtual const CResult SetDefaultFontSize(float f32FontSize)
Sets the default font size (points).
virtual bool Load(const Base::CFLString< wchar_t > &strFilePath=L"") override
Loads the value of this from an ini file.
virtual const CResult SetFontWeight(Foundation::EFigureTextFontWeight eFontWeight)
Sets the font weight.
virtual float GetFontSize() const
Returns the current font size (points).
virtual Base::CFLString< wchar_t > GetFontName() const
Returns the current font family name.
virtual float GetDefaultFontSize() const
Returns the default font size (points).
virtual const CResult SetDefaultFontName(const Base::CFLString< wchar_t > &flsFontName)
Sets the default font family name.
virtual const CResult SetDefaultFontWeight(Foundation::EFigureTextFontWeight eFontWeight)
Sets the default font weight.
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
Sets the value for this.
virtual bool IsItalicEnabled() const
Returns whether italic style is enabled.
CGUIPropertyItemFont()
Default constructor.
virtual Foundation::EFigureTextFontWeight GetDefaultFontWeight() const
Returns the default font weight.
virtual const CResult EnableItalic(bool bItalic)
Enables or disables italic style.
virtual const CResult SetFontName(const Base::CFLString< wchar_t > &flsFontName)
Sets the font family name.
EFigureTextFontWeight
Font weight of FigureText.
Definition DefinitionsFigureText.h:23
Definition D2DObject.h:12