summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2000-11-01 13:53:19 +0000
committerChristian Lippka <cl@openoffice.org>2000-11-01 13:53:19 +0000
commit51cb8292a70ecf32d9df9f666cb25e93d3d3f31a (patch)
tree0e3cdfd5b2db614a027df6612b9221c62857d0aa /sd/source/ui
parentad6c66a601695f1abb7ef69184eab6c4943b7ebd (diff)
#79741# always create background object on new master page
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index c4bb52709f40..42f7506c166c 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unomodel.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: cl $ $Date: 2000-09-29 14:48:35 $
+ * last change: $Author: cl $ $Date: 2000-11-01 14:53:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1077,6 +1077,15 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIn
pDoc->InsertMasterPage(pMPage, nIndex);
pMPage->SetLayoutName( aLayoutName );
+ { // insert background object
+ Point aBackgroundPos ( pMPage->GetLftBorder(), pMPage->GetUppBorder() );
+ Size aBackgroundSize ( pMPage->GetSize() );
+ aBackgroundSize.Width() -= pMPage->GetLftBorder() + pMPage->GetRgtBorder() - 1;
+ aBackgroundSize.Height() -= pMPage->GetUppBorder() + pMPage->GetLwrBorder() - 1;
+ Rectangle aBackgroundRect (aBackgroundPos, aBackgroundSize);
+ pMPage->CreatePresObj(PRESOBJ_BACKGROUND, aBackgroundRect, sal_True );
+ }
+
xDrawPage = rModel.CreateXDrawPage(pMPage);
// create and instert new notes masterpage