summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2009-10-18 15:05:21 +0200
committerMathias Bauer <mba@openoffice.org>2009-10-18 15:05:21 +0200
commit2e0fdd05a782d1c6345d483c52a9a4e8717f4b93 (patch)
treeca46269aef4cd084eb1c51ecac3eac42a7bc9373 /xmloff
parentf7c25671940f897e485fc6ca68a1708b66544f4b (diff)
#i103496#: move some enums, defines and inlines from vcl to tools to get xmloff free of vcl stuff
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/VisAreaContext.hxx2
-rw-r--r--xmloff/inc/VisAreaExport.hxx2
-rw-r--r--xmloff/inc/pch/precompiled_xmloff.hxx4
-rw-r--r--xmloff/inc/xexptran.hxx2
-rw-r--r--xmloff/inc/xmlehelp.hxx2
-rw-r--r--xmloff/inc/xmloff/styleexp.hxx2
-rw-r--r--xmloff/inc/xmloff/xmlexp.hxx2
-rw-r--r--xmloff/inc/xmloff/xmlnume.hxx2
-rw-r--r--xmloff/inc/xmloff/xmluconv.hxx2
-rw-r--r--xmloff/source/core/xmlehelp.cxx77
-rw-r--r--xmloff/source/core/xmluconv.cxx2
-rw-r--r--xmloff/source/draw/shapeexport2.cxx2
-rw-r--r--xmloff/source/draw/xexptran.cxx2
-rw-r--r--xmloff/source/forms/elementexport.cxx3
-rw-r--r--xmloff/source/forms/formenums.cxx2
-rw-r--r--xmloff/source/forms/layerimport.cxx2
-rw-r--r--xmloff/source/style/EnumPropertyHdl.cxx14
-rw-r--r--xmloff/source/style/XMLFontAutoStylePool.cxx2
-rw-r--r--xmloff/source/style/fonthdl.cxx2
-rw-r--r--xmloff/source/style/postuhdl.cxx2
-rw-r--r--xmloff/source/style/weighhdl.cxx2
-rw-r--r--xmloff/source/style/xmlnume.cxx2
-rw-r--r--xmloff/source/style/xmlnumi.cxx2
-rw-r--r--xmloff/source/text/txtprhdl.cxx2
24 files changed, 23 insertions, 115 deletions
diff --git a/xmloff/inc/VisAreaContext.hxx b/xmloff/inc/VisAreaContext.hxx
index ddfff6716772..7a99c4240395 100644
--- a/xmloff/inc/VisAreaContext.hxx
+++ b/xmloff/inc/VisAreaContext.hxx
@@ -32,7 +32,7 @@
#define _XMLOFF_VISAREACONTEXT_HXX
#include <xmloff/xmlictxt.hxx>
-#include <vcl/mapunit.hxx>
+#include <tools/mapunit.hxx>
class Rectangle;
diff --git a/xmloff/inc/VisAreaExport.hxx b/xmloff/inc/VisAreaExport.hxx
index e49b09801257..e2ce09472607 100644
--- a/xmloff/inc/VisAreaExport.hxx
+++ b/xmloff/inc/VisAreaExport.hxx
@@ -31,7 +31,7 @@
#ifndef _XMLOFF_VISAREAEXPORT_HXX
#define _XMLOFF_VISAREAEXPORT_HXX
-#include <vcl/mapunit.hxx>
+#include <tools/mapunit.hxx>
#include <sal/types.h>
class SvXMLExport;
diff --git a/xmloff/inc/pch/precompiled_xmloff.hxx b/xmloff/inc/pch/precompiled_xmloff.hxx
index 1346445acacc..677b30bde2ef 100644
--- a/xmloff/inc/pch/precompiled_xmloff.hxx
+++ b/xmloff/inc/pch/precompiled_xmloff.hxx
@@ -469,9 +469,9 @@
#include "unotools/processfactory.hxx"
#include "unotools/streamwrap.hxx"
-#include "vcl/fldunit.hxx"
+#include "tools/fldunit.hxx"
#include "vcl/fontcvt.hxx"
-#include "vcl/mapunit.hxx"
+#include "tools/mapunit.hxx"
#include "vos/mutex.hxx"
#include "vos/ref.hxx"
diff --git a/xmloff/inc/xexptran.hxx b/xmloff/inc/xexptran.hxx
index 10b89e6291b3..39529a04c88d 100644
--- a/xmloff/inc/xexptran.hxx
+++ b/xmloff/inc/xexptran.hxx
@@ -38,7 +38,7 @@
#include <com/sun/star/drawing/FlagSequenceSequence.hpp>
#include <com/sun/star/drawing/FlagSequence.hpp>
#include <com/sun/star/drawing/HomogenMatrix.hpp>
-#include <vcl/mapunit.hxx>
+#include <tools/mapunit.hxx>
#include <vector>
diff --git a/xmloff/inc/xmlehelp.hxx b/xmloff/inc/xmlehelp.hxx
index d5ffaafed3dc..bdf0fad3be3e 100644
--- a/xmloff/inc/xmlehelp.hxx
+++ b/xmloff/inc/xmlehelp.hxx
@@ -31,7 +31,7 @@
#ifndef _XMLOFF_XMLEHELP_HXX
#define _XMLOFF_XMLEHELP_HXX
-#include <vcl/mapunit.hxx>
+#include <tools/mapunit.hxx>
namespace rtl { class OUStringBuffer; }
diff --git a/xmloff/inc/xmloff/styleexp.hxx b/xmloff/inc/xmloff/styleexp.hxx
index e18547c62688..a11b24857b46 100644
--- a/xmloff/inc/xmloff/styleexp.hxx
+++ b/xmloff/inc/xmloff/styleexp.hxx
@@ -36,7 +36,7 @@
#include <com/sun/star/uno/Reference.h>
#ifndef _VCL_MAPUNIT_HXX
-//#include <vcl/mapunit.hxx>
+//#include <tools/mapunit.hxx>
#endif
#include <xmloff/uniref.hxx>
diff --git a/xmloff/inc/xmloff/xmlexp.hxx b/xmloff/inc/xmloff/xmlexp.hxx
index f8aeac6b3b6a..2133a108da78 100644
--- a/xmloff/inc/xmloff/xmlexp.hxx
+++ b/xmloff/inc/xmloff/xmlexp.hxx
@@ -45,7 +45,7 @@
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <rtl/ustring.hxx>
-#include <vcl/mapunit.hxx>
+#include <tools/mapunit.hxx>
#include <xmloff/txtparae.hxx>
#include <xmloff/formlayerexport.hxx>
#include <xmloff/xmlnumfe.hxx>
diff --git a/xmloff/inc/xmloff/xmlnume.hxx b/xmloff/inc/xmloff/xmlnume.hxx
index 498ad92813fe..7543cddb0bce 100644
--- a/xmloff/inc/xmloff/xmlnume.hxx
+++ b/xmloff/inc/xmloff/xmlnume.hxx
@@ -32,7 +32,7 @@
#define _XMLOFF_XMLNUME_HXX
#include <rtl/ustring.hxx>
-#include <vcl/mapunit.hxx>
+#include <tools/mapunit.hxx>
#include <xmloff/XMLStringVector.hxx>
#include <xmloff/attrlist.hxx>
diff --git a/xmloff/inc/xmloff/xmluconv.hxx b/xmloff/inc/xmloff/xmluconv.hxx
index f71741f8a51b..607a0771e291 100644
--- a/xmloff/inc/xmloff/xmluconv.hxx
+++ b/xmloff/inc/xmloff/xmluconv.hxx
@@ -38,7 +38,7 @@
#include <limits.h>
#include <tools/solar.h>
#include <tools/color.hxx>
-#include <vcl/mapunit.hxx>
+#include <tools/mapunit.hxx>
#include <xmloff/xmlement.hxx>
#include <xmloff/xmltoken.hxx>
#include <com/sun/star/util/Date.hpp>
diff --git a/xmloff/source/core/xmlehelp.cxx b/xmloff/source/core/xmlehelp.cxx
index 9aed5000913d..12397a621bc0 100644
--- a/xmloff/source/core/xmlehelp.cxx
+++ b/xmloff/source/core/xmlehelp.cxx
@@ -34,7 +34,6 @@
#include <tools/debug.hxx>
#include <tools/bigint.hxx>
#include <rtl/ustrbuf.hxx>
-#include <vcl/outdev.hxx>
#include "xmlehelp.hxx"
#ifndef _XMLOFF_XMTOKEN_HXX
@@ -228,82 +227,6 @@ void SvXMLExportHelper::AddLength( sal_Int32 nValue, MapUnit eValueUnit,
if( eUnit != XML_TOKEN_INVALID )
rOut.append( GetXMLToken(eUnit) );
-#if 0
- enum XMLTokenEnum eUnit;
- sal_Int32 nFac = 1;
- switch( eOutUnit )
- {
- case MAP_100TH_MM:
- nFac *= 10L;
- case MAP_10TH_MM:
- nFac *= 10L;
- eOutUnit = MAP_MM;
- case MAP_MM:
- // 0.01mm
- nFac *= 100L;
- eUnit = XML_UNIT_MM;
- break;
-
- case MAP_CM:
-#ifdef EXACT_VALUES
- // 0.001cm
- nFac *= 1000L;
-#else
- // 0.01cm
- nFac *= 100L;
-#endif
- eUnit = XML_UNIT_CM;
- break;
-
- case MAP_TWIP:
- case MAP_POINT:
-#ifdef EXACT_VALUES
- // 0.01pt
- nFac *= 100L;
-#else
- // 0.1pt
- nFac *= 10L;
-#endif
- eUnit = XML_UNIT_PT;
- break;
-
- case MAP_1000TH_INCH:
- nFac *= 10L;
- case MAP_100TH_INCH:
- nFac *= 10L;
- case MAP_10TH_INCH:
- nFac *= 10L;
- case MAP_INCH:
- default:
- eOutUnit = MAP_INCH;
-#ifdef EXACT_VALUES
- // 0.0001in
- nFac *= 10000L;
-#else
- // 0.01in
- nFac *= 100L;
-#endif
- eUnit = XML_UNIT_INCH;
- break;
- }
-
- if( eValueUnit != eOutUnit )
- nValue = OutputDevice::LogicToLogic( nValue, eValueUnit, eOutUnit );
-
- rOut.append( nValue / nFac );
- if( nFac > 1 && (nValue % nFac) != 0 )
- {
- rOut.append( sal_Unicode('.') );
- while( nFac > 1 && (nValue % nFac) != 0 )
- {
- nFac /= 10L;
- rOut.append( (nValue / nFac) % 10L );
- }
- }
-
- rOut.append( GetXMLToken(eUnit) );
-#endif
-
}
void SvXMLExportHelper::AddPercentage( sal_Int32 nValue, OUStringBuffer& rOut )
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx
index 9d1218b876a9..21e03cdaf0e8 100644
--- a/xmloff/source/core/xmluconv.cxx
+++ b/xmloff/source/core/xmluconv.cxx
@@ -50,7 +50,7 @@
#endif
#include <tools/time.hxx>
-#include <vcl/fldunit.hxx>
+#include <tools/fldunit.hxx>
// #110680#
//#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
diff --git a/xmloff/source/draw/shapeexport2.cxx b/xmloff/source/draw/shapeexport2.cxx
index b2e81d333fba..e09ad66dfeb9 100644
--- a/xmloff/source/draw/shapeexport2.cxx
+++ b/xmloff/source/draw/shapeexport2.cxx
@@ -55,7 +55,7 @@
#include <xmloff/xmluconv.hxx>
#include "XMLImageMapExport.hxx"
#include "xexptran.hxx"
-#include <vcl/salbtype.hxx> // FRound
+#include <tools/gen.hxx> // FRound
#include <xmloff/xmltoken.hxx>
#include <xmloff/nmspmap.hxx>
diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx
index 12053fb2fbb2..d48f2430d264 100644
--- a/xmloff/source/draw/xexptran.cxx
+++ b/xmloff/source/draw/xexptran.cxx
@@ -34,7 +34,7 @@
#include <tools/debug.hxx>
#include <rtl/ustrbuf.hxx>
#include <xmloff/xmluconv.hxx>
-#include <vcl/salbtype.hxx>
+#include <tools/gen.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/tuple/b3dtuple.hxx>
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx
index d3dc170e58d5..a17138654730 100644
--- a/xmloff/source/forms/elementexport.cxx
+++ b/xmloff/source/forms/elementexport.cxx
@@ -58,14 +58,13 @@
#include <com/sun/star/awt/ImagePosition.hpp>
/** === end UNO includes === **/
-#include <vcl/wintypes.hxx> // for check states
+#include <tools/wintypes.hxx> // for check states
#include <xmloff/txtprmap.hxx>
#include <com/sun/star/form/binding/XBindableValue.hpp>
#include <com/sun/star/form/binding/XListEntrySink.hpp>
#include <tools/urlobj.hxx>
#include <xmloff/xmlexp.hxx>
#include <xmloff/nmspmap.hxx>
-#include <vcl/wintypes.hxx> // for check states
#include <xmloff/XMLEventExport.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmltoken.hxx>
diff --git a/xmloff/source/forms/formenums.cxx b/xmloff/source/forms/formenums.cxx
index d34fe30485a5..c9e2d7321a36 100644
--- a/xmloff/source/forms/formenums.cxx
+++ b/xmloff/source/forms/formenums.cxx
@@ -46,7 +46,7 @@
#include <com/sun/star/awt/ScrollBarOrientation.hpp>
#include <com/sun/star/awt/VisualEffect.hpp>
#include <com/sun/star/awt/ImageScaleMode.hpp>
-#include <vcl/wintypes.hxx> // for check states
+#include <tools/wintypes.hxx> // for check states
#include <xmloff/xmltoken.hxx>
//.........................................................................
diff --git a/xmloff/source/forms/layerimport.cxx b/xmloff/source/forms/layerimport.cxx
index 1cff242fca69..9172686511bf 100644
--- a/xmloff/source/forms/layerimport.cxx
+++ b/xmloff/source/forms/layerimport.cxx
@@ -55,7 +55,7 @@
#include <com/sun/star/awt/ScrollBarOrientation.hpp>
#include <com/sun/star/awt/VisualEffect.hpp>
#include <com/sun/star/form/ListSourceType.hpp>
-#include <vcl/wintypes.hxx> // for check states
+#include <tools/wintypes.hxx> // for check states
#include <com/sun/star/lang/Locale.hpp>
#include <xmloff/controlpropertyhdl.hxx>
#include "controlpropertymap.hxx"
diff --git a/xmloff/source/style/EnumPropertyHdl.cxx b/xmloff/source/style/EnumPropertyHdl.cxx
index d3c601cb37c2..9854f99d39e1 100644
--- a/xmloff/source/style/EnumPropertyHdl.cxx
+++ b/xmloff/source/style/EnumPropertyHdl.cxx
@@ -36,20 +36,6 @@
#include <comphelper/extract.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
-
-/*
-#include <vcl/vclenum.hxx>
-#include <tools/solar.h>
-
-#ifndef _INC_LIMITS
-#include <limits.h>
-#endif
-
-
-#ifndef _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
-#include <toolkit/unohlp.hxx>
-#endif
-*/
#include <com/sun/star/uno/Any.hxx>
using ::rtl::OUString;
diff --git a/xmloff/source/style/XMLFontAutoStylePool.cxx b/xmloff/source/style/XMLFontAutoStylePool.cxx
index e823b13c474c..a5c662ef33a7 100644
--- a/xmloff/source/style/XMLFontAutoStylePool.cxx
+++ b/xmloff/source/style/XMLFontAutoStylePool.cxx
@@ -32,7 +32,7 @@
#include "precompiled_xmloff.hxx"
#include <tools/debug.hxx>
#include <svl/cntnrsrt.hxx>
-#include <vcl/vclenum.hxx>
+#include <tools/fontenum.hxx>
#include "xmlnmspe.hxx"
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmluconv.hxx>
diff --git a/xmloff/source/style/fonthdl.cxx b/xmloff/source/style/fonthdl.cxx
index 010544766e77..acfc846883e7 100644
--- a/xmloff/source/style/fonthdl.cxx
+++ b/xmloff/source/style/fonthdl.cxx
@@ -38,7 +38,7 @@
#include <xmloff/xmluconv.hxx>
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/uno/Any.hxx>
-#include <vcl/vclenum.hxx>
+#include <tools/fontenum.hxx>
#ifndef _XMLOFF_XMLEMENT_HXX
#include <xmloff/xmlelement.hxx>
diff --git a/xmloff/source/style/postuhdl.cxx b/xmloff/source/style/postuhdl.cxx
index 6c5365b72f73..9f22f6d914ac 100644
--- a/xmloff/source/style/postuhdl.cxx
+++ b/xmloff/source/style/postuhdl.cxx
@@ -36,7 +36,7 @@
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/awt/FontSlant.hpp>
-#include <vcl/vclenum.hxx>
+#include <tools/fontenum.hxx>
#ifndef _XMLOFF_XMLEMENT_HXX
#include <xmloff/xmlelement.hxx>
diff --git a/xmloff/source/style/weighhdl.cxx b/xmloff/source/style/weighhdl.cxx
index 61c6b2a8e183..fa63df061ced 100644
--- a/xmloff/source/style/weighhdl.cxx
+++ b/xmloff/source/style/weighhdl.cxx
@@ -33,7 +33,7 @@
#include <weighhdl.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmluconv.hxx>
-#include <vcl/vclenum.hxx>
+#include <tools/fontenum.hxx>
#include <tools/solar.h>
#ifndef _INC_LIMITS
diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx
index 2fd2565ef91a..7233c0f7da8f 100644
--- a/xmloff/source/style/xmlnume.cxx
+++ b/xmloff/source/style/xmlnume.cxx
@@ -58,7 +58,7 @@
#include "XMLTextListAutoStylePool.hxx"
#include <xmloff/xmlnume.hxx>
#include <xmloff/xmlexp.hxx>
-#include <vcl/vclenum.hxx>
+#include <tools/fontenum.hxx>
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx
index 1fcbe0024193..66f10e7274c6 100644
--- a/xmloff/source/style/xmlnumi.cxx
+++ b/xmloff/source/style/xmlnumi.cxx
@@ -33,7 +33,7 @@
#include <rtl/ustrbuf.hxx>
#include <tools/urlobj.hxx>
#include <tools/debug.hxx>
-#include <vcl/vclenum.hxx>
+#include <tools/fontenum.hxx>
#include <xmloff/xmltkmap.hxx>
#include <xmloff/nmspmap.hxx>
diff --git a/xmloff/source/text/txtprhdl.cxx b/xmloff/source/text/txtprhdl.cxx
index 61d61714cfb9..b382f71db2f1 100644
--- a/xmloff/source/text/txtprhdl.cxx
+++ b/xmloff/source/text/txtprhdl.cxx
@@ -32,7 +32,7 @@
#include "precompiled_xmloff.hxx"
#include <tools/debug.hxx>
#include <rtl/ustrbuf.hxx>
-#include <vcl/vclenum.hxx>
+#include <tools/fontenum.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/style/DropCapFormat.hpp>
#include <com/sun/star/text/FontRelief.hpp>