diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-21 20:22:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-22 12:24:46 +0200 |
commit | c213e05d04f100199052ba7c781823101e3f8aa6 (patch) | |
tree | fb823c71f227b23d37fb9223f7b753f9486865c7 /include/vcl/field.hxx | |
parent | 9ebe58f0437bbb5714e629bd22e004ac895086d6 (diff) |
move PatternField to toolkit headers
Change-Id: Ib75cefc6ca6a289113bac2903eb807f5d43ff3df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99175
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/field.hxx')
-rw-r--r-- | include/vcl/field.hxx | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx index ac72ac78b3c4..7ff847f15e0a 100644 --- a/include/vcl/field.hxx +++ b/include/vcl/field.hxx @@ -83,36 +83,6 @@ public: bool IsEmptyFieldValueEnabled() const { return mbEmptyFieldValueEnabled; } }; -#define PATTERN_FORMAT_EMPTYLITERALS (sal_uInt16(0x0001)) - -class UNLESS_MERGELIBS(VCL_DLLPUBLIC) PatternFormatter : public FormatterBase -{ -private: - OString m_aEditMask; - OUString maLiteralMask; - bool mbSameMask; - bool mbInPattKeyInput; - -protected: - PatternFormatter(Edit* pEdit); - - SAL_DLLPRIVATE bool ImplIsSameMask() const { return mbSameMask; } - SAL_DLLPRIVATE bool& ImplGetInPattKeyInput() { return mbInPattKeyInput; } - -public: - virtual ~PatternFormatter() override; - - virtual void Reformat() override; - - void SetMask(const OString& rEditMask, const OUString& rLiteralMask ); - const OString& GetEditMask() const { return m_aEditMask; } - const OUString& GetLiteralMask() const { return maLiteralMask; } - - void SetString( const OUString& rStr ); - OUString GetString() const; -}; - - class VCL_DLLPUBLIC NumericFormatter : public FormatterBase { public: @@ -184,18 +154,6 @@ private: }; -class UNLESS_MERGELIBS(VCL_DLLPUBLIC) PatternField final : public SpinField, public PatternFormatter -{ -public: - explicit PatternField( vcl::Window* pParent, WinBits nWinStyle ); - - virtual bool PreNotify( NotifyEvent& rNEvt ) override; - virtual bool EventNotify( NotifyEvent& rNEvt ) override; - virtual void Modify() override; - virtual void dispose() override; -}; - - class UNLESS_MERGELIBS(VCL_DLLPUBLIC) NumericField : public SpinField, public NumericFormatter { public: |