diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-03-23 20:14:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-27 09:43:58 +0000 |
commit | d615af618cc6a7152c76a49b3cd09db38eaa9e07 (patch) | |
tree | bc0d69070444dc687708de9a4a146c5c2d3b6852 /sc | |
parent | 6f968f00b1534406a2943be374fab924c3396482 (diff) |
create SfxInterfaceId o3tl::strong_int
Change-Id: Ie52f63382a9fb36f9a472801be012b140bfb51f6
Reviewed-on: https://gerrit.libreoffice.org/35722
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/shellids.hxx | 36 | ||||
-rw-r--r-- | sc/source/ui/app/scdll.cxx | 4 |
2 files changed, 20 insertions, 20 deletions
diff --git a/sc/inc/shellids.hxx b/sc/inc/shellids.hxx index 80e2bf70f0d8..642d0d633d00 100644 --- a/sc/inc/shellids.hxx +++ b/sc/inc/shellids.hxx @@ -21,25 +21,25 @@ #define INCLUDED_SC_INC_SHELLIDS_HXX // Sfx Interface-IDs -#define SCID_APP (SFX_INTERFACE_SC_START+0) -#define SCID_DOC_SHELL (SFX_INTERFACE_SC_START+1) -#define SCID_TABVIEW_SHELL (SFX_INTERFACE_SC_START+2) -#define SCID_TABPOP_SHELL (SFX_INTERFACE_SC_START+3) -#define SCID_EDIT_SHELL (SFX_INTERFACE_SC_START+4) -#define SCID_DRAW_SHELL (SFX_INTERFACE_SC_START+5) -#define SCID_DRAW_TEXT_SHELL (SFX_INTERFACE_SC_START+6) -#define SCID_PREVIEW_SHELL (SFX_INTERFACE_SC_START+7) -#define SCID_PIVOT_SHELL (SFX_INTERFACE_SC_START+8) -#define SCID_AUDITING_SHELL (SFX_INTERFACE_SC_START+9) -#define SCID_FORM_SHELL (SFX_INTERFACE_SC_START+10) +#define SCID_APP (SFX_INTERFACE_SC_START+SfxInterfaceId(0)) +#define SCID_DOC_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(1)) +#define SCID_TABVIEW_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(2)) +#define SCID_TABPOP_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(3)) +#define SCID_EDIT_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(4)) +#define SCID_DRAW_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(5)) +#define SCID_DRAW_TEXT_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(6)) +#define SCID_PREVIEW_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(7)) +#define SCID_PIVOT_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(8)) +#define SCID_AUDITING_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(9)) +#define SCID_FORM_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(10)) -#define SCID_FORMAT_SHELL (SFX_INTERFACE_SC_START+11) -#define SCID_CELL_SHELL (SFX_INTERFACE_SC_START+12) -#define SCID_OLEOBJECT_SHELL (SFX_INTERFACE_SC_START+13) -#define SCID_CHART_SHELL (SFX_INTERFACE_SC_START+14) -#define SCID_GRAPHIC_SHELL (SFX_INTERFACE_SC_START+15) -#define SCID_PAGEBREAK_SHELL (SFX_INTERFACE_SC_START+16) -#define SCID_MEDIA_SHELL (SFX_INTERFACE_SC_START+17) +#define SCID_FORMAT_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(11)) +#define SCID_CELL_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(12)) +#define SCID_OLEOBJECT_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(13)) +#define SCID_CHART_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(14)) +#define SCID_GRAPHIC_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(15)) +#define SCID_PAGEBREAK_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(16)) +#define SCID_MEDIA_SHELL (SFX_INTERFACE_SC_START+SfxInterfaceId(17)) #endif diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx index 0d9df6592b08..18ec897177fa 100644 --- a/sc/source/ui/app/scdll.cxx +++ b/sc/source/ui/app/scdll.cxx @@ -129,8 +129,8 @@ void ScDLL::Init() ScGlobal::Init(); // register your view-factories here - ScTabViewShell ::RegisterFactory(1); - ScPreviewShell ::RegisterFactory(2); + ScTabViewShell ::RegisterFactory(SFX_INTERFACE_SFXAPP); + ScPreviewShell ::RegisterFactory(SFX_INTERFACE_SFXDOCSH); // register your shell-interfaces here ScModule ::RegisterInterface(pMod); |