diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewprn.cxx | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index cd5758fe18f9..686af9752d7d 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <com/sun/star/document/XDocumentProperties.hpp> #include "com/sun/star/view/XRenderable.hpp" @@ -56,7 +55,6 @@ using namespace com::sun::star::uno; TYPEINIT1(SfxPrintingHint, SfxViewEventHint); -// ----------------------------------------------------------------------- class SfxPrinterController : public vcl::PrinterController, public SfxListener { Any maCompleteSelection; @@ -403,18 +401,13 @@ void SfxPrinterController::jobFinished( com::sun::star::view::PrintableState nSt } } -//==================================================================== - -class SfxDialogExecutor_Impl - -/* [Description] - +/** An instance of this class is created for the life span of the printer dialogue, to create in its click handler for the additions by the virtual method of the derived SfxViewShell generated print options dialogue and to cache the options set there as SfxItemSet. */ - +class SfxDialogExecutor_Impl { private: SfxViewShell* _pViewSh; @@ -433,8 +426,6 @@ public: void DisableHelp() { _bHelpDisabled = sal_True; } }; -//-------------------------------------------------------------------- - SfxDialogExecutor_Impl::SfxDialogExecutor_Impl( SfxViewShell* pViewSh, PrinterSetupDialog* pParent ) : _pViewSh ( pViewSh ), @@ -445,8 +436,6 @@ SfxDialogExecutor_Impl::SfxDialogExecutor_Impl( SfxViewShell* pViewSh, PrinterSe { } -//-------------------------------------------------------------------- - IMPL_LINK_NOARG(SfxDialogExecutor_Impl, Execute) { // Options noted locally @@ -473,15 +462,11 @@ IMPL_LINK_NOARG(SfxDialogExecutor_Impl, Execute) return 0; } -//------------------------------------------------------------------------- - -SfxPrinter* SfxViewShell::SetPrinter_Impl( SfxPrinter *pNewPrinter ) - - -/* Internal method for setting the differences between 'pNewPrinter' to the +/** + Internal method for setting the differences between 'pNewPrinter' to the current printer. pNewPrinter is either taken over or deleted. */ - +SfxPrinter* SfxViewShell::SetPrinter_Impl( SfxPrinter *pNewPrinter ) { // get current Printer SfxPrinter *pDocPrinter = GetPrinter(); @@ -769,6 +754,7 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq ) rReq.Done(); break; } + case SID_SETUPPRINTER : // display the printer settings dialogue : File > Printer Settings... case SID_PRINTER_NAME : // only for recorded macros { @@ -892,22 +878,16 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq ) } } -//-------------------------------------------------------------------- - SfxPrinter* SfxViewShell::GetPrinter( sal_Bool /*bCreate*/ ) { return 0; } -//-------------------------------------------------------------------- - sal_uInt16 SfxViewShell::SetPrinter( SfxPrinter* /*pNewPrinter*/, sal_uInt16 /*nDiffFlags*/, bool ) { return 0; } -//-------------------------------------------------------------------- - SfxTabPage* SfxViewShell::CreatePrintOptionsPage ( Window* /*pParent*/, |