summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-07-02 17:44:14 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-12-10 14:46:46 +0100
commitf2d96655e0d78acefe6fe4707f09abec79243856 (patch)
tree70966bced759e5b8b02580062b3fe353e35ca620 /xmloff
parent022712c56a985cb78f0eac0e74a5b618f68eb379 (diff)
use PCH for LO headers in xmloff too
Interestingly this makes it slower with Clang than less headers. Change-Id: Ia28d27ca9c8154c907dae1629ca893fc4765f075
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/pch/precompiled_xmloff.hxx25
-rw-r--r--xmloff/source/forms/controlpropertyhdl.cxx8
-rw-r--r--xmloff/source/forms/formenums.cxx10
3 files changed, 23 insertions, 20 deletions
diff --git a/xmloff/inc/pch/precompiled_xmloff.hxx b/xmloff/inc/pch/precompiled_xmloff.hxx
index 7546a34496db..d3d32efa0a66 100644
--- a/xmloff/inc/pch/precompiled_xmloff.hxx
+++ b/xmloff/inc/pch/precompiled_xmloff.hxx
@@ -52,6 +52,7 @@
#ifndef PRECOMPILED_XMLOFF_HXX
#define PRECOMPILED_XMLOFF_HXX
+#if 1
//---MARKER---
#include "sal/config.h"
#include "sal/types.h"
@@ -493,7 +494,7 @@
#include "xmloff/dllapi.h"
//---MARKER---
-#if 0
+#if 1
#include "basegfx/basegfxdllapi.h"
#include "basegfx/matrix/b2dhommatrix.hxx"
@@ -576,9 +577,9 @@
#include "com/sun/star/uno/Type.hxx"
#include "comphelper/comphelperdllapi.h"
#include "comphelper/componentcontext.hxx"
-#include "comphelper/configuration.hxx"
+//#include "comphelper/configuration.hxx"
#include "comphelper/documentconstants.hxx"
-#include "comphelper/extract.hxx"
+//#include "comphelper/extract.hxx"
#include "comphelper/genericpropertyset.hxx"
#include "comphelper/InlineContainer.hxx"
#include "comphelper/mediadescriptor.hxx"
@@ -587,7 +588,7 @@
#include "comphelper/processfactory.hxx"
#include "comphelper/sequence.hxx"
#include "comphelper/sequenceashashmap.hxx"
-#include "comphelper/sequenceasvector.hxx"
+//#include "comphelper/sequenceasvector.hxx"
#include "comphelper/servicehelper.hxx"
#include "comphelper/stl_types.hxx"
#include "comphelper/stlunosequence.hxx"
@@ -848,7 +849,7 @@
#include "offapi/com/sun/star/frame/XStorable.hpp"
#include "offapi/com/sun/star/geometry/RealPoint2D.hpp"
#include "offapi/com/sun/star/geometry/RealSize2D.hpp"
-#include "offapi/com/sun/star/graphic/GraphicProvider.hpp"
+//#include "offapi/com/sun/star/graphic/GraphicProvider.hpp"
#include "offapi/com/sun/star/graphic/XGraphic.hpp"
#include "offapi/com/sun/star/graphic/XGraphicProvider.hpp"
#include "offapi/com/sun/star/i18n/Boundary.hpp"
@@ -913,7 +914,7 @@
#include "offapi/com/sun/star/rdf/QueryException.hpp"
#include "offapi/com/sun/star/rdf/RepositoryException.hpp"
#include "offapi/com/sun/star/rdf/Statement.hpp"
-#include "offapi/com/sun/star/rdf/URI.hpp"
+//#include "offapi/com/sun/star/rdf/URI.hpp"
#include "offapi/com/sun/star/rdf/URIs.hpp"
#include "offapi/com/sun/star/rdf/XBlankNode.hpp"
#include "offapi/com/sun/star/rdf/XDocumentMetadataAccess.hpp"
@@ -996,7 +997,7 @@
#include "offapi/com/sun/star/text/BibliographyDataType.hpp"
#include "offapi/com/sun/star/text/ChapterFormat.hpp"
#include "offapi/com/sun/star/text/ControlCharacter.hpp"
-#include "offapi/com/sun/star/text/DefaultNumberingProvider.hpp"
+//#include "offapi/com/sun/star/text/DefaultNumberingProvider.hpp"
#include "offapi/com/sun/star/text/FilenameDisplayFormat.hpp"
#include "offapi/com/sun/star/text/FontEmphasis.hpp"
#include "offapi/com/sun/star/text/FontRelief.hpp"
@@ -1066,7 +1067,7 @@
#include "offapi/com/sun/star/util/Duration.hpp"
#include "offapi/com/sun/star/util/MeasureUnit.hpp"
#include "offapi/com/sun/star/util/NumberFormat.hpp"
-#include "offapi/com/sun/star/util/PathSubstitution.hpp"
+//#include "offapi/com/sun/star/util/PathSubstitution.hpp"
#include "offapi/com/sun/star/util/RevisionTag.hpp"
#include "offapi/com/sun/star/util/Time.hpp"
#include "offapi/com/sun/star/util/XCloneable.hpp"
@@ -1115,7 +1116,7 @@
#include "offapi/com/sun/star/xsd/DataTypeClass.hpp"
#include "offapi/com/sun/star/xsd/WhiteSpaceTreatment.hpp"
#include "offapi/com/sun/star/xsd/XDataType.hpp"
-#include "officecfg/Office/Common.hxx"
+//#include "officecfg/Office/Common.hxx"
#include "osl/diagnose.h"
#include "osl/interlck.h"
#include "osl/mutex.hxx"
@@ -1143,7 +1144,7 @@
#include "sal/types.h"
#include "salhelper/simplereferenceobject.hxx"
#include "sax/saxdllapi.h"
-#include "sax/tools/converter.hxx"
+//#include "sax/tools/converter.hxx"
#include "sot/clsids.hxx"
#include "svl/cntnrsrt.hxx"
#include "svl/itemset.hxx"
@@ -1251,7 +1252,7 @@
#include "udkapi/com/sun/star/uno/TypeClass.hpp"
#include "udkapi/com/sun/star/uno/XComponentContext.hpp"
#include "udkapi/com/sun/star/uno/XInterface.hpp"
-#include "udkapi/com/sun/star/uri/UriReferenceFactory.hpp"
+//#include "udkapi/com/sun/star/uri/UriReferenceFactory.hpp"
#include "udkapi/com/sun/star/uri/XUriReference.hpp"
#include "udkapi/com/sun/star/uri/XUriReferenceFactory.hpp"
#include "uno/lbnames.h"
@@ -1277,6 +1278,8 @@
#endif
+#endif
+
#endif // PRECOMPILED_XMLOFF_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/source/forms/controlpropertyhdl.cxx b/xmloff/source/forms/controlpropertyhdl.cxx
index 90261cc7b8d8..044f1887dd4a 100644
--- a/xmloff/source/forms/controlpropertyhdl.cxx
+++ b/xmloff/source/forms/controlpropertyhdl.cxx
@@ -151,9 +151,9 @@ namespace xmloff
if (_rValue >>= nFontEmphasis)
{
// the type
- sal_Int16 nType = nFontEmphasis & ~(FontEmphasisMark::ABOVE | FontEmphasisMark::BELOW);
+ sal_Int16 nType = nFontEmphasis & ~(awt::FontEmphasisMark::ABOVE | awt::FontEmphasisMark::BELOW);
// the position of the mark
- sal_Bool bBelow = 0 != (nFontEmphasis & FontEmphasisMark::BELOW);
+ sal_Bool bBelow = 0 != (nFontEmphasis & awt::FontEmphasisMark::BELOW);
// convert
bSuccess = SvXMLUnitConverter::convertEnum(aReturn, nType, OEnumMapper::getEnumMap(OEnumMapper::epFontEmphasis), XML_NONE);
@@ -173,7 +173,7 @@ namespace xmloff
sal_Bool OControlTextEmphasisHandler::importXML( const ::rtl::OUString& _rStrImpValue, Any& _rValue, const SvXMLUnitConverter& ) const
{
sal_Bool bSuccess = sal_True;
- sal_uInt16 nEmphasis = FontEmphasisMark::NONE;
+ sal_uInt16 nEmphasis = awt::FontEmphasisMark::NONE;
sal_Bool bBelow = sal_False;
sal_Bool bHasPos = sal_False, bHasType = sal_False;
@@ -211,7 +211,7 @@ namespace xmloff
if (bSuccess)
{
- nEmphasis |= bBelow ? FontEmphasisMark::BELOW : FontEmphasisMark::ABOVE;
+ nEmphasis |= bBelow ? awt::FontEmphasisMark::BELOW : awt::FontEmphasisMark::ABOVE;
_rValue <<= (sal_Int16)nEmphasis;
}
diff --git a/xmloff/source/forms/formenums.cxx b/xmloff/source/forms/formenums.cxx
index d68de5cc4db4..583e1b918781 100644
--- a/xmloff/source/forms/formenums.cxx
+++ b/xmloff/source/forms/formenums.cxx
@@ -222,11 +222,11 @@ namespace xmloff
{
static SvXMLEnumMapEntry aFontEmphasisMap[] =
{
- { XML_NONE, FontEmphasisMark::NONE },
- { XML_DOT, FontEmphasisMark::DOT },
- { XML_CIRCLE, FontEmphasisMark::CIRCLE },
- { XML_DISC, FontEmphasisMark::DISC },
- { XML_ACCENT, FontEmphasisMark::ACCENT },
+ { XML_NONE, awt::FontEmphasisMark::NONE },
+ { XML_DOT, awt::FontEmphasisMark::DOT },
+ { XML_CIRCLE, awt::FontEmphasisMark::CIRCLE },
+ { XML_DISC, awt::FontEmphasisMark::DISC },
+ { XML_ACCENT, awt::FontEmphasisMark::ACCENT },
{ XML_TOKEN_INVALID, 0 }
};
rReturn = aFontEmphasisMap;