From 2ce52cbb18e8083dc14c6701a2dab8ca32b81967 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Sun, 22 Apr 2012 05:07:37 +0900 Subject: removed unused defines --- cui/source/customize/macropg.cxx | 1 - cui/source/inc/iconcdlg.hxx | 1 - cui/source/options/cuisrchdlg.cxx | 2 -- cui/source/options/fontsubs.cxx | 4 ---- cui/source/options/optfltr.cxx | 3 --- cui/source/options/optgdlg.cxx | 4 ---- cui/source/options/optgdlg.hxx | 1 - cui/source/options/optinet2.hxx | 13 ------------- cui/source/options/optlingu.cxx | 5 ----- cui/source/options/optmemory.cxx | 2 -- cui/source/options/optmemory.hxx | 1 - cui/source/options/optpath.cxx | 1 - cui/source/tabpages/border.cxx | 2 -- cui/source/tabpages/macroass.cxx | 3 --- cui/source/tabpages/transfrm.cxx | 3 --- 15 files changed, 46 deletions(-) (limited to 'cui/source') diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index 94719ff6bec9..6e5a4ff1da6a 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -104,7 +104,6 @@ static long nTabs[] = #define ITMEID_ASSMACRO 2 -#define LB_EVENTS_ITEMPOS 1 #define LB_MACROS_ITEMPOS 2 diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx index 41bdf61884ad..ed7079d8a2fe 100644 --- a/cui/source/inc/iconcdlg.hxx +++ b/cui/source/inc/iconcdlg.hxx @@ -40,7 +40,6 @@ #include #define CTRLS_OFFSET 3 -#define BUTTON_DISTANCE 8 #define RET_USER 100 #define RET_USER_CANCEL 101 diff --git a/cui/source/options/cuisrchdlg.cxx b/cui/source/options/cuisrchdlg.cxx index 742223041dce..aba0b5ba288e 100644 --- a/cui/source/options/cuisrchdlg.cxx +++ b/cui/source/options/cuisrchdlg.cxx @@ -47,8 +47,6 @@ #include -#define ITEMID_SETITEM 0 - #include #include #include diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index 06462872f338..d59c5eeb3739 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -46,10 +46,6 @@ /* */ /*********************************************************************/ -#define CBCOL_FIRST 0 -#define CBCOL_SECOND 1 -#define CBCOL_BOTH 2 - SvxFontSubstTabPage::SvxFontSubstTabPage( Window* pParent, const SfxItemSet& rSet ) : SfxTabPage(pParent, CUI_RES(RID_SVX_FONT_SUBSTITUTION), rSet), diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx index 8a3edd6977f2..27c7347701f3 100644 --- a/cui/source/options/optfltr.cxx +++ b/cui/source/options/optfltr.cxx @@ -43,9 +43,6 @@ enum MSFltrPg2_CheckBoxEntries { InvalidCBEntry }; -#define CBCOL_FIRST 0 -#define CBCOL_SECOND 1 - // ----------------------------------------------------------------------- OfaMSFilterTabPage::OfaMSFilterTabPage(Window* pParent, const SfxItemSet& rSet) diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index aacdd564aa4e..ea17472c27f7 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -98,8 +98,6 @@ #include #include -#define CONFIG_LANGUAGES "OfficeLanguages" - using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; @@ -111,8 +109,6 @@ using ::rtl::OUString; #define C2U(cChar) OUString::createFromAscii(cChar) -#define MAX_PROGRAM_ENTRIES 3 - // class OfaMiscTabPage -------------------------------------------------- int OfaMiscTabPage::DeactivatePage( SfxItemSet* pSet_ ) diff --git a/cui/source/options/optgdlg.hxx b/cui/source/options/optgdlg.hxx index 817cf46622d2..e4c6672789d6 100644 --- a/cui/source/options/optgdlg.hxx +++ b/cui/source/options/optgdlg.hxx @@ -34,7 +34,6 @@ #include #include #include -#define FOLDERWEBVIEW_DEFAULTFILE "folder.so" // predeclarations class CanvasSettings; diff --git a/cui/source/options/optinet2.hxx b/cui/source/options/optinet2.hxx index 05550057c71b..ac0d42512ff8 100644 --- a/cui/source/options/optinet2.hxx +++ b/cui/source/options/optinet2.hxx @@ -47,12 +47,6 @@ class HeaderBar; class SfxFilter; -#ifndef SV_NODIALOG -#define PROXY_CONTROLS 23 -#define CACHE_CONTROLS 20 - -#define TYPE_CONTROLS 18 - namespace svx { class SecurityOptionsDialog; } @@ -228,13 +222,6 @@ public: }; -#endif - -#ifdef WNT -#else -#define HELPER_PAGE_COMPLETE -#endif - struct SvxEMailTabPage_Impl; class SvxEMailTabPage : public SfxTabPage { diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 7e2cb756d832..e433c44e11a9 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -90,7 +90,6 @@ using namespace ::com::sun::star::beans; namespace css = com::sun::star; #define C2U(cChar) OUString::createFromAscii(cChar) -#define SVX_MAX_USERDICTS 20 #define CBCOL_FIRST 0 #define CBCOL_SECOND 1 #define CBCOL_BOTH 2 @@ -1068,10 +1067,6 @@ void SvxLinguData_Impl::Reconfigure( const OUString &rDisplayName, sal_Bool bEna // class SvxLinguTabPage ------------------------------------------------- -#define CBCOL_FIRST 0 -#define CBCOL_SECOND 1 -#define CBCOL_BOTH 2 - SvxLinguTabPage::SvxLinguTabPage( Window* pParent, const SfxItemSet& rSet ): diff --git a/cui/source/options/optmemory.cxx b/cui/source/options/optmemory.cxx index 05b3211c2276..c247c30f0064 100644 --- a/cui/source/options/optmemory.cxx +++ b/cui/source/options/optmemory.cxx @@ -69,8 +69,6 @@ #include "helpid.hrc" #include -#define CONFIG_LANGUAGES "OfficeLanguages" - using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; diff --git a/cui/source/options/optmemory.hxx b/cui/source/options/optmemory.hxx index 65b9a1431006..60da400f44ce 100644 --- a/cui/source/options/optmemory.hxx +++ b/cui/source/options/optmemory.hxx @@ -34,7 +34,6 @@ #include #include #include -#define FOLDERWEBVIEW_DEFAULTFILE "folder.so" // class OfaMiscTabPage -------------------------------------------------- diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx index f1f4d863f868..63593c0d93ba 100644 --- a/cui/source/options/optpath.cxx +++ b/cui/source/options/optpath.cxx @@ -81,7 +81,6 @@ using namespace svx; #define POSTFIX_INTERNAL String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "_internal" ) ) #define POSTFIX_USER String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "_user" ) ) #define POSTFIX_WRITABLE String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "_writable" ) ) -#define POSTFIX_READONLY String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "_readonly" ) ) #define VAR_ONE String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "%1" ) ) #define IODLG_CONFIGNAME String(DEFINE_CONST_UNICODE("FilePicker_Save")) diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index f7c69dad02da..67bbeb9e0095 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -38,8 +38,6 @@ #include "border.hrc" #include "helpid.hrc" -#define LINESTYLE_HTML_MAX 5 - #include // XColorList #include #include diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index 6edbc68ea22b..e61b68748efd 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -117,14 +117,11 @@ static long nTabs[] = 0, 90 }; -#define TAB_WIDTH_MIN 10 - // IDs for items in HeaderBar of EventLB #define ITEMID_EVENT 1 #define ITMEID_ASSMACRO 2 -#define LB_EVENTS_ITEMPOS 1 #define LB_MACROS_ITEMPOS 2 String ConvertToUIName_Impl( SvxMacro *pMacro ) diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx index 46fe07e311e3..9f0712585fde 100644 --- a/cui/source/tabpages/transfrm.cxx +++ b/cui/source/tabpages/transfrm.cxx @@ -50,9 +50,6 @@ #include #include -// tolerance for WorkingArea -#define DIFF 1000 - // static ---------------------------------------------------------------- static sal_uInt16 pPosSizeRanges[] = -- cgit v1.2.3