diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-20 11:01:37 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-20 19:44:24 +0900 |
commit | 5f8b294bcc2ed1c518d8a07f257ee772cde37363 (patch) | |
tree | 35e0044f389500b7b8237c55eecf5f4df871adbd /sfx2/source/sidebar/Panel.hxx | |
parent | cc5f9db22ea7a127507584ab32cf1c2aa1a8979c (diff) |
boost::function to std, clenup
Change-Id: Iabd3c08b215780d65136877f8c9a2592ec6e2c63
Diffstat (limited to 'sfx2/source/sidebar/Panel.hxx')
-rw-r--r-- | sfx2/source/sidebar/Panel.hxx | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/sfx2/source/sidebar/Panel.hxx b/sfx2/source/sidebar/Panel.hxx index 86a7358c4518..2cfe520484cc 100644 --- a/sfx2/source/sidebar/Panel.hxx +++ b/sfx2/source/sidebar/Panel.hxx @@ -25,7 +25,6 @@ #include <com/sun/star/ui/XUIElement.hpp> #include <com/sun/star/ui/XSidebarPanel.hpp> -#include <boost/function.hpp> #include <boost/scoped_ptr.hpp> #include <boost/shared_ptr.hpp> #include <vector> @@ -36,16 +35,12 @@ class PanelDescriptor; class TitleBar; class PanelTitleBar; -class Panel - : public vcl::Window +class Panel : public vcl::Window { public: - Panel ( - const PanelDescriptor& rPanelDescriptor, - vcl::Window* pParentWindow, - const bool bIsInitiallyExpanded, - const ::boost::function<void()>& rDeckLayoutTrigger, - const ::boost::function<Context()>& rContextAccess); + Panel(const PanelDescriptor& rPanelDescriptor, vcl::Window* pParentWindow, + const bool bIsInitiallyExpanded, const std::function<void()>& rDeckLayoutTrigger, + const std::function<Context()>& rContextAccess); virtual ~Panel(); virtual void dispose() SAL_OVERRIDE; @@ -56,8 +51,8 @@ public: css::uno::Reference<css::awt::XWindow> GetElementWindow(); void SetExpanded (const bool bIsExpanded); bool IsExpanded() const { return mbIsExpanded;} - bool HasIdPredicate (const ::rtl::OUString& rsId) const; - const ::rtl::OUString& GetId() const { return msPanelId;} + bool HasIdPredicate (const OUString& rsId) const; + const OUString& GetId() const { return msPanelId;} virtual void Paint (vcl::RenderContext& rRenderContext, const Rectangle& rUpdateArea) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; @@ -65,16 +60,16 @@ public: virtual void Activate() SAL_OVERRIDE; private: - const ::rtl::OUString msPanelId; + const OUString msPanelId; VclPtr<PanelTitleBar> mpTitleBar; const bool mbIsTitleBarOptional; css::uno::Reference<css::ui::XUIElement> mxElement; css::uno::Reference<css::ui::XSidebarPanel> mxPanelComponent; bool mbIsExpanded; - const ::boost::function<void()> maDeckLayoutTrigger; - const ::boost::function<Context()> maContextAccess; + const std::function<void()> maDeckLayoutTrigger; + const std::function<Context()> maContextAccess; }; -typedef ::std::vector< VclPtr< Panel > > SharedPanelContainer; +typedef std::vector<VclPtr<Panel> > SharedPanelContainer; } } // end of namespace sfx2::sidebar |