Lines 197-207
Link Here
|
197 |
const bool bHasSelection = pSwView ? pSwView->HasSelection( sal_False ) : false; // check for any selection, not just text selection |
197 |
const bool bHasSelection = pSwView ? pSwView->HasSelection( sal_False ) : false; // check for any selection, not just text selection |
198 |
const bool bHasPostIts = lcl_GetPostIts( pDocShell->GetDoc(), 0 ); |
198 |
const bool bHasPostIts = lcl_GetPostIts( pDocShell->GetDoc(), 0 ); |
199 |
|
199 |
|
|
|
200 |
rtl::OUString aPageRangeStr; |
201 |
if( pSwView ) |
202 |
{ |
203 |
SwWrtShell& rShell( pSwView->GetWrtShell() ); |
204 |
sal_Int32 nPg = rShell.GetPhyPageNum(); |
205 |
aPageRangeStr = rtl::OUString::valueOf( nPg ); |
206 |
} |
207 |
|
200 |
// get default values to use in dialog from documents SwPrintData |
208 |
// get default values to use in dialog from documents SwPrintData |
201 |
const SwPrintData *pPrintData = pDocShell->GetDoc()->getPrintData(); |
209 |
const SwPrintData *pPrintData = pDocShell->GetDoc()->getPrintData(); |
202 |
DBG_ASSERT( pPrintData, "failed to get SwPrintData from document" ); |
210 |
DBG_ASSERT( pPrintData, "failed to get SwPrintData from document" ); |
203 |
|
211 |
|
204 |
return new SwPrintUIOptions( bWebDoc, bSwSrcView, bHasSelection, bHasPostIts, *pPrintData ); |
212 |
return new SwPrintUIOptions( bWebDoc, bSwSrcView, bHasSelection, bHasPostIts, aPageRangeStr, *pPrintData ); |
205 |
} |
213 |
} |
206 |
|
214 |
|
207 |
//////////////////////////////////////////////////////////// |
215 |
//////////////////////////////////////////////////////////// |