summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework/factories
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/framework/factories')
-rwxr-xr-xsd/source/ui/framework/factories/BasicViewFactory.cxx16
-rwxr-xr-xsd/source/ui/framework/factories/BasicViewFactory.hxx6
2 files changed, 13 insertions, 9 deletions
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx
index 1320df5c827b..2dd7689f2b39 100755
--- a/sd/source/ui/framework/factories/BasicViewFactory.cxx
+++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx
@@ -227,7 +227,7 @@ Reference<XResource> SAL_CALL BasicViewFactory::createResource (
// When the requested view is not in the cache then create a new view.
if (pDescriptor.get() == NULL)
{
- pDescriptor = CreateView(rxViewId, *pFrame, *pWindow, xPane, pFrameView);
+ pDescriptor = CreateView(rxViewId, *pFrame, *pWindow, xPane, pFrameView, bIsCenterPane);
}
if (pDescriptor.get() != NULL)
@@ -351,7 +351,8 @@ void SAL_CALL BasicViewFactory::initialize (const Sequence<Any>& aArguments)
SfxViewFrame& rFrame,
::Window& rWindow,
const Reference<XPane>& rxPane,
- FrameView* pFrameView)
+ FrameView* pFrameView,
+ const bool bIsCenterPane)
{
::boost::shared_ptr<ViewDescriptor> pDescriptor (new ViewDescriptor());
@@ -359,13 +360,12 @@ void SAL_CALL BasicViewFactory::initialize (const Sequence<Any>& aArguments)
rxViewId,
rFrame,
rWindow,
- pFrameView);
+ pFrameView,
+ bIsCenterPane);
pDescriptor->mxViewId = rxViewId;
if (pDescriptor->mpViewShell.get() != NULL)
{
- const bool bIsCenterPane (
- rxViewId->isBoundToURL(FrameworkHelper::msCenterPaneURL, AnchorBindingMode_DIRECT));
pDescriptor->mpViewShell->Init(bIsCenterPane);
mpBase->GetViewShellManager()->ActivateViewShell(pDescriptor->mpViewShell.get());
@@ -386,7 +386,8 @@ void SAL_CALL BasicViewFactory::initialize (const Sequence<Any>& aArguments)
const Reference<XResourceId>& rxViewId,
SfxViewFrame& rFrame,
::Window& rWindow,
- FrameView* pFrameView)
+ FrameView* pFrameView,
+ const bool bIsCenterPane)
{
::boost::shared_ptr<ViewShell> pViewShell;
const OUString& rsViewURL (rxViewId->getResourceURL());
@@ -462,7 +463,8 @@ void SAL_CALL BasicViewFactory::initialize (const Sequence<Any>& aArguments)
&rFrame,
*mpBase,
&rWindow,
- pFrameView);
+ pFrameView,
+ bIsCenterPane);
}
return pViewShell;
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.hxx b/sd/source/ui/framework/factories/BasicViewFactory.hxx
index e5bb43551a24..0cdb45ffc7c1 100755
--- a/sd/source/ui/framework/factories/BasicViewFactory.hxx
+++ b/sd/source/ui/framework/factories/BasicViewFactory.hxx
@@ -128,13 +128,15 @@ private:
SfxViewFrame& rFrame,
::Window& rWindow,
const css::uno::Reference<css::drawing::framework::XPane>& rxPane,
- FrameView* pFrameView);
+ FrameView* pFrameView,
+ const bool bIsCenterView);
::boost::shared_ptr<ViewShell> CreateViewShell (
const css::uno::Reference<css::drawing::framework::XResourceId>& rxViewId,
SfxViewFrame& rFrame,
::Window& rWindow,
- FrameView* pFrameView);
+ FrameView* pFrameView,
+ const bool bIsCenterView);
void ActivateCenterView (
const ::boost::shared_ptr<ViewDescriptor>& rpDescriptor);