summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2009-07-03 11:35:10 +0000
committerMathias Bauer <mba@openoffice.org>2009-07-03 11:35:10 +0000
commit28856974b8f334e3a6a219f10ab9fe6451fb7b81 (patch)
tree8d452ff4f8ec087f1955ef347152e36a381a9636 /sfx2
parent#i92516#: separate API and UI printing (diff)
downloadcore-28856974b8f334e3a6a219f10ab9fe6451fb7b81.tar.gz
core-28856974b8f334e3a6a219f10ab9fe6451fb7b81.zip
#i92516#: virtual method to get JobSetup for document
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sfx2/viewsh.hxx2
-rw-r--r--sfx2/source/view/viewprn.cxx22
2 files changed, 7 insertions, 17 deletions
diff --git a/sfx2/inc/sfx2/viewsh.hxx b/sfx2/inc/sfx2/viewsh.hxx
index 135d5f83dae7..84612c0bc8e2 100644
--- a/sfx2/inc/sfx2/viewsh.hxx
+++ b/sfx2/inc/sfx2/viewsh.hxx
@@ -43,6 +43,7 @@
#include "shell.hxx"
#include <tools/gen.hxx>
#include <tools/errcode.hxx>
+#include <vcl/jobset.hxx>
class SfxBaseController;
class Size;
class Fraction;
@@ -266,6 +267,7 @@ public:
virtual PrintDialog* CreatePrintDialog( Window *pParent );
void LockPrinter( BOOL bLock = TRUE );
BOOL IsPrinterLocked() const;
+ virtual JobSetup GetJobSetup() const;
// Workingset
virtual void WriteUserData( String&, BOOL bBrowse = FALSE );
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index 3b0ea5fc4c06..d66c934506c7 100644
--- a/sfx2/source/view/viewprn.cxx
+++ b/sfx2/source/view/viewprn.cxx
@@ -628,7 +628,7 @@ void SfxViewShell::ExecPrint( const uno::Sequence < beans::PropertyValue >& rPro
makeAny( rtl::OUString( pObjShell->GetTitle(0) ) ) );
// FIXME: job setup
- JobSetup aJobSetup;
+ JobSetup aJobSetup = GetJobSetup();
if( bIsDirect )
aJobSetup.SetValue( String( RTL_CONSTASCII_USTRINGPARAM( "IsQuickJob" ) ),
String( RTL_CONSTASCII_USTRINGPARAM( "true" ) ) );
@@ -986,23 +986,11 @@ SfxTabPage* SfxViewShell::CreatePrintOptionsPage
Window* /*pParent*/,
const SfxItemSet& /*rOptions*/
)
-
-/* [Beschreibung]
-
- Diese Factory-Methode wird vom SFx verwendet, um die TabPage mit den
- Print-Optionen, welche "uber das <SfxItemSet> am <SfxPrinter>
- transportiert werden, zu erzeugen.
-
- Abgeleitete Klassen k"onnen diese Methode also "uberladen um die zu
- ihren SfxPrinter passenden Einstellungen vorzunehmen. Dieses sollte
- genau die <SfxTabPage> sein, die auch unter Extras/Einstellungen
- verwendet wird.
-
- Die Basisimplementierung liefert einen 0-Pointer.
-*/
-
{
return 0;
}
-
+JobSetup SfxViewShell::GetJobSetup() const
+{
+ return JobSetup();
+} \ No newline at end of file