summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar/SwPanelFactory.cxx
diff options
context:
space:
mode:
authorRishabh Kumar <kris.kr296@gmail.com>2015-08-21 18:24:28 +0530
committerKatarina Behrens <Katarina.Behrens@cib.de>2016-05-26 09:01:06 +0000
commit2060543586fa01d77ed17fd7904a903313b2251e (patch)
tree6a7772dac6fdb84166fb0a2fe3c57d6451b9c415 /sw/source/uibase/sidebar/SwPanelFactory.cxx
parent7d397201060ba71a188b5ef9853984a635e70531 (diff)
tdf#83830: Writer page sidebar deck
Change-Id: I6eb16a5a721fad28aa7822b0ca8d7c06a0c08541 Reviewed-on: https://gerrit.libreoffice.org/17904 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'sw/source/uibase/sidebar/SwPanelFactory.cxx')
-rw-r--r--sw/source/uibase/sidebar/SwPanelFactory.cxx50
1 files changed, 50 insertions, 0 deletions
diff --git a/sw/source/uibase/sidebar/SwPanelFactory.cxx b/sw/source/uibase/sidebar/SwPanelFactory.cxx
index ed9263baf5b9..e7f1151d269c 100644
--- a/sw/source/uibase/sidebar/SwPanelFactory.cxx
+++ b/sw/source/uibase/sidebar/SwPanelFactory.cxx
@@ -22,6 +22,11 @@
#include <ThemePanel.hxx>
#include <StylePresetsPanel.hxx>
#include <PagePropertyPanel.hxx>
+#include <PageMarginPanel.hxx>
+#include <PageStylesPanel.hxx>
+#include <PageFormatPanel.hxx>
+#include <PageHeaderPanel.hxx>
+#include <PageFooterPanel.hxx>
#include <WrapPropertyPanel.hxx>
#include <navipi.hxx>
#include <redlndlg.hxx>
@@ -129,6 +134,51 @@ Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
pPanel,
ui::LayoutSize(-1,-1,-1));
}
+ else if(rsResourceURL.endsWith("/PageMarginPanel"))
+ {
+ VclPtr<vcl::Window> pPanel = sw::sidebar::PageMarginPanel::Create( pParentWindow, xFrame, pBindings );
+ xElement = sfx2::sidebar::SidebarPanelBase::Create(
+ rsResourceURL,
+ xFrame,
+ pPanel,
+ ui::LayoutSize(-1,-1,-1));
+ }
+ else if(rsResourceURL.endsWith("/PageStylesPanel"))
+ {
+ VclPtr<vcl::Window> pPanel = sw::sidebar::PageStylesPanel::Create( pParentWindow, xFrame, pBindings );
+ xElement = sfx2::sidebar::SidebarPanelBase::Create(
+ rsResourceURL,
+ xFrame,
+ pPanel,
+ ui::LayoutSize(-1,-1,-1));
+ }
+ else if(rsResourceURL.endsWith("/PageFormatPanel"))
+ {
+ VclPtr<vcl::Window> pPanel = sw::sidebar::PageFormatPanel::Create( pParentWindow, xFrame, pBindings );
+ xElement = sfx2::sidebar::SidebarPanelBase::Create(
+ rsResourceURL,
+ xFrame,
+ pPanel,
+ ui::LayoutSize(-1,-1,-1));
+ }
+ else if(rsResourceURL.endsWith("/PageHeaderPanel"))
+ {
+ VclPtr<vcl::Window> pPanel = sw::sidebar::PageHeaderPanel::Create( pParentWindow, xFrame, pBindings );
+ xElement = sfx2::sidebar::SidebarPanelBase::Create(
+ rsResourceURL,
+ xFrame,
+ pPanel,
+ ui::LayoutSize(-1,-1,-1));
+ }
+ else if(rsResourceURL.endsWith("/PageFooterPanel"))
+ {
+ VclPtr<vcl::Window> pPanel = sw::sidebar::PageFooterPanel::Create( pParentWindow, xFrame, pBindings );
+ xElement = sfx2::sidebar::SidebarPanelBase::Create(
+ rsResourceURL,
+ xFrame,
+ pPanel,
+ ui::LayoutSize(-1,-1,-1));
+ }
else if (rsResourceURL.endsWith("/WrapPropertyPanel"))
{
VclPtr<vcl::Window> pPanel = sw::sidebar::WrapPropertyPanel::Create( pParentWindow, xFrame, pBindings );