summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2016-06-15 17:53:52 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-08-18 02:39:07 +0200
commit3fb0839da320bb2256b7a2dcf46363fc25bbfbc9 (patch)
tree8f31da02adb34e2cc99d49607b956e0b16ee8a96 /sd/source
parenteab85ed43846c7304980c098522f51de7ff11da8 (diff)
screenshots: extend default paths where stuff gets written
Change-Id: I1886d832bb9474371ea27d4d36f0446b221246d0
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/filter/html/pubdlg.cxx26
-rw-r--r--sd/source/ui/dlg/sddlgfact.hxx22
-rw-r--r--sd/source/ui/inc/pubdlg.hxx4
3 files changed, 44 insertions, 8 deletions
diff --git a/sd/source/filter/html/pubdlg.cxx b/sd/source/filter/html/pubdlg.cxx
index a926105d31c6..2b913abdc537 100644
--- a/sd/source/filter/html/pubdlg.cxx
+++ b/sd/source/filter/html/pubdlg.cxx
@@ -1586,6 +1586,32 @@ bool SdPublishingDlg::Save()
return( aMedium.GetError() == 0 );
}
+std::vector<OUString> SdPublishingDlg::getAllPageUIXMLDescriptions() const
+{
+ // this dialog has a hard number of pages
+ std::vector<OUString> aRetval;
+
+ for (sal_uInt32 a(0); a < 6; a++)
+ {
+ aRetval.push_back(OUString::number(a));
+ }
+
+ return aRetval;
+}
+
+void SdPublishingDlg::selectPageByUIXMLDescription(const OUString& rUIXMLDescription)
+{
+ // rUIXMLDescription contains one of the values above, make use of it
+ const sal_uInt32 nPage(rUIXMLDescription.toUInt32());
+
+ if (nPage < 6)
+ {
+ aAssistentFunc.GotoPage(nPage + 1);
+
+ // does this already call 'ChangePage()'..? Check!
+ }
+}
+
// SdDesignNameDlg Methods
SdDesignNameDlg::SdDesignNameDlg(vcl::Window* pWindow, const OUString& aName)
: ModalDialog(pWindow, "NameDesignDialog", "modules/sdraw/ui/namedesign.ui")
diff --git a/sd/source/ui/dlg/sddlgfact.hxx b/sd/source/ui/dlg/sddlgfact.hxx
index c5ec43014349..c9a9352212bf 100644
--- a/sd/source/ui/dlg/sddlgfact.hxx
+++ b/sd/source/ui/dlg/sddlgfact.hxx
@@ -22,17 +22,23 @@
#include "sdabstdlg.hxx"
#include <sfx2/basedlgs.hxx>
-#define DECL_ABSTDLG_BASE(Class,DialogClass) \
- ScopedVclPtr<DialogClass> pDlg; \
-public: \
- explicit Class(DialogClass* p) \
- : pDlg(p) \
- { \
- } \
- virtual ~Class(); \
+#define DECL_ABSTDLG_BASE(Class,DialogClass) \
+ ScopedVclPtr<DialogClass> pDlg; \
+public: \
+ explicit Class(DialogClass* p) \
+ : pDlg(p) \
+ { \
+ } \
+ virtual std::vector<OUString> getAllPageUIXMLDescriptions() const override; \
+ virtual void selectPageByUIXMLDescription(const OUString& rUIXMLDescription) override; \
+ virtual Bitmap createScreenshot() const override; \
+ virtual ~Class(); \
virtual short Execute() override ;
#define IMPL_ABSTDLG_BASE(Class) \
+std::vector<OUString> Class::getAllPageUIXMLDescriptions() const { return pDlg->getAllPageUIXMLDescriptions(); } \
+void Class::selectPageByUIXMLDescription(const OUString& rUIXMLDescription) { pDlg->selectPageByUIXMLDescription(rUIXMLDescription); } \
+Bitmap Class::createScreenshot() const { return pDlg->createScreenshot();} \
Class::~Class() \
{ \
} \
diff --git a/sd/source/ui/inc/pubdlg.hxx b/sd/source/ui/inc/pubdlg.hxx
index 894f33d9c9ff..f5156e0ea79b 100644
--- a/sd/source/ui/inc/pubdlg.hxx
+++ b/sd/source/ui/inc/pubdlg.hxx
@@ -200,6 +200,10 @@ public:
virtual void dispose() override;
void GetParameterSequence( css::uno::Sequence< css::beans::PropertyValue >& rParams );
+
+ // Screenshot interface
+ virtual std::vector<OUString> getAllPageUIXMLDescriptions() const override;
+ virtual void selectPageByUIXMLDescription(const OUString& rUIXMLDescription) override;
};
#endif // INCLUDED_SD_SOURCE_UI_INC_PUBDLG_HXX