summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/Panel.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-20 11:01:37 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-20 19:44:24 +0900
commit5f8b294bcc2ed1c518d8a07f257ee772cde37363 (patch)
tree35e0044f389500b7b8237c55eecf5f4df871adbd /sfx2/source/sidebar/Panel.cxx
parentcc5f9db22ea7a127507584ab32cf1c2aa1a8979c (diff)
boost::function to std, clenup
Change-Id: Iabd3c08b215780d65136877f8c9a2592ec6e2c63
Diffstat (limited to 'sfx2/source/sidebar/Panel.cxx')
-rw-r--r--sfx2/source/sidebar/Panel.cxx30
1 files changed, 16 insertions, 14 deletions
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 1ce86ff6aa44..07b1790b7eaf 100644
--- a/sfx2/source/sidebar/Panel.cxx
+++ b/sfx2/source/sidebar/Panel.cxx
@@ -46,17 +46,17 @@ namespace sfx2 { namespace sidebar {
Panel::Panel(const PanelDescriptor& rPanelDescriptor,
vcl::Window* pParentWindow,
const bool bIsInitiallyExpanded,
- const boost::function<void()>& rDeckLayoutTrigger,
- const boost::function<Context()>& rContextAccess)
- : Window(pParentWindow),
- msPanelId(rPanelDescriptor.msId),
- mpTitleBar(VclPtr<PanelTitleBar>::Create(rPanelDescriptor.msTitle, pParentWindow, this)),
- mbIsTitleBarOptional(rPanelDescriptor.mbIsTitleBarOptional),
- mxElement(),
- mxPanelComponent(),
- mbIsExpanded(bIsInitiallyExpanded),
- maDeckLayoutTrigger(rDeckLayoutTrigger),
- maContextAccess(rContextAccess)
+ const std::function<void()>& rDeckLayoutTrigger,
+ const std::function<Context()>& rContextAccess)
+ : Window(pParentWindow)
+ , msPanelId(rPanelDescriptor.msId)
+ , mpTitleBar(VclPtr<PanelTitleBar>::Create(rPanelDescriptor.msTitle, pParentWindow, this))
+ , mbIsTitleBarOptional(rPanelDescriptor.mbIsTitleBarOptional)
+ , mxElement()
+ , mxPanelComponent()
+ , mbIsExpanded(bIsInitiallyExpanded)
+ , maDeckLayoutTrigger(rDeckLayoutTrigger)
+ , maContextAccess(rContextAccess)
{
SetBackground(Theme::GetPaint(Theme::Paint_PanelBackground).GetWallpaper());
@@ -114,14 +114,16 @@ void Panel::SetExpanded (const bool bIsExpanded)
maDeckLayoutTrigger();
if (maContextAccess)
+ {
ResourceManager::Instance().StorePanelExpansionState(
msPanelId,
bIsExpanded,
maContextAccess());
+ }
}
}
-bool Panel::HasIdPredicate (const ::rtl::OUString& rsId) const
+bool Panel::HasIdPredicate (const OUString& rsId) const
{
return msPanelId.equals(rsId);
}
@@ -140,8 +142,8 @@ void Panel::Resize()
if(xElementWindow.is())
{
const Size aSize(GetSizePixel());
- xElementWindow->setPosSize(
- 0, 0, aSize.Width(), aSize.Height(), awt::PosSize::POSSIZE);
+ xElementWindow->setPosSize(0, 0, aSize.Width(), aSize.Height(),
+ awt::PosSize::POSSIZE);
}
}