summaryrefslogtreecommitdiff
path: root/sc/source/core/data/stlsheet.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-03-19 15:07:46 +0000
committerOliver Bolte <obo@openoffice.org>2004-03-19 15:07:46 +0000
commitf892ec4ee18f5de1bbc4010219784af4c0d7d72b (patch)
treec4854137a7a1c06abd9a85e730b8ddf6978da4e9 /sc/source/core/data/stlsheet.cxx
parent490b278c859abcf0a7a48e53af30fb8f4469da04 (diff)
INTEGRATION: CWS sab008 (1.4.230); FILE MERGED
2004/02/11 12:45:22 sab 1.4.230.2: RESYNC: (1.4-1.5); FILE MERGED 2003/08/29 12:02:52 dr 1.4.230.1: #i8868# 1st prototype: scale printout to width/height
Diffstat (limited to 'sc/source/core/data/stlsheet.cxx')
-rw-r--r--sc/source/core/data/stlsheet.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sc/source/core/data/stlsheet.cxx b/sc/source/core/data/stlsheet.cxx
index 1463ebe3f498..d5fbb4aea72b 100644
--- a/sc/source/core/data/stlsheet.cxx
+++ b/sc/source/core/data/stlsheet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stlsheet.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: hr $ $Date: 2004-02-03 12:19:57 $
+ * last change: $Author: obo $ $Date: 2004-03-19 16:07:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,6 +83,7 @@
#include <svtools/itempool.hxx>
#include <svtools/itemset.hxx>
#include <svtools/smplhint.hxx>
+#include "attrib.hxx"
#include "globstr.hrc"
@@ -187,7 +188,7 @@ SfxItemSet& __EXPORT ScStyleSheet::GetItemSet()
pSet = new SfxItemSet( rPool,
ATTR_BACKGROUND, ATTR_BACKGROUND,
ATTR_BORDER, ATTR_SHADOW,
- ATTR_LRSPACE, ATTR_PAGE_NULLVALS,
+ ATTR_LRSPACE, ATTR_PAGE_SCALETO,
ATTR_WRITINGDIR, ATTR_WRITINGDIR,
ATTR_USERDEF, ATTR_USERDEF,
0 );
@@ -201,7 +202,6 @@ SfxItemSet& __EXPORT ScStyleSheet::GetItemSet()
if ( pDoc && pDoc->IsLoadingDone() )
{
// Setzen von sinnvollen Default-Werten:
- //!!! const-Document wegcasten (im Ctor mal bei Gelegenheit aendern)
SfxPrinter* pPrinter = pDoc->GetPrinter();
USHORT nBinCount = pPrinter->GetPaperBinCount();
SvxPageItem aPageItem( ATTR_PAGE );
@@ -264,6 +264,8 @@ SfxItemSet& __EXPORT ScStyleSheet::GetItemSet()
rPool.SetPoolDefaultItem( aLRSpaceItem );
rPool.SetPoolDefaultItem( aULSpaceItem );
rPool.SetPoolDefaultItem( SfxUInt16Item( ATTR_PAGE_SCALE, 100 ) );
+ ScPageScaleToItem aScaleToItem;
+ rPool.SetPoolDefaultItem( aScaleToItem );
rPool.SetPoolDefaultItem( SfxUInt16Item( ATTR_PAGE_SCALETOPAGES, 0 ) );
}
}