diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-03-12 15:09:03 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-03-13 14:14:12 +0100 |
commit | 6ab9f0cfcd28124caf8e02219a39c753bce7d1ea (patch) | |
tree | ea0aaba740057b096959183294ba9927a5e4c747 /sw | |
parent | fe6da2feb57c3d5e355a36f6b8ac09b48412ff39 (diff) |
SDI: don't #define/#undef names of actual classes for slot headers
Visual Studio 2015/2017 cannot handle that correctly, and emits a lot
of intellisense errors. So, just prepend the define with "ShellClass_"
Change-Id: I473ceb7e0a88e114b92e6342fd4ae63015cafd3e
Reviewed-on: https://gerrit.libreoffice.org/51135
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
30 files changed, 34 insertions, 34 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx index adb9b4366c23..b7c9ff0c8b0a 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -109,7 +109,7 @@ using namespace ::com::sun::star; // here are the SlotID's being included // see Idl-file -#define SwModule +#define ShellClass_SwModule #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx index aa6dc0c65ab6..073a6dc760cb 100644 --- a/sw/source/uibase/app/docsh.cxx +++ b/sw/source/uibase/app/docsh.cxx @@ -108,7 +108,7 @@ #include <sfx2/objface.hxx> #include <comphelper/storagehelper.hxx> -#define SwDocShell +#define ShellClass_SwDocShell #include <sfx2/msg.hxx> #include <swslots.hxx> #include <com/sun/star/document/UpdateDocMode.hpp> diff --git a/sw/source/uibase/misc/glshell.cxx b/sw/source/uibase/misc/glshell.cxx index f5757699e130..6a0cca3eb80c 100644 --- a/sw/source/uibase/misc/glshell.cxx +++ b/sw/source/uibase/misc/glshell.cxx @@ -47,8 +47,8 @@ #include <swerror.h> #include <strings.hrc> -#define SwWebGlosDocShell -#define SwGlosDocShell +#define ShellClass_SwWebGlosDocShell +#define ShellClass_SwGlosDocShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx index fbe9f2273269..63f7b1a191e6 100644 --- a/sw/source/uibase/shells/annotsh.cxx +++ b/sw/source/uibase/shells/annotsh.cxx @@ -129,7 +129,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::i18n; -#define SwAnnotationShell +#define ShellClass_SwAnnotationShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 017e65c3fd70..ef2d61b7c73a 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -127,7 +127,7 @@ static sal_uInt8 nPagePos; static sal_uInt8 nHeaderPos; static sal_uInt8 nFooterPos; -#define SwBaseShell +#define ShellClass_SwBaseShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/beziersh.cxx b/sw/source/uibase/shells/beziersh.cxx index 83c6219712cc..5aba0fca58a1 100644 --- a/sw/source/uibase/shells/beziersh.cxx +++ b/sw/source/uibase/shells/beziersh.cxx @@ -35,7 +35,7 @@ #include <drawbase.hxx> #include <beziersh.hxx> #include <strings.hrc> -#define SwBezierShell +#define ShellClass_SwBezierShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx index 4d6fad3248cd..d3876b4efc58 100644 --- a/sw/source/uibase/shells/drawsh.cxx +++ b/sw/source/uibase/shells/drawsh.cxx @@ -58,7 +58,7 @@ #include <drwbassh.hxx> #include <drawsh.hxx> -#define SwDrawShell +#define ShellClass_SwDrawShell #include <sfx2/msg.hxx> #include <swslots.hxx> #include <swabstdlg.hxx> diff --git a/sw/source/uibase/shells/drformsh.cxx b/sw/source/uibase/shells/drformsh.cxx index b392aac7e5b4..05c8ca93c7de 100644 --- a/sw/source/uibase/shells/drformsh.cxx +++ b/sw/source/uibase/shells/drformsh.cxx @@ -47,7 +47,7 @@ #include <sfx2/docfile.hxx> #include <docsh.hxx> -#define SwDrawFormShell +#define ShellClass_SwDrawFormShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx index 0e5254e41049..d5f1f42066c7 100644 --- a/sw/source/uibase/shells/drwbassh.cxx +++ b/sw/source/uibase/shells/drwbassh.cxx @@ -49,7 +49,7 @@ #include <svx/svdpage.hxx> #include <svx/svditer.hxx> #include <strings.hrc> -#define SwDrawBaseShell +#define ShellClass_SwDrawBaseShell #include <sfx2/msg.hxx> #include <swslots.hxx> #include <svx/svxdlg.hxx> diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index a8763fc819ad..9087ec1f006b 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -58,7 +58,7 @@ #include <globals.hrc> #include <strings.hrc> -#define SwDrawTextShell +#define ShellClass_SwDrawTextShell #include <sfx2/msg.hxx> #include <swslots.hxx> #include <uitool.hxx> diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx index e1bad7bff1d0..a9777a88b800 100644 --- a/sw/source/uibase/shells/frmsh.cxx +++ b/sw/source/uibase/shells/frmsh.cxx @@ -81,7 +81,7 @@ #include <svx/drawitem.hxx> #include <memory> -#define SwFrameShell +#define ShellClass_SwFrameShell #include <sfx2/msg.hxx> #include <swslots.hxx> #include <grfatr.hxx> diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx index e536f5bab523..aede5a6798f5 100644 --- a/sw/source/uibase/shells/grfsh.cxx +++ b/sw/source/uibase/shells/grfsh.cxx @@ -70,7 +70,7 @@ #include <IDocumentDrawModelAccess.hxx> //#include <svx/svxids.hrc> #include <svx/drawitem.hxx> -#define SwGrfShell +#define ShellClass_SwGrfShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/listsh.cxx b/sw/source/uibase/shells/listsh.cxx index e2276b99a71e..5dc107eb4740 100644 --- a/sw/source/uibase/shells/listsh.cxx +++ b/sw/source/uibase/shells/listsh.cxx @@ -44,7 +44,7 @@ #include <view.hxx> #include <edtwin.hxx> -#define SwListShell +#define ShellClass_SwListShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/mediash.cxx b/sw/source/uibase/shells/mediash.cxx index 297d0363d234..fe8c8d5c9157 100644 --- a/sw/source/uibase/shells/mediash.cxx +++ b/sw/source/uibase/shells/mediash.cxx @@ -62,7 +62,7 @@ #include <svx/sdr/contact/viewcontactofsdrmediaobj.hxx> #include <avmedia/mediaitem.hxx> -#define SwMediaShell +#define ShellClass_SwMediaShell #include <sfx2/msg.hxx> #include <swslots.hxx> #include <swabstdlg.hxx> diff --git a/sw/source/uibase/shells/navsh.cxx b/sw/source/uibase/shells/navsh.cxx index f5da1b0c448a..625d7c7055b4 100644 --- a/sw/source/uibase/shells/navsh.cxx +++ b/sw/source/uibase/shells/navsh.cxx @@ -22,7 +22,7 @@ #include <globals.hrc> #include <navsh.hxx> #include <strings.hrc> -#define SwNavigationShell +#define ShellClass_SwNavigationShell #include <swslots.hxx> #include <unomid.h> #include <navmgr.hxx> diff --git a/sw/source/uibase/shells/olesh.cxx b/sw/source/uibase/shells/olesh.cxx index f62a704cb23a..2e6123fec73d 100644 --- a/sw/source/uibase/shells/olesh.cxx +++ b/sw/source/uibase/shells/olesh.cxx @@ -31,7 +31,7 @@ #include <cmdid.h> #include <strings.hrc> -#define SwOleShell +#define ShellClass_SwOleShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx index ff6216d68d8b..87cc52214879 100644 --- a/sw/source/uibase/shells/tabsh.cxx +++ b/sw/source/uibase/shells/tabsh.cxx @@ -77,7 +77,7 @@ #include <globals.hrc> #include <unobaseclass.hxx> -#define SwTableShell +#define ShellClass_SwTableShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index fc3a0799d15d..901323446dcf 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -93,7 +93,7 @@ #include <chartins.hxx> -#define SwTextShell +#define ShellClass_SwTextShell #include <sfx2/msg.hxx> #include <vcl/EnumContext.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx index 6d8c4e14c27e..c4cbbe55b15e 100644 --- a/sw/source/uibase/uiview/pview.cxx +++ b/sw/source/uibase/uiview/pview.cxx @@ -69,7 +69,7 @@ #include <globals.hrc> #include <strings.hrc> -#define SwPagePreview +#define ShellClass_SwPagePreview #include <sfx2/msg.hxx> #include <swslots.hxx> #include <pagepreviewlayout.hxx> diff --git a/sw/source/uibase/uiview/srcview.cxx b/sw/source/uibase/uiview/srcview.cxx index f61582c26ecc..9dbe6d1fa265 100644 --- a/sw/source/uibase/uiview/srcview.cxx +++ b/sw/source/uibase/uiview/srcview.cxx @@ -76,7 +76,7 @@ #include <com/sun/star/ui/dialogs/XFilePicker3.hpp> #include <com/sun/star/ui/dialogs/XFilterManager.hpp> #include <sfx2/filedlghelper.hxx> -#define SwSrcView +#define ShellClass_SwSrcView #include <swslots.hxx> #include <unomid.h> diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx index 311235097dbc..ba847a61a0ec 100644 --- a/sw/source/uibase/uiview/view0.cxx +++ b/sw/source/uibase/uiview/view0.cxx @@ -57,9 +57,9 @@ #include <wview.hxx> #include <strings.hrc> -#define SwView -#define Text -#define TextDrawText +#define ShellClass_SwView +#define ShellClass_Text +#define ShellClass_TextDrawText #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/web/wdocsh.cxx b/sw/source/uibase/web/wdocsh.cxx index 80ddc0d32933..215583d1e7a6 100644 --- a/sw/source/uibase/web/wdocsh.cxx +++ b/sw/source/uibase/web/wdocsh.cxx @@ -36,7 +36,7 @@ #include <sfx2/request.hxx> // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx -#define SwWebDocShell +#define ShellClass_SwWebDocShell #include <swslots.hxx> #include <unomid.h> diff --git a/sw/source/uibase/web/wformsh.cxx b/sw/source/uibase/web/wformsh.cxx index 0e767b016e1f..7989d1c6749c 100644 --- a/sw/source/uibase/web/wformsh.cxx +++ b/sw/source/uibase/web/wformsh.cxx @@ -34,7 +34,7 @@ #include <sfx2/request.hxx> // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx -#define SwWebDrawFormShell +#define ShellClass_SwWebDrawFormShell #include <swslots.hxx> SFX_IMPL_SUPERCLASS_INTERFACE(SwWebDrawFormShell, SwDrawFormShell) diff --git a/sw/source/uibase/web/wfrmsh.cxx b/sw/source/uibase/web/wfrmsh.cxx index 9e6bef1fa834..af2f8b02a3c0 100644 --- a/sw/source/uibase/web/wfrmsh.cxx +++ b/sw/source/uibase/web/wfrmsh.cxx @@ -31,7 +31,7 @@ #include <sfx2/request.hxx> // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx -#define SwWebFrameShell +#define ShellClass_SwWebFrameShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/web/wgrfsh.cxx b/sw/source/uibase/web/wgrfsh.cxx index 551a40f6bc16..d62c0f0ef700 100644 --- a/sw/source/uibase/web/wgrfsh.cxx +++ b/sw/source/uibase/web/wgrfsh.cxx @@ -36,7 +36,7 @@ #include <sfx2/request.hxx> // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx -#define SwWebGrfShell +#define ShellClass_SwWebGrfShell #include <swslots.hxx> SFX_IMPL_INTERFACE(SwWebGrfShell, SwGrfShell) diff --git a/sw/source/uibase/web/wlistsh.cxx b/sw/source/uibase/web/wlistsh.cxx index 39135b1c3eee..60b048eb69ca 100644 --- a/sw/source/uibase/web/wlistsh.cxx +++ b/sw/source/uibase/web/wlistsh.cxx @@ -34,7 +34,7 @@ #include <sfx2/request.hxx> // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx -#define SwWebListShell +#define ShellClass_SwWebListShell #include <swslots.hxx> SFX_IMPL_INTERFACE(SwWebListShell, SwListShell) diff --git a/sw/source/uibase/web/wolesh.cxx b/sw/source/uibase/web/wolesh.cxx index 779dcb81dd76..a6f6b0ded4d9 100644 --- a/sw/source/uibase/web/wolesh.cxx +++ b/sw/source/uibase/web/wolesh.cxx @@ -29,7 +29,7 @@ #include <wolesh.hxx> #include <cmdid.h> -#define SwWebOleShell +#define ShellClass_SwWebOleShell #include <swslots.hxx> SFX_IMPL_INTERFACE(SwWebOleShell, SwOleShell) diff --git a/sw/source/uibase/web/wtabsh.cxx b/sw/source/uibase/web/wtabsh.cxx index 2000532d3ab6..d1006fa08e34 100644 --- a/sw/source/uibase/web/wtabsh.cxx +++ b/sw/source/uibase/web/wtabsh.cxx @@ -33,7 +33,7 @@ #include <sfx2/request.hxx> // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx -#define SwWebTableShell +#define ShellClass_SwWebTableShell #include <sfx2/msg.hxx> #include <svx/svxids.hrc> #include <swslots.hxx> diff --git a/sw/source/uibase/web/wtextsh.cxx b/sw/source/uibase/web/wtextsh.cxx index 50f2ce498bf3..71717f601000 100644 --- a/sw/source/uibase/web/wtextsh.cxx +++ b/sw/source/uibase/web/wtextsh.cxx @@ -37,7 +37,7 @@ #include <sfx2/request.hxx> // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx -#define SwWebTextShell +#define ShellClass_SwWebTextShell #include <sfx2/msg.hxx> #include <swslots.hxx> diff --git a/sw/source/uibase/web/wview.cxx b/sw/source/uibase/web/wview.cxx index 3ce256aafaf8..937dd898257d 100644 --- a/sw/source/uibase/web/wview.cxx +++ b/sw/source/uibase/web/wview.cxx @@ -62,8 +62,8 @@ #include <sfx2/request.hxx> // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx -#define SwWebView -#define Text +#define ShellClass_SwWebView +#define ShellClass_Text #include <swslots.hxx> SFX_IMPL_NAMED_VIEWFACTORY(SwWebView, "Default") |