diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2018-08-09 15:37:00 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-08-31 13:03:47 +0200 |
commit | eb199c1b5e8d6039a1969cc6ddb3d627bedf5bd8 (patch) | |
tree | 64d652b9d0103ac53e7f096e36d09a7c9dab10ae /sdext/source/minimizer/informationdialog.hxx | |
parent | e2e47898180e547cad7ccde1e5890385d573e551 (diff) |
presentation minimizer: report possible errors
In process bunch of different problems can occur, but they are
not reported to user. IO errors are now shown with message dialog,
other exceptions (if any) are passed to upper level.
Change-Id: Idc15cb5b7f97de296e095d71ae1f3b2700fc0fa7
Reviewed-on: https://gerrit.libreoffice.org/58765
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sdext/source/minimizer/informationdialog.hxx')
-rw-r--r-- | sdext/source/minimizer/informationdialog.hxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sdext/source/minimizer/informationdialog.hxx b/sdext/source/minimizer/informationdialog.hxx index f70a60c51281..9d0405b36531 100644 --- a/sdext/source/minimizer/informationdialog.hxx +++ b/sdext/source/minimizer/informationdialog.hxx @@ -36,6 +36,19 @@ #include <com/sun/star/io/XStream.hpp> #include <cppuhelper/implbase.hxx> +OUString InsertFixedText( UnoDialog& rInformationDialog, const OUString& rControlName, const OUString& rLabel, + sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int32 nHeight, bool bMultiLine, sal_Int16 nTabIndex ); + +OUString InsertImage( UnoDialog& rInformationDialog, const OUString& rControlName, const OUString& rURL, + sal_Int32 nPosX, sal_Int32 nPosY, sal_Int32 nWidth, sal_Int32 nHeight, bool bScale ); + +OUString InsertCheckBox( UnoDialog& rInformationDialog, const OUString& rControlName, + const css::uno::Reference< css::awt::XItemListener >& rItemListener, const OUString& rLabel, + sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex ); + +OUString InsertButton( UnoDialog& rInformationDialog, const OUString& rControlName, + css::uno::Reference< css::awt::XActionListener > const & xActionListener, sal_Int32 nXPos, sal_Int32 nYPos, + sal_Int32 nWidth, sal_Int16 nTabIndex, const OUString& rText ); class InformationDialog : public UnoDialog, public ConfigurationAccess { @@ -64,13 +77,13 @@ private: class OKActionListener : public ::cppu::WeakImplHelper< css::awt::XActionListener > { public: - explicit OKActionListener( InformationDialog& rInformationDialog ) : mrInformationDialog( rInformationDialog ){} + explicit OKActionListener( UnoDialog& rDialog ) : mrDialog( rDialog ){} virtual void SAL_CALL actionPerformed( const css::awt::ActionEvent& Event ) override; virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override; private: - InformationDialog& mrInformationDialog; + UnoDialog& mrDialog; }; #endif |