[Libreoffice-commits] core.git: include/vcl

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Feb 16 20:16:32 UTC 2021


 include/vcl/fixed.hxx           |   36 ------------------------------------
 include/vcl/toolkit/fixed.hxx   |   36 ++++++++++++++++++++++++++++++++++++
 include/vcl/toolkit/imgctrl.hxx |    2 +-
 3 files changed, 37 insertions(+), 37 deletions(-)

New commits:
commit 6bc3b6cfc72d157fb43c88e754f6ed4f53aac16e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Feb 16 16:14:37 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Feb 16 21:15:09 2021 +0100

    move FixedImage to toolkit-only headers
    
    Change-Id: I7ae18ef3225b4ca1448a2a3b0fccfc2206f7a5ba
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110995
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/vcl/fixed.hxx b/include/vcl/fixed.hxx
index ee52c7c400d9..a28f46a5e5d6 100644
--- a/include/vcl/fixed.hxx
+++ b/include/vcl/fixed.hxx
@@ -72,42 +72,6 @@ public:
     vcl::Window*    get_mnemonic_widget() const { return m_pMnemonicWindow; }
 };
 
-class VCL_DLLPUBLIC FixedImage : public Control
-{
-private:
-    Image           maImage;
-
-private:
-    using Control::ImplInitSettings;
-    using Window::ImplInit;
-    SAL_DLLPRIVATE void    ImplInit( vcl::Window* pParent, WinBits nStyle );
-    SAL_DLLPRIVATE static WinBits ImplInitStyle( WinBits nStyle );
-
-protected:
-    SAL_DLLPRIVATE void    ImplDraw( OutputDevice* pDev,
-                              const Point& rPos, const Size& rSize );
-public:
-    explicit        FixedImage( vcl::Window* pParent, WinBits nStyle = 0 );
-
-    virtual void    ApplySettings(vcl::RenderContext&) 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;
-    virtual Size    GetOptimalSize() const override;
-
-    void            SetImage( const Image& rImage );
-    const Image&    GetImage() const { return maImage; }
-
-    void            SetModeImage( const Image& rImage );
-    const Image&    GetModeImage( ) const { return maImage;}
-    virtual bool    set_property(const OString &rKey, const OUString &rValue) override;
-
-    static Image loadThemeImage(const OUString &rFileName);
-};
-
 #endif // INCLUDED_VCL_FIXED_HXX
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/toolkit/fixed.hxx b/include/vcl/toolkit/fixed.hxx
index 90d19afe43bc..2598b2497d02 100644
--- a/include/vcl/toolkit/fixed.hxx
+++ b/include/vcl/toolkit/fixed.hxx
@@ -90,4 +90,40 @@ public:
     void            SetBitmap( const BitmapEx& rBitmap );
 };
 
+class VCL_DLLPUBLIC FixedImage : public Control
+{
+private:
+    Image           maImage;
+
+private:
+    using Control::ImplInitSettings;
+    using Window::ImplInit;
+    SAL_DLLPRIVATE void    ImplInit( vcl::Window* pParent, WinBits nStyle );
+    SAL_DLLPRIVATE static WinBits ImplInitStyle( WinBits nStyle );
+
+protected:
+    SAL_DLLPRIVATE void    ImplDraw( OutputDevice* pDev,
+                              const Point& rPos, const Size& rSize );
+public:
+    explicit        FixedImage( vcl::Window* pParent, WinBits nStyle = 0 );
+
+    virtual void    ApplySettings(vcl::RenderContext&) 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;
+    virtual Size    GetOptimalSize() const override;
+
+    void            SetImage( const Image& rImage );
+    const Image&    GetImage() const { return maImage; }
+
+    void            SetModeImage( const Image& rImage );
+    const Image&    GetModeImage( ) const { return maImage;}
+    virtual bool    set_property(const OString &rKey, const OUString &rValue) override;
+
+    static Image loadThemeImage(const OUString &rFileName);
+};
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/toolkit/imgctrl.hxx b/include/vcl/toolkit/imgctrl.hxx
index 00ac76faeeb2..3e2b9c5bbd89 100644
--- a/include/vcl/toolkit/imgctrl.hxx
+++ b/include/vcl/toolkit/imgctrl.hxx
@@ -26,7 +26,7 @@
 
 #include <config_options.h>
 #include <vcl/dllapi.h>
-#include <vcl/fixed.hxx>
+#include <vcl/toolkit/fixed.hxx>
 
 class UNLESS_MERGELIBS(VCL_DLLPUBLIC) ImageControl : public FixedImage
 {


More information about the Libreoffice-commits mailing list