summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-26 10:18:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-27 09:36:53 +0100
commitaa753f01ba4631614bb88ee7d3a3e6b222208b3e (patch)
treec8b168e8e0619c387d30f206848ec30ca7238a00 /reportdesign
parent2ea2860ba56231d989c5e1b8f87392921bc2a8db (diff)
-Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx8
-rw-r--r--reportdesign/source/core/sdr/ModuleHelper.cxx1
-rw-r--r--reportdesign/source/core/sdr/RptModel.cxx4
-rw-r--r--reportdesign/source/filter/xml/xmlHelper.cxx4
-rw-r--r--reportdesign/source/ui/dlg/Condition.cxx2
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx9
-rw-r--r--reportdesign/source/ui/inspection/metadata.cxx9
-rw-r--r--reportdesign/source/ui/misc/toolboxcontroller.cxx3
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx11
9 files changed, 2 insertions, 49 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index 6c923518e435..c6dc7eef15e4 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -126,7 +126,6 @@
#define MAP_LEN(x) x, sizeof(x) - 1
#define MAP_CHAR_LEN(x) ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(x))
// page styles
-#define SC_UNO_PAGE_GRAPHICFILT "BackGraphicFilter"
#define SC_UNO_PAGE_LEFTBORDER "LeftBorder"
#define SC_UNO_PAGE_RIGHTBORDER "RightBorder"
#define SC_UNO_PAGE_BOTTBORDER "BottomBorder"
@@ -142,13 +141,6 @@
#define SC_UNO_PAGE_SCALETOPAG "ScaleToPages"
#define SC_UNO_PAGE_SCALETOX "ScaleToPagesX"
#define SC_UNO_PAGE_SCALETOY "ScaleToPagesY"
-#define SC_UNO_PAGE_FIRSTPAGE "FirstPageNumber"
-#define SC_UNO_PAGE_LEFTHDRCONT "LeftPageHeaderContent"
-#define SC_UNO_PAGE_LEFTFTRCONT "LeftPageFooterContent"
-#define SC_UNO_PAGE_RIGHTHDRCON "RightPageHeaderContent"
-#define SC_UNO_PAGE_RIGHTFTRCON "RightPageFooterContent"
-#define SC_UNO_PAGE_PRINTFORMUL "PrintFormulas"
-#define SC_UNO_PAGE_PRINTZERO "PrintZeroValues"
#define SC_UNO_PAGE_HDRBACKCOL "HeaderBackColor"
#define SC_UNO_PAGE_HDRBACKTRAN "HeaderBackTransparent"
#define SC_UNO_PAGE_HDRGRFFILT "HeaderBackGraphicFilter"
diff --git a/reportdesign/source/core/sdr/ModuleHelper.cxx b/reportdesign/source/core/sdr/ModuleHelper.cxx
index aa117162f885..375722dc0851 100644
--- a/reportdesign/source/core/sdr/ModuleHelper.cxx
+++ b/reportdesign/source/core/sdr/ModuleHelper.cxx
@@ -28,7 +28,6 @@
#include <tools/debug.hxx>
#include <svl/solar.hrc>
-#define EXPAND_PROTOCOL "vnd.sun.star.expand:"
#define ENTER_MOD_METHOD() \
::osl::MutexGuard aGuard(theOModuleMutex::get()); \
ensureImpl()
diff --git a/reportdesign/source/core/sdr/RptModel.cxx b/reportdesign/source/core/sdr/RptModel.cxx
index 98cba0dc2d45..6908639f648a 100644
--- a/reportdesign/source/core/sdr/RptModel.cxx
+++ b/reportdesign/source/core/sdr/RptModel.cxx
@@ -27,10 +27,6 @@
#include "UndoEnv.hxx"
#include "ReportUndoFactory.hxx"
#include "ReportDefinition.hxx"
-#define ITEMID_COLOR 1
-#define ITEMID_BRUSH 2
-#define ITEMID_FONT 3
-#define ITEMID_FONTHEIGHT 4
#include <svx/tbcontrl.hxx>
#include "rptui_slotid.hrc"
diff --git a/reportdesign/source/filter/xml/xmlHelper.cxx b/reportdesign/source/filter/xml/xmlHelper.cxx
index efced521fd80..1aec99ae2cb6 100644
--- a/reportdesign/source/filter/xml/xmlHelper.cxx
+++ b/reportdesign/source/filter/xml/xmlHelper.cxx
@@ -104,13 +104,9 @@ const XMLPropertyHandler* OPropertyHandlerFactory::GetPropertyHandler(sal_Int32
return pHandler;
}
// -----------------------------------------------------------------------------
-#define MAP_CONST( name, prefix, token, type, context ) { name.ascii, name.length, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_TEXT, context, SvtSaveOptions::ODFVER_010 }
#define MAP_CONST_T( name, prefix, token, type, context ) { name.ascii, name.length, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_TABLE, context, SvtSaveOptions::ODFVER_010 }
-#define MAP_CONST_ASCII_T( name, prefix, token, type, context ) { name, sizeof(name)-1,XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_TABLE, context, SvtSaveOptions::ODFVER_010 }
#define MAP_CONST_P( name, prefix, token, type, context ) { name.ascii, name.length, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_PARAGRAPH, context, SvtSaveOptions::ODFVER_010 }
#define MAP_CONST_S( name, prefix, token, type, context ) { name, sizeof(name)-1, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_SECTION, context, SvtSaveOptions::ODFVER_010 }
-#define MAP_CONST_ASCII( name, prefix, token, type, context ) { name, sizeof(name)-1, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_TEXT, context, SvtSaveOptions::ODFVER_010 }
-#define GMAP( name, prefix, token, type, context ) { name.ascii, name.length, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_GRAPHIC, context, SvtSaveOptions::ODFVER_010 }
#define MAP_CONST_C_ASCII( name, prefix, token, type, context ) { name, sizeof(name)-1, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_TABLE_CELL, context, SvtSaveOptions::ODFVER_010 }
#define MAP_CONST_C( name, prefix, token, type, context ) { name.ascii, name.length, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_TABLE_CELL, context, SvtSaveOptions::ODFVER_010 }
#define MAP_END() { NULL, 0, 0, XML_TOKEN_INVALID, 0 ,0, SvtSaveOptions::ODFVER_010}
diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx
index 61a6f1741257..2d6ad039369a 100644
--- a/reportdesign/source/ui/dlg/Condition.cxx
+++ b/reportdesign/source/ui/dlg/Condition.cxx
@@ -35,8 +35,6 @@
#include <com/sun/star/awt/FontDescriptor.hpp>
#include <com/sun/star/ui/ImageType.hpp>
-#define ITEMID_COLOR
-#define ITEMID_BRUSH
#include <svx/tbcontrl.hxx>
#include <svx/svxids.hrc>
#include <svx/xtable.hxx>
diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index 6a3bdca05eee..e1d18fd0af77 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -76,10 +76,6 @@
#include "metadata.hxx"
#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
-
-#define ITEMID_COLOR_TABLE SID_COLOR_TABLE
-#define ITEMID_DASH_LIST SID_DASH_LIST
-#define ITEMID_LINEEND_LIST SID_LINEEND_LIST
#include <svx/xdef.hxx>
#include <svx/xpool.hxx>
#include <svx/xtable.hxx>
@@ -95,12 +91,7 @@
#include <svx/xlndsit.hxx>
#include <svx/xlineit0.hxx>
#include <svx/svxids.hrc>
-
-#define ITEMID_COLOR_TABLE SID_COLOR_TABLE
-#define ITEMID_DASH_LIST SID_DASH_LIST
-#define ITEMID_LINEEND_LIST SID_LINEEND_LIST
#include <svx/drawitem.hxx>
-#define ITEMID_BRUSH SID_ATTR_BRUSH
#include <editeng/brushitem.hxx>
#include <sfx2/docfilt.hxx>
diff --git a/reportdesign/source/ui/inspection/metadata.cxx b/reportdesign/source/ui/inspection/metadata.cxx
index 783cdb04c665..d9f12f309b65 100644
--- a/reportdesign/source/ui/inspection/metadata.cxx
+++ b/reportdesign/source/ui/inspection/metadata.cxx
@@ -88,15 +88,6 @@ namespace rptui
#define DEF_INFO_2( ident, uinameres, helpid, flag1, flag2 ) \
DEF_INFO( ident, uinameres, helpid, PROP_FLAG_##flag1 | PROP_FLAG_##flag2 )
-#define DEF_INFO_3( ident, uinameres, helpid, flag1, flag2, flag3 ) \
- DEF_INFO( ident, uinameres, helpid, PROP_FLAG_##flag1 | PROP_FLAG_##flag2 | PROP_FLAG_##flag3 )
-
-#define DEF_INFO_4( ident, uinameres, helpid, flag1, flag2, flag3, flag4 ) \
- DEF_INFO( ident, uinameres, helpid, PROP_FLAG_##flag1 | PROP_FLAG_##flag2 | PROP_FLAG_##flag3 | PROP_FLAG_##flag4 )
-
-#define DEF_INFO_5( ident, uinameres, helpid, flag1, flag2, flag3, flag4, flag5 ) \
- DEF_INFO( ident, uinameres, helpid, PROP_FLAG_##flag1 | PROP_FLAG_##flag2 | PROP_FLAG_##flag3 | PROP_FLAG_##flag4 | PROP_FLAG_##flag5 )
-
sal_uInt16 OPropertyInfoService::s_nCount = 0;
OPropertyInfoImpl* OPropertyInfoService::s_pPropertyInfos = NULL;
//------------------------------------------------------------------------
diff --git a/reportdesign/source/ui/misc/toolboxcontroller.cxx b/reportdesign/source/ui/misc/toolboxcontroller.cxx
index 36b143b0182b..598d0db94ba3 100644
--- a/reportdesign/source/ui/misc/toolboxcontroller.cxx
+++ b/reportdesign/source/ui/misc/toolboxcontroller.cxx
@@ -34,10 +34,7 @@
#include <svtools/menuoptions.hxx>
#include <osl/mutex.hxx>
#include <svx/svxids.hrc>
-#define ITEMID_COLOR 1
-#define ITEMID_BRUSH 2
#define ITEMID_FONT 3
-#define ITEMID_FONTHEIGHT 4
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <svx/tbcontrl.hxx>
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 3f6f77262ca4..360967886093 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -27,13 +27,6 @@
#define RPTUI_ID_BRUSH 8
#define RPTUI_ID_METRIC 9
-#define ITEMID_LRSPACE RPTUI_ID_LRSPACE
-#define ITEMID_ULSPACE RPTUI_ID_ULSPACE
-#define ITEMID_SIZE RPTUI_ID_SIZE
-#define ITEMID_PAGE RPTUI_ID_PAGE
-#define ITEMID_BRUSH RPTUI_ID_BRUSH
-
-
#include "ReportController.hxx"
#include "ReportDefinition.hxx"
#include "CondFormat.hxx"
@@ -2402,7 +2395,7 @@ void OReportController::openPageDialog(const uno::Reference<report::XSection>& _
new SfxAllEnumItem(RPTUI_ID_PAGE_MODE,SVX_PAGE_MODE_STANDARD),
new SfxAllEnumItem(RPTUI_ID_START,PAPER_A4),
new SfxAllEnumItem(RPTUI_ID_END,PAPER_E),
- new SvxBrushItem(ITEMID_BRUSH),
+ new SvxBrushItem(RPTUI_ID_BRUSH),
new SfxUInt16Item(RPTUI_ID_METRIC,static_cast<sal_uInt16>(eUserMetric))
};
@@ -2423,7 +2416,7 @@ void OReportController::openPageDialog(const uno::Reference<report::XSection>& _
SAL_WNODEPRECATED_DECLARATIONS_POP
// fill it
if ( _xSection.is() )
- pDescriptor->Put(SvxBrushItem(::Color(_xSection->getBackColor()),ITEMID_BRUSH));
+ pDescriptor->Put(SvxBrushItem(::Color(_xSection->getBackColor()),RPTUI_ID_BRUSH));
else
{
pDescriptor->Put(SvxSizeItem(RPTUI_ID_SIZE,VCLSize(getStyleProperty<awt::Size>(m_xReportDefinition,PROPERTY_PAPERSIZE))));