summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/bigrange.cxx5
-rw-r--r--sc/source/core/data/dpsave.cxx2
-rw-r--r--sc/source/core/tool/appoptio.cxx2
-rw-r--r--sc/source/core/tool/docoptio.cxx2
-rw-r--r--sc/source/core/tool/inputopt.cxx6
-rw-r--r--sc/source/core/tool/interpr3.cxx1
-rw-r--r--sc/source/core/tool/rangelst.cxx2
-rw-r--r--sc/source/core/tool/viewopti.cxx3
-rw-r--r--sc/source/filter/excel/xlformula.cxx1
-rw-r--r--sc/source/filter/html/htmlpars.cxx1
-rw-r--r--sc/source/filter/oox/formulabase.cxx1
-rw-r--r--sc/source/ui/app/typemap.cxx3
-rw-r--r--sc/source/ui/dbgui/dapidata.cxx1
-rw-r--r--sc/source/ui/dbgui/dbnamdlg.cxx1
-rw-r--r--sc/source/ui/drawfunc/fuconpol.cxx7
-rw-r--r--sc/source/ui/drawfunc/futext2.cxx57
-rw-r--r--sc/source/ui/drawfunc/graphsh.cxx2
-rw-r--r--sc/source/ui/drawfunc/mediash.cxx3
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx3
-rw-r--r--sc/source/ui/miscdlgs/highred.cxx5
-rw-r--r--sc/source/ui/miscdlgs/simpref.cxx6
-rw-r--r--sc/source/ui/namedlg/namedefdlg.cxx1
-rw-r--r--sc/source/ui/pagedlg/areasdlg.cxx1
-rw-r--r--sc/source/ui/pagedlg/tphfedit.cxx1
-rw-r--r--sc/source/ui/unoobj/docuno.cxx1
-rw-r--r--sc/source/ui/view/hdrcont.cxx4
-rw-r--r--sc/source/ui/view/olkact.cxx74
-rw-r--r--sc/source/ui/view/prevwsh2.cxx63
-rw-r--r--sc/source/ui/view/select.cxx2
-rw-r--r--sc/source/ui/view/tabview.cxx2
-rw-r--r--sc/source/ui/view/viewfun3.cxx43
31 files changed, 2 insertions, 304 deletions
diff --git a/sc/source/core/data/bigrange.cxx b/sc/source/core/data/bigrange.cxx
index a48e02052b85..089e801b545e 100644
--- a/sc/source/core/data/bigrange.cxx
+++ b/sc/source/core/data/bigrange.cxx
@@ -7,9 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef __SC_BIGRANGE_CXX__
-#define __SC_BIGRANGE_CXX__
-
#include "bigrange.hxx"
#include "document.hxx"
@@ -25,6 +22,4 @@ bool ScBigAddress::IsValid( const ScDocument* pDoc ) const
;
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index 8680726ecdf3..bef099b008c7 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -58,8 +58,6 @@ using ::rtl::OUStringBuffer;
using ::rtl::OUStringHash;
using ::std::auto_ptr;
-#define SC_DPSAVEMODE_NO 0
-#define SC_DPSAVEMODE_YES 1
#define SC_DPSAVEMODE_DONTKNOW 2
static void lcl_SetBoolProperty( const uno::Reference<beans::XPropertySet>& xProp,
diff --git a/sc/source/core/tool/appoptio.cxx b/sc/source/core/tool/appoptio.cxx
index 70901270e433..b333155fb1b4 100644
--- a/sc/source/core/tool/appoptio.cxx
+++ b/sc/source/core/tool/appoptio.cxx
@@ -34,8 +34,6 @@
using namespace utl;
using namespace com::sun::star::uno;
using ::rtl::OUString;
- // STATIC DATA -----------------------------------------------------------
-#define SC_VERSION ((sal_uInt16)304)
//========================================================================
// ScAppOptions - Applikations-Optionen
diff --git a/sc/source/core/tool/docoptio.cxx b/sc/source/core/tool/docoptio.cxx
index 65ea618e8119..24a7b6b4016f 100644
--- a/sc/source/core/tool/docoptio.cxx
+++ b/sc/source/core/tool/docoptio.cxx
@@ -38,8 +38,6 @@ using ::rtl::OUString;
//------------------------------------------------------------------------
-#define SC_VERSION ((sal_uInt16)251)
-
TYPEINIT1(ScTpCalcItem, SfxPoolItem);
//------------------------------------------------------------------------
diff --git a/sc/source/core/tool/inputopt.cxx b/sc/source/core/tool/inputopt.cxx
index 9e535d25a757..eb12f797abda 100644
--- a/sc/source/core/tool/inputopt.cxx
+++ b/sc/source/core/tool/inputopt.cxx
@@ -33,12 +33,6 @@ using namespace com::sun::star::uno;
using ::rtl::OUString;
-//------------------------------------------------------------------
-
-// version from which on the item is compatible
-#define SC_VERSION ((sal_uInt16)351)
-
-
//========================================================================
// ScInputOptions - input options
//========================================================================
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index 202100ef344f..bb87e617e69c 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -40,7 +40,6 @@ using namespace formula;
// STATIC DATA -----------------------------------------------------------
-#define SCdEpsilon 1.0E-7
#define MAX_ANZ_DOUBLE_FOR_SORT 100000
const double ScInterpreter::fMaxGammaArgument = 171.624376956302; // found experimental
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index 6f0093d57e97..af2fb6e1fdee 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#define SC_RANGELST_CXX //fuer ICC
-
#include <stdlib.h> // qsort
#include <comphelper/string.hxx>
#include <unotools/collatorwrapper.hxx>
diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx
index 69b8cacabd8d..114b7ab18563 100644
--- a/sc/source/core/tool/viewopti.cxx
+++ b/sc/source/core/tool/viewopti.cxx
@@ -40,9 +40,6 @@ using ::rtl::OUString;
TYPEINIT1(ScTpViewItem, SfxPoolItem);
-#define SC_VERSION ((sal_uInt16)302)
-
-
//========================================================================
// class ScGridOptions
//========================================================================
diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx
index 5c11ee546687..d4bdc8643a11 100644
--- a/sc/source/filter/excel/xlformula.cxx
+++ b/sc/source/filter/excel/xlformula.cxx
@@ -47,7 +47,6 @@ const sal_uInt8 A = EXC_TOKCLASS_ARR;
// abbreviations for parameter infos
#define RO { EXC_PARAM_REGULAR, EXC_PARAMCONV_ORG, false }
-#define RV { EXC_PARAM_REGULAR, EXC_PARAMCONV_VAL, false }
#define RA { EXC_PARAM_REGULAR, EXC_PARAMCONV_ARR, false }
#define RR { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPT, false }
#define RX { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPX, false }
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index 83ea5bfd9cb4..5510241440ae 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -21,7 +21,6 @@
#include <boost/shared_ptr.hpp>
#include <comphelper/string.hxx>
-#define SC_HTMLPARS_CXX
#include "scitems.hxx"
#include <editeng/eeitem.hxx>
diff --git a/sc/source/filter/oox/formulabase.cxx b/sc/source/filter/oox/formulabase.cxx
index 3adbfdbd3ac4..1a12a2e659cc 100644
--- a/sc/source/filter/oox/formulabase.cxx
+++ b/sc/source/filter/oox/formulabase.cxx
@@ -265,7 +265,6 @@ const sal_uInt8 A = BIFF_TOKCLASS_ARR;
// abbreviations for parameter infos
#define RO { FUNC_PARAM_REGULAR, FUNC_PARAMCONV_ORG, false }
-#define RV { FUNC_PARAM_REGULAR, FUNC_PARAMCONV_VAL, false }
#define RA { FUNC_PARAM_REGULAR, FUNC_PARAMCONV_ARR, false }
#define RR { FUNC_PARAM_REGULAR, FUNC_PARAMCONV_RPT, false }
#define RX { FUNC_PARAM_REGULAR, FUNC_PARAMCONV_RPX, false }
diff --git a/sc/source/ui/app/typemap.cxx b/sc/source/ui/app/typemap.cxx
index d48984391808..01f0ba78bf8e 100644
--- a/sc/source/ui/app/typemap.cxx
+++ b/sc/source/ui/app/typemap.cxx
@@ -22,8 +22,6 @@
#include "scitems.hxx"
#include <editeng/memberids.hrc>
-#define ITEMID_DBTYPE 0
-
#include <sfx2/msg.hxx>
#include <svl/stritem.hxx>
#include <svl/slstitm.hxx>
@@ -94,7 +92,6 @@
#define SvxDrawToolItem SfxAllEnumItem
#define SvxDrawAlignItem SfxAllEnumItem
-#define SvxChooseControlItem SfxEnumItem
#define avmedia_MediaItem ::avmedia::MediaItem
#if defined(IOS)
diff --git a/sc/source/ui/dbgui/dapidata.cxx b/sc/source/ui/dbgui/dapidata.cxx
index eb36cc92780e..89617f743608 100644
--- a/sc/source/ui/dbgui/dapidata.cxx
+++ b/sc/source/ui/dbgui/dapidata.cxx
@@ -50,7 +50,6 @@ using namespace com::sun::star;
// entries in the "type" ListBox
#define DP_TYPELIST_TABLE 0
#define DP_TYPELIST_QUERY 1
-#define DP_TYPELIST_SQL 2
#define DP_TYPELIST_SQLNAT 3
//-------------------------------------------------------------------------
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx
index d4744c454ef1..78e19fd81d4d 100644
--- a/sc/source/ui/dbgui/dbnamdlg.cxx
+++ b/sc/source/ui/dbgui/dbnamdlg.cxx
@@ -39,7 +39,6 @@
| SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE
#define ABS_DREF ABS_SREF \
| SCA_COL2_ABSOLUTE | SCA_ROW2_ABSOLUTE | SCA_TAB2_ABSOLUTE
-#define ABS_SREF3D ABS_SREF | SCA_TAB_3D
#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
//----------------------------------------------------------------------------
diff --git a/sc/source/ui/drawfunc/fuconpol.cxx b/sc/source/ui/drawfunc/fuconpol.cxx
index 30997924df94..62dbcf369043 100644
--- a/sc/source/ui/drawfunc/fuconpol.cxx
+++ b/sc/source/ui/drawfunc/fuconpol.cxx
@@ -28,13 +28,6 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/point/b2dpoint.hxx>
-// Pixelabstand zum Schliessen von Freihand-Zeichnungen
-#ifndef CLOSE_PIXDIST
-#define CLOSE_PIXDIST 5
-#endif
-
-//------------------------------------------------------------------------
-
/*************************************************************************
|*
|* Konstruktor
diff --git a/sc/source/ui/drawfunc/futext2.cxx b/sc/source/ui/drawfunc/futext2.cxx
index b7994fb5c4c4..55bf00d1ca8b 100644
--- a/sc/source/ui/drawfunc/futext2.cxx
+++ b/sc/source/ui/drawfunc/futext2.cxx
@@ -17,63 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-// TOOLS
-#define _BIGINT_HXX
-#define _CACHESTR_HXX
-#define _SVMEMPOOL_HXX
-#define _CACHESTR_HXX
-#define _SV_MULTISEL_HXX
-
-//SV
-#define _CONFIG_HXX
-#define _CURSOR_HXX
-#define _HELP_HXX
-#define _SPIN_HXX
-#define _STATUS_HXX
-#define _SOUND_HXX
-
-//svtools
-#define _SCRWIN_HXX
-#define _RULER_HXX
-#define _STDMENU_HXX
-#define _CTRLTOOL_HXX
-
-//SVTOOLS
-#define _FILTER_HXX
-#define _SVTABBX_HXX
-
-//sfxcore.hxx
-#define _SFXGENLINK_HXX
-#define _SFXHINTPOST_HXX
-#define _SFXDOCINF_HXX
-
-// SFX
-#define _SFXMSGPOOL_HXX
-#define _PASSWD_HXX
-#define _SFXTBXCTRL_HXX
-#define _SFXSTBITEM_HXX
-#define _SFXMNUITEM_HXX
-#define _SFXIMGMGR_HXX
-#define _SFX_MINFITEM_HXX
-#define _SFXEVENT_HXX
-
-//sfxdlg.hxx
-#define _SFX_DINFDLG_HXX
-#define _SFX_MGETEMPL_HXX
-#define _SFX_TPLPITEM_HXX
-#define _NEWSTYLE_HXX
-
-//sfxitems.hxx
-#define _SFXFLAGITEM_HXX
-#define _SFXPTITEM_HXX
-#define _SFXRECTITEM_HXX
-#define _SFXITEMITER_HXX
-#define _SFX_WHITER_HXX
-#define _SFXPOOLCACH_HXX
-#define _SFXRNGITEM_HXX
-
-//------------------------------------------------------------------------
-
#include <svx/svdmodel.hxx>
#include <svx/svdoutl.hxx>
#include <svx/svdetc.hxx>
diff --git a/sc/source/ui/drawfunc/graphsh.cxx b/sc/source/ui/drawfunc/graphsh.cxx
index edc9445f7dd4..5364d5cd1cfe 100644
--- a/sc/source/ui/drawfunc/graphsh.cxx
+++ b/sc/source/ui/drawfunc/graphsh.cxx
@@ -37,8 +37,6 @@
#define ScGraphicShell
#include "scslots.hxx"
-#define ITEMVALUE(ItemSet,Id,Cast) ((const Cast&)(ItemSet).Get(Id)).GetValue()
-
class ScExternalToolEdit : public ExternalToolEdit
{
FmFormView* m_pView;
diff --git a/sc/source/ui/drawfunc/mediash.cxx b/sc/source/ui/drawfunc/mediash.cxx
index 2a4b9d744165..79185a965e31 100644
--- a/sc/source/ui/drawfunc/mediash.cxx
+++ b/sc/source/ui/drawfunc/mediash.cxx
@@ -35,9 +35,6 @@
#define ScMediaShell
#include "scslots.hxx"
-#define ITEMVALUE(ItemSet,Id,Cast) ((const Cast&)(ItemSet).Get(Id)).GetValue()
-
-
SFX_IMPL_INTERFACE(ScMediaShell, ScDrawShell, ScResId(SCSTR_GRAPHICSHELL) )
{
SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_OBJECT, ScResId(RID_MEDIA_OBJECTBAR) );
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index 84155409ec26..9345776aabe3 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -46,11 +46,8 @@
| SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE
#define ABS_DREF ABS_SREF \
| SCA_COL2_ABSOLUTE | SCA_ROW2_ABSOLUTE | SCA_TAB2_ABSOLUTE
-#define ABS_SREF3D ABS_SREF | SCA_TAB_3D
#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
-#define ERRORBOX(s) ErrorBox(this,WinBits(WB_OK|WB_DEF_OK),s).Execute();
-
#define RD_SPECIAL_NONE 0
#define RD_SPECIAL_CONTENT 1
#define RD_SPECIAL_VISCONTENT 2
diff --git a/sc/source/ui/miscdlgs/highred.cxx b/sc/source/ui/miscdlgs/highred.cxx
index 752bf7089a4e..58012cfc7862 100644
--- a/sc/source/ui/miscdlgs/highred.cxx
+++ b/sc/source/ui/miscdlgs/highred.cxx
@@ -35,13 +35,8 @@
| SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE
#define ABS_DREF ABS_SREF \
| SCA_COL2_ABSOLUTE | SCA_ROW2_ABSOLUTE | SCA_TAB2_ABSOLUTE
-#define ABS_SREF3D ABS_SREF | SCA_TAB_3D
#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
-
-
-#define ERRORBOX(s) ErrorBox(this,WinBits(WB_OK|WB_DEF_OK),s).Execute();
-
//============================================================================
// class ScHighlightChgDlg
diff --git a/sc/source/ui/miscdlgs/simpref.cxx b/sc/source/ui/miscdlgs/simpref.cxx
index 60bc8eaf1c7b..4468198a75ae 100644
--- a/sc/source/ui/miscdlgs/simpref.cxx
+++ b/sc/source/ui/miscdlgs/simpref.cxx
@@ -35,14 +35,8 @@
| SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE
#define ABS_DREF ABS_SREF \
| SCA_COL2_ABSOLUTE | SCA_ROW2_ABSOLUTE | SCA_TAB2_ABSOLUTE
-#define ABS_SREF3D ABS_SREF | SCA_TAB_3D
#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
-//----------------------------------------------------------------------------
-
-#define ERRORBOX(s) ErrorBox(this,WinBits(WB_OK|WB_DEF_OK),s).Execute()
-#define QUERYBOX(m) QueryBox(this,WinBits(WB_YES_NO|WB_DEF_YES),m).Execute()
-
//============================================================================
// class ScSimpleRefDlg
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx
index 67758d5d8801..3270ad9e23e1 100644
--- a/sc/source/ui/namedlg/namedefdlg.cxx
+++ b/sc/source/ui/namedlg/namedefdlg.cxx
@@ -47,7 +47,6 @@
| SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE
#define ABS_DREF ABS_SREF \
| SCA_COL2_ABSOLUTE | SCA_ROW2_ABSOLUTE | SCA_TAB2_ABSOLUTE
-#define ABS_SREF3D ABS_SREF | SCA_TAB_3D
#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
diff --git a/sc/source/ui/pagedlg/areasdlg.cxx b/sc/source/ui/pagedlg/areasdlg.cxx
index 85e8c44f44eb..d7506379aea1 100644
--- a/sc/source/ui/pagedlg/areasdlg.cxx
+++ b/sc/source/ui/pagedlg/areasdlg.cxx
@@ -61,7 +61,6 @@ using ::rtl::OUString;
#define HDL(hdl) LINK( this, ScPrintAreasDlg, hdl )
#define ERRORBOX(nId) ErrorBox( this, WinBits(WB_OK|WB_DEF_OK), \
ScGlobal::GetRscString( nId ) ).Execute()
-#define SWAP(x1,x2) { int n=x1; x1=x2; x2=n; }
// globale Funktionen (->am Ende der Datei):
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index 0ae46f3a905f..be48bf0464e2 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#define _TPHFEDIT_CXX
#include "scitems.hxx"
#include <editeng/eeitem.hxx>
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index bc33f4f28630..b0e20cfeaf5a 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -94,7 +94,6 @@
#include "scresid.hxx"
using namespace com::sun::star;
-#define SC_UNO_VBADOCOBJ "ThisVBADocObj" // perhaps we want to actually make this ThisWorkbook ?
// #i111553# provides the name of the VBA constant for this document type (e.g. 'ThisExcelDoc' for Calc)
#define SC_UNO_VBAGLOBNAME "VBAGlobalConstantName"
diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx
index fb90a9659411..3a826749a48c 100644
--- a/sc/source/ui/view/hdrcont.cxx
+++ b/sc/source/ui/view/hdrcont.cxx
@@ -40,10 +40,6 @@
// (selection left/right must be first because the continuous lines
// are partly overwritten later)
-#define SC_HDRPAINT_SEL_RIGHT 0
-#define SC_HDRPAINT_SEL_LEFT 1
-#define SC_HDRPAINT_TOP 2
-#define SC_HDRPAINT_SEL_TOP 3
#define SC_HDRPAINT_SEL_BOTTOM 4
#define SC_HDRPAINT_BOTTOM 5
#define SC_HDRPAINT_TEXT 6
diff --git a/sc/source/ui/view/olkact.cxx b/sc/source/ui/view/olkact.cxx
index 071d8de31eba..4417e9467e42 100644
--- a/sc/source/ui/view/olkact.cxx
+++ b/sc/source/ui/view/olkact.cxx
@@ -17,80 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#define _BIGINT_HXX
-#define _CACHESTR_HXX
-#define _CONFIG_HXX
-#define _CURSOR_HXX
-#define _CTRLTOOL_HXX
-#define _MACRODLG_HXX
-#define _OUTLINER_HXX
-#define _PASSWD_HXX
-#define _PRNDLG_HXX
-#define _RULER_HXX
-#define _SCRWIN_HXX
-#define _STDMENU_HXX
-#define _TABBAR_HXX
-
-//sfx
-#define _SFXCTRLITEM
-#define _SFXDISPATCH_HXX
-#define _SFXIMGMGR_HXX
-#define _SFX_MINFITEM_HXX
-
-//sfxcore.hxx
-#define _SFXGENLINK_HXX
-#define _SFXHINTPOST_HXX
-#define _SFXDOCINF_HXX
-
-// SFX
-#define _SFXMSGPOOL_HXX
-#define _PASSWD_HXX
-#define _SFXTBXCTRL_HXX
-#define _SFXSTBITEM_HXX
-#define _SFXMNUITEM_HXX
-#define _SFXIMGMGR_HXX
-#define _SFX_MINFITEM_HXX
-#define _SFXEVENT_HXX
-
-//sfxdlg.hxx
-#define _SFX_DINFDLG_HXX
-#define _SFX_MGETEMPL_HXX
-#define _SFX_TPLPITEM_HXX
-#define _NEWSTYLE_HXX
-
-//sfxitems.hxx
-#define _SFXFLAGITEM_HXX
-#define _SFXPTITEM_HXX
-#define _SFXRECTITEM_HXX
-#define _SFXITEMITER_HXX
-#define _SFX_WHITER_HXX
-#define _SFXPOOLCACH_HXX
-#define _SFXRNGITEM_HXX
-
-#define _SFXBASIC_HXX
-#define _SFX_TEMPLDLG_HXX
-#define _SFXIMGMGR_HXX
-#define _SFXMNUITEM_HXX
-#define _SFXMNUMGR_HXX
-#define _SFXSTBITEM_HXX
-#define _SFXTBXCTRL_HXX
-#define _SFXREQUEST_HXX
-#define _SFXOBJFACE_HXX
-#define _SFXMSGPOOL_HXX
-#define _SFXMSG_HXX
-#define _SFX_PRNMON_HXX
-
-#define _SVTABBX_HXX
-
-#define _SVX_HYPHEN_HXX
-#define _SVX_OPTSAVE_HXX
-#define _SVX_OPTPATH_HXX
-#define _SVX_OPTLINGU_HXX
-#define _SVX_RULER_HXX
-#define _SVX_RULRITEM_HXX
-#define _SVX_SPLWRAP_HXX
-#define _SVX_THESDLG_HXX
-
#include <sfx2/childwin.hxx>
#include <sfx2/objsh.hxx>
diff --git a/sc/source/ui/view/prevwsh2.cxx b/sc/source/ui/view/prevwsh2.cxx
index e30ba687a60f..c8e408418605 100644
--- a/sc/source/ui/view/prevwsh2.cxx
+++ b/sc/source/ui/view/prevwsh2.cxx
@@ -17,69 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-// TOOLS
-#define _BIGINT_HXX
-#define _CACHESTR_HXX
-#define _SVMEMPOOL_HXX
-#define _CACHESTR_HXX
-
-//SV
-#define _CONFIG_HXX
-#define _CURSOR_HXX
-#define _HELP_HXX
-#define _SPIN_HXX
-#define _SOUND_HXX
-
-//svtools
-#define _SCRWIN_HXX
-#define _RULER_HXX
-#define _STDMENU_HXX
-#define _CTRLTOOL_HXX
-
-//SVTOOLS
-#define _FILTER_HXX
-#define _SVTABBX_HXX
-
-//sfxcore.hxx
-#define _SFXGENLINK_HXX
-#define _SFXHINTPOST_HXX
-#define _SFXDOCINF_HXX
-
-// SFX
-#define _SFXMSGPOOL_HXX
-#define _PASSWD_HXX
-#define _SFXTBXCTRL_HXX
-#define _SFXSTBITEM_HXX
-#define _SFXMNUITEM_HXX
-#define _SFXIMGMGR_HXX
-#define _SFX_MINFITEM_HXX
-#define _SFXEVENT_HXX
-
-//sfxdlg.hxx
-#define _SFX_DINFDLG_HXX
-#define _SFX_MGETEMPL_HXX
-#define _SFX_TPLPITEM_HXX
-#define _NEWSTYLE_HXX
-#define _SFXDOCKWIN_HXX
-
-//sfxitems.hxx
-#define _SFXFLAGITEM_HXX
-#define _SFXPTITEM_HXX
-#define _SFXRECTITEM_HXX
-#define _SFXITEMITER_HXX
-#define _SFX_WHITER_HXX
-#define _SFXPOOLCACH_HXX
-#define _SFXRNGITEM_HXX
-
-#define _SVX_HYPHEN_HXX
-#define _SVX_OPTSAVE_HXX
-#define _SVX_OPTPATH_HXX
-#define _SVX_OPTLINGU_HXX
-#define _SVX_RULER_HXX
-#define _SVX_RULRITEM_HXX
-#define _SVX_SPLWRAP_HXX
-#define _SVX_THESDLG_HXX
-
#include <svx/svdmodel.hxx>
#include <svl/smplhint.hxx>
diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx
index d991b12e4ded..6f44a531248f 100644
--- a/sc/source/ui/view/select.cxx
+++ b/sc/source/ui/view/select.cxx
@@ -31,7 +31,9 @@
#include "tabprotection.hxx"
#include "markdata.hxx"
+#if defined WNT
#define SC_SELENG_REFMODE_UPDATE_INTERVAL_MIN 65
+#endif
extern sal_uInt16 nScFillModeMouseModifier; // global.cxx
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 52ef47bd0fb6..0f94f9bed8bd 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -27,8 +27,6 @@
////////////////////// Umsetzen der Standard-Defines //////////////////////
-#define _SVDPAGE_HXX // SdrPage
-
#ifdef _SDR_NOGRAFOBJ
#undef _SDR_NOGRAFOBJ
#define _SVDOGRAF_HXX
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index 28481eefaccf..ac26088950e1 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -17,50 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#define _BIGINT_HXX
-#define _CACHESTR_HXX
-#define _CONFIG_HXX
-#define _CURSOR_HXX
-#define _CTRLTOOL_HXX
-#define _MACRODLG_HXX
#define _OUTLINER_HXX
-#define _RULER_HXX
-#define _SCRWIN_HXX
-#define _STDCTRL_HXX
-#define _STDMENU_HXX
-#define _TABBAR_HXX
-#define _VALUESET_HXX
-
-#define _PASSWD_HXX
-
-#define _SFX_PRNMON_HXX
-#define _SFX_RESMGR_HXX
-#define _SFX_TEMPLDLG_HXX
-#define _SFXBASIC_HXX
-#define _SFXCTRLITEM
-#define _SFXMNUITEM_HXX
-#define _SFXMNUMGR_HXX
-#define _SFXMSGPOOL_HXX
-#define _SFX_MINFITEM_HXX
-#define _SFXOBJFACE_HXX
-#define _SFXSTBITEM_HXX
-#define _SFXTBXCTRL_HXX
-
-#define _SVTABBX_HXX
-#define _SVTREEBOX_HXX
-#define _SVTREELIST_HXX
-
-#define _SVX_HYPHEN_HXX
-#define _SVX_LAYCTRL_HXX
-#define _SVX_OPTSAVE_HXX
-#define _SVX_OPTPATH_HXX
-#define _SVX_OPTLINGU_HXX
-#define _SVX_RULER_HXX
-#define _SVX_RULRITEM_HXX
-#define _SVX_SELCTRL_HXX
-#define _SVX_SPLWRAP_HXX
-#define _SVX_STDDLG_HXX
-#define _SVX_THESDLG_HXX
#include "scitems.hxx"
#include <svx/svdetc.hxx>