summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-30 15:32:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-31 06:59:13 +0000
commit7fca8e61ce992e9dc6f900b77142a123c0c10b6d (patch)
treecaa7669600339d34fc5e5b1288cf76fe641cebc3 /sfx2
parent7acbf45fcc6e2f8672bbecc4787cbcea8967219b (diff)
use actual UNO enums in sfx2
Change-Id: Ide3ce0bc1afc9de46c2d06b161acff8d32fe1193 Reviewed-on: https://gerrit.libreoffice.org/35911 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/printhelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx
index f217aa73d642..f0d2bac19464 100644
--- a/sfx2/source/doc/printhelper.cxx
+++ b/sfx2/source/doc/printhelper.cxx
@@ -55,7 +55,7 @@
#include <sfx2/objsh.hxx>
#include <sfx2/event.hxx>
-#define SFX_PRINTABLESTATE_CANCELJOB -2
+#define SFX_PRINTABLESTATE_CANCELJOB (css::view::PrintableState)-2
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -240,7 +240,7 @@ namespace
case view::PaperFormat_USER:
eRet = PAPER_USER;
break;
- case view::PaperFormat_MAKE_FIXED_SIZE:
+ case view::PaperFormat::PaperFormat_MAKE_FIXED_SIZE:
break;
//deliberate no default to force warn on a new papersize
}
@@ -812,7 +812,7 @@ void IMPL_PrintListener_DataContainer::Notify( SfxBroadcaster& rBC, const SfxHin
view::PrintJobEvent aEvent;
aEvent.Source = m_xPrintJob;
- aEvent.State = (css::view::PrintableState) pPrintHint->GetWhich();
+ aEvent.State = pPrintHint->GetWhich();
::cppu::OInterfaceIteratorHelper pIterator(*pContainer);
while (pIterator.hasMoreElements())