FLImaging 7.10.21.1
GUIPropertyItemMultiLineText.h
1
7#pragma once
8#include "GUIPropertyItemBase.h"
9
11namespace FLImaging
12{
14 namespace GUI
15 {
32 {
33 public:
42
51
61 virtual Base::CFLString<wchar_t> GetValue() const override;
62
78 virtual void SetHeight(int32_t i32Height = 100);
79
91 virtual int32_t GetHeight() const;
92
93 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
94
109
121 static Base::CFLString<wchar_t> ConvertSingleToMultiLine(const wchar_t* strSingleLine);
122
134 virtual bool Load(const Base::CFLString<wchar_t>& strFilePath) override;
135
147 virtual bool Load(const Base::CFLArray<Base::CFLString<wchar_t>>& flaData) override;
148
160 virtual bool Save(const Base::CFLString<wchar_t>& strFilePath) const override;
161
173 virtual bool Save(Base::CFLArray<Base::CFLString<wchar_t>>& flaData) const override;
174
186 virtual bool SetHScroll(bool bHorzScroll);
187
197 virtual bool IsHScroll() const;
198
199 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
200 virtual bool SetBufferValue(Base::CFLString<wchar_t> strValue) override;
201 virtual bool SetOrigValue(const Base::CFLString<wchar_t>& strValue) override;
202 virtual void SetDefaultValue(const Base::CFLString<wchar_t>& strDefaultValue) override;
203
204 protected:
205 int32_t m_i32Height; // \~English Editor height (px). \~Korean 편집 높이(픽셀).
206 bool m_bHScroll; // \~English Horizontal scroll flag. \~Korean 가로 스크롤 사용 여부.
207 };
208 }
209}
Template type array class.
Definition FLArray.h:71
Template type string class.
Definition FLString.h:34
CGUIPropertyItemBase()
Default constructor.
virtual Base::CFLString< wchar_t > GetValue() const override
Get the current text value (multi-line).
virtual bool Load(const Base::CFLString< wchar_t > &strFilePath) override
Load the text from a file.
virtual bool SetBufferValue(Base::CFLString< wchar_t > strValue) override
Sets the buffer value of this.
static Base::CFLString< wchar_t > ConvertSingleToMultiLine(const wchar_t *strSingleLine)
Convert a single-line, loadable/savable representation back to a normal multi-line string.
virtual void SetHeight(int32_t i32Height=100)
Sets the height of the editor, in pixels.
virtual bool Load(const Base::CFLArray< Base::CFLString< wchar_t > > &flaData) override
Load the text from an array buffer (e.g., serialized lines).
virtual void SetDefaultValue(const Base::CFLString< wchar_t > &strDefaultValue) override
Sets the default value of this.
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
Sets the value for this.
virtual bool IsHScroll() const
Query whether horizontal scroll is enabled.
virtual bool Save(Base::CFLArray< Base::CFLString< wchar_t > > &flaData) const override
Save the text into an array buffer (e.g., serialized lines).
virtual bool SetOrigValue(const Base::CFLString< wchar_t > &strValue) override
Sets the original value of this.
virtual CMFCPropertyGridProperty * CreateGridProperty() override
It creates and returns the MFC grid property for this item. If an instance has already been created,...
static Base::CFLString< wchar_t > ConvertMultiToSingleLine(const Base::CFLString< wchar_t > &strMultiLine)
Convert a normal multi-line string to a single-line, loadable/savable representation....
virtual bool SetHScroll(bool bHorzScroll)
Enable or disable horizontal scroll in the editor.
virtual bool Save(const Base::CFLString< wchar_t > &strFilePath) const override
Save the text to a file.
virtual int32_t GetHeight() const
Gets the current height of the editor, in pixels.
CGUIPropertyItemMultiLineText()
Default constructor.
Definition D2DObject.h:12