diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-11 19:04:58 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-11 19:05:45 +0900 |
commit | 34f19860fcb7320b4c675df2febb043c33602d8c (patch) | |
tree | eb106b57e764ef53952cb3415a871a267bc108bc /svtools/source/toolpanel/toolpaneldrawer.hxx | |
parent | 373edbd7a3eb5eed089c1addbf5e19947bed24c9 (diff) |
refactor ToolPanelDrawer to use RenderContext
Change-Id: Iee3d2801a257f26673cae5abf5614ed4382b5e6b
Diffstat (limited to 'svtools/source/toolpanel/toolpaneldrawer.hxx')
-rw-r--r-- | svtools/source/toolpanel/toolpaneldrawer.hxx | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/svtools/source/toolpanel/toolpaneldrawer.hxx b/svtools/source/toolpanel/toolpaneldrawer.hxx index 55faf3ec80a5..6fd17cf2a448 100644 --- a/svtools/source/toolpanel/toolpaneldrawer.hxx +++ b/svtools/source/toolpanel/toolpaneldrawer.hxx @@ -24,15 +24,10 @@ #include <vcl/virdev.hxx> #include <vcl/vclptr.hxx> - namespace svt { - - class ToolPanelDrawer; - //= DrawerVisualization - /** serves a single purpose - let ZoomText read the drawers ... Strange enough, ZoomText does not read the drawers when they get the focus (in none of the combinations @@ -45,32 +40,31 @@ namespace svt class DrawerVisualization : public vcl::Window { public: - DrawerVisualization( ToolPanelDrawer& i_rParent ); + DrawerVisualization(ToolPanelDrawer& i_rParent); protected: // Window overridables - virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& i_rBoundingBox ) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& i_rBoundingBox) SAL_OVERRIDE; private: - ToolPanelDrawer& m_rDrawer; + ToolPanelDrawer& m_rDrawer; }; - - //= ToolPanelDrawer - - class ToolPanelDrawer : public vcl::Window { public: - ToolPanelDrawer( vcl::Window& i_rParent, const OUString& i_rTitle ); + ToolPanelDrawer(vcl::Window& i_rParent, const OUString& i_rTitle); virtual ~ToolPanelDrawer(); virtual void dispose() SAL_OVERRIDE; - long GetPreferredHeightPixel() const; - void SetExpanded( const bool i_bExpanded ); - bool IsExpanded() const { return m_bExpanded; } + long GetPreferredHeightPixel() const; + void SetExpanded(const bool i_bExpanded); + bool IsExpanded() const + { + return m_bExpanded; + } - void Paint(); + void Paint(vcl::RenderContext& rRenderContext); protected: // Window overridables @@ -97,16 +91,13 @@ namespace svt using Window::Paint; private: - ScopedVclPtr< VirtualDevice > m_pPaintDevice; - VclPtr<DrawerVisualization> m_aVisualization; - bool m_bFocused; - bool m_bExpanded; + ScopedVclPtr<VirtualDevice> m_pPaintDevice; + VclPtr<DrawerVisualization> m_aVisualization; + bool m_bFocused : 1; + bool m_bExpanded : 1; }; - - } // namespace svt - #endif // INCLUDED_SVTOOLS_SOURCE_TOOLPANEL_TOOLPANELDRAWER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |