summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-06 21:05:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-07 09:32:12 +0000
commitd1660f19d5c8c60d8549b594a36d13a5edcf15a3 (patch)
tree24e3c82332ece088bb6d23a48d39f7b6f5de2ebc /starmath
parent8dd1581a4f65eacc2a0f62b79873b533e8237a43 (diff)
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
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/view.hxx1
-rw-r--r--starmath/source/view.cxx4
2 files changed, 5 insertions, 0 deletions
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)