summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsh3.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2003-12-01 08:55:41 +0000
committerRüdiger Timm <rt@openoffice.org>2003-12-01 08:55:41 +0000
commitd8f3ca6008a06686a3ef46ab86fc75814404608c (patch)
tree4d2a93c2cbb31da2a147686786efaf6e6b67533e /sc/source/ui/view/tabvwsh3.cxx
parent0aab18d355f037bf2c8a0c440699b08ea1c3201d (diff)
INTEGRATION: CWS dr9 (1.17.60); FILE MERGED
2003/08/01 15:40:16 dr 1.17.60.1: #i4063# print entire sheet option
Diffstat (limited to 'sc/source/ui/view/tabvwsh3.cxx')
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 164e6ef46e6a..68f84e4e80b9 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tabvwsh3.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: vg $ $Date: 2003-06-02 07:28:51 $
+ * last change: $Author: rt $ $Date: 2003-12-01 09:55:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -117,6 +117,7 @@
(pReqArgs->GetItemState((WhichId), TRUE, ppItem ) == SFX_ITEM_SET)
#define GET_STRING(nid) ((const SfxStringItem&)pReqArgs->Get(nid)).GetValue()
#define GET_UINT16(nid) ((const SfxUInt16Item&)pReqArgs->Get(nid)).GetValue()
+#define GET_BOOL(nid) ((const SfxBoolItem&)pReqArgs->Get(nid)).GetValue()
#define RECALC_PAGE(pDocSh) ScPrintFunc( pDocSh, GetPrinter(), nCurTab ).UpdatePages()
//------------------------------------------------------------------
@@ -180,8 +181,9 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
String aPrintStr = GET_STRING( SID_CHANGE_PRINTAREA );
String aRowStr = GET_STRING( FN_PARAM_2 );
String aColStr = GET_STRING( FN_PARAM_3 );
+ BOOL bEntire = GET_BOOL( FN_PARAM_4 );
- SetPrintRanges( &aPrintStr, &aColStr, &aRowStr, FALSE );
+ SetPrintRanges( bEntire, &aPrintStr, &aColStr, &aRowStr, FALSE );
rReq.Done();
}
@@ -195,11 +197,11 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
if ( pReqArgs )
{
String aPrintStr = GET_STRING( SID_DEFINE_PRINTAREA );
- SetPrintRanges( &aPrintStr, NULL, NULL, bAdd );
+ SetPrintRanges( FALSE, &aPrintStr, NULL, NULL, bAdd );
}
else
{
- SetPrintRanges( NULL, NULL, NULL, bAdd ); // aus Selektion
+ SetPrintRanges( FALSE, NULL, NULL, NULL, bAdd ); // aus Selektion
rReq.Done();
}
}
@@ -208,7 +210,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
case SID_DELETE_PRINTAREA:
{
String aEmpty;
- SetPrintRanges( &aEmpty, NULL, NULL, FALSE ); // Druckbereich loeschen
+ SetPrintRanges( FALSE, &aEmpty, NULL, NULL, FALSE ); // Druckbereich loeschen
rReq.Done();
}
break;