diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-17 22:56:46 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-18 11:22:49 +0900 |
commit | b4bbb5e5d7b31caad2fbcc00382ad27df3c81001 (patch) | |
tree | 8ac345712ff92a9b33a7d54651ed27ad88f1ec67 /include/sfx2/titledockwin.hxx | |
parent | 2ca7795a6a723c701f295323fcc3f6c52ad37976 (diff) |
refactor how font, fg. and bg. are applied in widgets/controls
- Move vcl::RenderContext to outdev.
- Change some methods on vcl::Window to accept RenderContext
as parameter.
- Add ApplySettings to vcl::Window - This method is called before
painting. Refactor existing classes that use InitSettings to
have ApplySettings or mark the classes to be refactored later.
- Add RenderSettings for adding defered settings to rendering.
This is similar to ApplySettings but for more ad-hoc calls.
Change-Id: I4ea58461f3b6b08ccfa3e0ddd1a4a3e04f8c4f45
Diffstat (limited to 'include/sfx2/titledockwin.hxx')
-rw-r--r-- | include/sfx2/titledockwin.hxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/sfx2/titledockwin.hxx b/include/sfx2/titledockwin.hxx index 8293eb00aa98..af4859f2da50 100644 --- a/include/sfx2/titledockwin.hxx +++ b/include/sfx2/titledockwin.hxx @@ -27,14 +27,8 @@ #include <vcl/vclptr.hxx> #include <tools/svborder.hxx> - namespace sfx2 { - - - - //= TitledDockingWindow - class SFX2_DLLPUBLIC TitledDockingWindow : public SfxDockingWindow { public: @@ -92,18 +86,19 @@ namespace sfx2 protected: // Window overridables - virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& i_rArea ) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& i_rArea) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; virtual void StateChanged( StateChangedType i_nType ) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& i_rDataChangedEvent ) SAL_OVERRIDE; virtual void SetText( const OUString& i_rText ) SAL_OVERRIDE; // DockingWindow overridables - void EndDocking( const Rectangle& rRect, bool bFloatMode ) SAL_OVERRIDE; + void EndDocking(const Rectangle& rRect, bool bFloatMode) SAL_OVERRIDE; // own overridables virtual void onLayoutDone(); + virtual void ApplySettings(vcl::RenderContext& rRenderContext) SAL_OVERRIDE; protected: /** internal version of ResetToolBox */ |