diff options
author | Rob Snelders <programming@ertai.nl> | 2012-07-11 20:15:23 +0200 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-07-11 23:36:01 +0400 |
commit | be68d26b6cba797c7838afd15b098f0b95399d78 (patch) | |
tree | 0251646ea5f90b8a7119090d36a478483c3570d2 /sd/source | |
parent | fb79f6d64eee0580558dac15f42f97ee2255ff24 (diff) |
fdo#34697 - Print Current Page in Print dialog - Draw, Impress
Change-Id: I40922cd1357ff473c251681f7280ba53b3060feb
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 794e4ab7f9ac..1dd94176241b 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -369,9 +369,10 @@ namespace { class DialogCreator : Resource { public: - DialogCreator (bool bImpress) + DialogCreator (bool bImpress, sal_Int32 nCurPage) : Resource(SdResId(_STR_IMPRESS_PRINT_UI_OPTIONS)) , mbImpress(bImpress) + , mnCurPage(nCurPage) { ProcessResource(); } @@ -398,6 +399,7 @@ namespace { ::std::vector<beans::PropertyValue> maProperties; ::std::vector<sal_Int32> maSlidesPerPage; bool mbImpress; + sal_Int32 mnCurPage; void ProcessResource() { @@ -634,7 +636,7 @@ namespace { AddDialogControl( vcl::PrinterOptionsHelper::getEditControlOpt( "", ".HelpID:vcl:PrintDialog:PageRange:Edit" , "PageRange" , - "", + OUString::valueOf(mnCurPage + 1), aPageRangeOpt ) ); @@ -1197,7 +1199,7 @@ public: , mpPrintView() , mbHasOrientationWarningBeenShown(false) { - DialogCreator aCreator( mrBase.GetDocShell()->GetDocumentType() == DOCUMENT_TYPE_IMPRESS ); + DialogCreator aCreator( mrBase.GetDocShell()->GetDocumentType() == DOCUMENT_TYPE_IMPRESS, GetCurrentPageIndex() ); m_aUIProperties = aCreator.GetDialogControls(); maSlidesPerPage = aCreator.GetSlidesPerPage(); |