diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-17 17:35:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-19 20:41:48 +0100 |
commit | d54d66e25ec0206f43ead5fe72428ebefd0b857c (patch) | |
tree | 2c6e5dc1a74a1b36198bf3c1e3c80393c39660a1 /include/vcl/fixed.hxx | |
parent | 5e7e6c0b64dcd698636b9b5655b371bdd9cc5289 (diff) |
move FixedText into toolkit-only headers
Change-Id: I398e0eadedb58e43d670ddd947167a0a75759c2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111089
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/fixed.hxx')
-rw-r--r-- | include/vcl/fixed.hxx | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/include/vcl/fixed.hxx b/include/vcl/fixed.hxx index a28f46a5e5d6..7ba9e36b9f7b 100644 --- a/include/vcl/fixed.hxx +++ b/include/vcl/fixed.hxx @@ -20,58 +20,6 @@ #ifndef INCLUDED_VCL_FIXED_HXX #define INCLUDED_VCL_FIXED_HXX -#include <vcl/dllapi.h> -#include <vcl/ctrl.hxx> -#include <vcl/image.hxx> - -class VCL_DLLPUBLIC FixedText : public Control -{ -private: - sal_Int32 m_nMaxWidthChars; - sal_Int32 m_nMinWidthChars; - VclPtr<vcl::Window> m_pMnemonicWindow; - - using Control::ImplInitSettings; - using Window::ImplInit; - SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle ); - SAL_DLLPRIVATE static WinBits ImplInitStyle( WinBits nStyle ); - SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags, - const Point& rPos, const Size& rSize, bool bFillLayout = false ) const; -public: - SAL_DLLPRIVATE static DrawTextFlags ImplGetTextStyle( WinBits nWinBits ); -protected: - virtual void FillLayoutData() const override; - virtual const vcl::Font& - GetCanonicalFont( const StyleSettings& _rStyle ) const override; - virtual const Color& - GetCanonicalTextColor( const StyleSettings& _rStyle ) const override; - - virtual vcl::Window* getAccessibleRelationLabelFor() const override; - -public: - explicit FixedText( vcl::Window* pParent, WinBits nStyle = 0 ); - virtual ~FixedText() override; - virtual void dispose() override; - - virtual void ApplySettings(vcl::RenderContext& rRenderContext) override; - - virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override; - virtual void Draw( OutputDevice* pDev, const Point& rPos, DrawFlags nFlags ) override; - virtual void Resize() override; - virtual void StateChanged( StateChangedType nType ) override; - virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; - - void setMaxWidthChars(sal_Int32 nWidth); - void setMinWidthChars(sal_Int32 nWidth); - static Size CalcMinimumTextSize(Control const* pControl, tools::Long nMaxWidth = 0x7fffffff); - static Size getTextDimensions(Control const *pControl, const OUString &rTxt, tools::Long nMaxWidth); - Size CalcMinimumSize(tools::Long nMaxWidth = 0x7fffffff) const; - virtual Size GetOptimalSize() const override; - virtual bool set_property(const OString &rKey, const OUString &rValue) override; - void set_mnemonic_widget(vcl::Window *pWindow); - vcl::Window* get_mnemonic_widget() const { return m_pMnemonicWindow; } -}; - #endif // INCLUDED_VCL_FIXED_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |