diff options
author | Mathias Bauer <mba@openoffice.org> | 2009-10-18 15:05:21 +0200 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2009-10-18 15:05:21 +0200 |
commit | 2e0fdd05a782d1c6345d483c52a9a4e8717f4b93 (patch) | |
tree | ca46269aef4cd084eb1c51ecac3eac42a7bc9373 /xmloff/source | |
parent | f7c25671940f897e485fc6ca68a1708b66544f4b (diff) |
#i103496#: move some enums, defines and inlines from vcl to tools to get xmloff free of vcl stuff
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/xmlehelp.cxx | 77 | ||||
-rw-r--r-- | xmloff/source/core/xmluconv.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/shapeexport2.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/xexptran.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/elementexport.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/forms/formenums.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/layerimport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/EnumPropertyHdl.cxx | 14 | ||||
-rw-r--r-- | xmloff/source/style/XMLFontAutoStylePool.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/fonthdl.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/postuhdl.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/weighhdl.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmlnume.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumi.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtprhdl.cxx | 2 |
15 files changed, 13 insertions, 105 deletions
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> |