From d1660f19d5c8c60d8549b594a36d13a5edcf15a3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 6 Dec 2012 21:05:57 +0000 Subject: an app can have print options without a print options dialog e.g. draw and impress have print options, but no print options dialog (It's plausible that we should merge the print options in the print dialog with the print options in the options... dialog of the printer settings dialog) Change-Id: I25c029ad8ba482b1e8d8d5974cc8de99584b9a55 --- starmath/inc/view.hxx | 1 + starmath/source/view.cxx | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'starmath') diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index f508cf5a87a1..cdfb6143569b 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -266,6 +266,7 @@ protected: bool Insert( SfxMedium& rMedium ); bool InsertFrom(SfxMedium &rMedium); + virtual bool HasPrintOptionsPage() const; virtual SfxTabPage *CreatePrintOptionsPage(Window *pParent, const SfxItemSet &rOptions); virtual void Deactivate(sal_Bool IsMDIActivate); diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 2c12b3c4cdef..f2713f576ca0 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -1381,6 +1381,10 @@ sal_uInt16 SmViewShell::SetPrinter(SfxPrinter *pNewPrinter, sal_uInt16 nDiffFlag return 0; } +bool SmViewShell::HasPrintOptionsPage() const +{ + return true; +} SfxTabPage* SmViewShell::CreatePrintOptionsPage(Window *pParent, const SfxItemSet &rOptions) -- cgit v1.2.3