tdf#146619 Recheck xmloff/*hxx with IWYU

Change-Id: I09676a038370ca76ad4d4ef54dae14fbd3bd287f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162319
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
This commit is contained in:
Gabor Kelemen 2023-12-24 04:41:35 +01:00 committed by Thorsten Behrens
parent ca33b8b35a
commit f351faa3f7
34 changed files with 27 additions and 77 deletions

View file

@ -1,25 +1,15 @@
---
assumeFilename: xmloff/source/core/xmlexp.cxx
excludelist:
xmloff/inc/DomExport.hxx:
# Needed for css shortcut
- sal/types.h
xmloff/inc/XMLImageMapExport.hxx:
# Needed for css shortcut
- sal/types.h
xmloff/inc/XMLTextColumnsExport.hxx:
# Needed for css shortcut
- sal/types.h
xmloff/source/chart/PropertyMap.hxx:
# Needed for constants used in arrays
- xmloff/maptype.hxx
- xmloff/xmlnamespace.hxx
- xmloff/xmlement.hxx
- com/sun/star/chart/ChartAxisArrangeOrderType.hpp
- com/sun/star/chart/ChartAxisLabelPosition.hpp
- com/sun/star/chart/ChartAxisMarkPosition.hpp
- com/sun/star/chart/ErrorBarStyle.hpp
- com/sun/star/chart/ChartSolidType.hpp
- com/sun/star/chart/ChartDataRowSource.hpp
- com/sun/star/chart/DataLabelPlacement.hpp
- com/sun/star/chart/MissingValueTreatment.hpp
xmloff/source/forms/logging.hxx:
# Used after #ifdef TIMELOG
- stack

View file

@ -13,7 +13,6 @@
#include <sal/config.h>
#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <xmloff/dllapi.h>
#include <utility>
#include <vector>

View file

@ -18,14 +18,12 @@
*/
#pragma once
// the Solaris compiler apparently needs the following include:
#include <com/sun/star/uno/Reference.hxx>
#include <sal/types.h>
class SvXMLExport;
namespace com::sun::star {
namespace uno { template<typename T> class Reference; }
namespace xml::dom { class XDocument; }
namespace xml::dom { class XNode; }
}
void exportDom( SvXMLExport&, const css::uno::Reference<css::xml::dom::XDocument>& );

View file

@ -19,7 +19,6 @@
#pragma once
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include <o3tl/hash_combine.hxx>
#include <unordered_map>

View file

@ -19,7 +19,6 @@
#pragma once
#include <memory>
#include <xmloff/xmlstyle.hxx>
namespace com::sun::star {

View file

@ -20,7 +20,6 @@
#pragma once
#include <xmloff/xmlictxt.hxx>
#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Reference.h>
namespace com::sun::star {

View file

@ -7,12 +7,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <utility>
#include <xmloff/xmlprcon.hxx>
#include <xmloff/xmlictxt.hxx>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/util/Color.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <docmodel/theme/ColorSet.hxx>

View file

@ -19,8 +19,6 @@
#pragma once
#include <memory>
#include <xmloff/xmlictxt.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>

View file

@ -9,12 +9,9 @@
#pragma once
#include <com/sun/star/xml/sax/XFastTokenHandler.hpp>
#include <cppuhelper/implbase.hxx>
#include <sax/fastattribs.hxx>
#include <xmloff/token/tokens.hxx>
#include <sal/log.hxx>
#include <xmloff/dllapi.h>
namespace xmloff::token {

View file

@ -27,7 +27,6 @@
#include <salhelper/simplereferenceobject.hxx>
#include <map>
#include <vector>
namespace xmloff
{

View file

@ -35,19 +35,15 @@
#include <optional>
#include <string_view>
#include "txtfld.hxx"
class SvXMLExport;
struct XMLPropertyState;
namespace com::sun::star {
namespace util { struct DateTime; }
namespace util { struct Date; }
namespace text { class XTextField; }
namespace text { class XText; }
namespace beans { class XPropertySet; }
namespace beans { class XPropertySetInfo; }
namespace frame { class XModel; }
namespace uno { template<typename A> class Sequence; }
}

View file

@ -30,11 +30,10 @@
#include <com/sun/star/text/PageNumberType.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <xmloff/xmlictxt.hxx>
#include <xmloff/XMLEventsImportContext.hxx>
#include <xmloff/txtimp.hxx>
#include <xmloff/xmltkmap.hxx>
#include <rtl/ustrbuf.hxx>
#include <vector>
#include "txtfld.hxx"
namespace com::sun::star {
namespace xml::sax { class XAttributeList; }

View file

@ -8,6 +8,8 @@
*/
#pragma once
#include <rtl/ustring.hxx>
inline constexpr OUString PROP_ = u""_ustr;
inline constexpr OUString PROP_AdjustBlue = u"AdjustBlue"_ustr;
inline constexpr OUString PROP_AdjustContrast = u"AdjustContrast"_ustr;

View file

@ -21,7 +21,6 @@
// prevent funny things like "#define sun 1" from the compiler
#include <sal/config.h>
#include <sal/types.h>
class SvXMLExport;
namespace com::sun::star {

View file

@ -18,19 +18,8 @@
*/
#pragma once
#include <xmloff/maptype.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmltypes.hxx>
#include <xmloff/contextid.hxx>
#include <xmloff/xmlement.hxx>
#include <com/sun/star/chart/ChartAxisArrangeOrderType.hpp>
#include <com/sun/star/chart/ChartAxisLabelPosition.hpp>
#include <com/sun/star/chart/ChartAxisMarkPosition.hpp>
#include <com/sun/star/chart/ErrorBarStyle.hpp>
#include <com/sun/star/chart/ChartSolidType.hpp>
#include <com/sun/star/chart/ChartDataRowSource.hpp>
#include <com/sun/star/chart/DataLabelPlacement.hpp>
#include <com/sun/star/chart/MissingValueTreatment.hpp>
// custom types
#define XML_SCH_TYPE_AXIS_ARRANGEMENT ( XML_SCH_TYPES_START + 0 )

View file

@ -33,8 +33,10 @@
#include <xmloff/EnumPropertyHdl.hxx>
#include <comphelper/attributelist.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/shapeimport.hxx>
#include <xmloff/xmlement.hxx>
#include <xmloff/xmlexp.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/prhdlfac.hxx>
@ -42,8 +44,16 @@
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/chart/ChartAxisArrangeOrderType.hpp>
#include <com/sun/star/chart/ChartAxisLabelPosition.hpp>
#include <com/sun/star/chart/ChartAxisMarkPosition.hpp>
#include <com/sun/star/chart/ChartAxisMarks.hpp>
#include <com/sun/star/chart/ChartDataCaption.hpp>
#include <com/sun/star/chart/ChartDataRowSource.hpp>
#include <com/sun/star/chart/ChartSolidType.hpp>
#include <com/sun/star/chart/DataLabelPlacement.hpp>
#include <com/sun/star/chart/ErrorBarStyle.hpp>
#include <com/sun/star/chart/MissingValueTreatment.hpp>
#include <com/sun/star/chart2/MovingAverageType.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>

View file

@ -24,7 +24,6 @@
#include "transporttypes.hxx"
#include <com/sun/star/chart/XDiagram.hpp>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
class SchXMLAxisContext : public SvXMLImportContext
{

View file

@ -18,8 +18,6 @@
*/
#pragma once
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <xmloff/SchXMLImportHelper.hxx>
#include <xmloff/xmlictxt.hxx>

View file

@ -67,6 +67,7 @@
#include <com/sun/star/chart/ChartLegendExpansion.hpp>
#include <com/sun/star/chart/ChartDataRowSource.hpp>
#include <com/sun/star/chart/ChartAxisAssign.hpp>
#include <com/sun/star/chart/ErrorBarStyle.hpp>
#include <com/sun/star/chart/DataLabelPlacement.hpp>
#include <com/sun/star/chart/TimeIncrement.hpp>
#include <com/sun/star/chart/TimeInterval.hpp>

View file

@ -18,8 +18,6 @@
*/
#pragma once
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <xmloff/SchXMLImportHelper.hxx>
#include <xmloff/xmlictxt.hxx>

View file

@ -11,7 +11,6 @@
#include "transporttypes.hxx"
#include <xmloff/xmlictxt.hxx>
#include <xmloff/SchXMLImportHelper.hxx>
namespace com::sun::star {
namespace chart2 {

View file

@ -19,7 +19,6 @@
#pragma once
#include <xmloff/xmlictxt.hxx>
#include <com/sun/star/drawing/XShapes.hpp>
#include "ximpshap.hxx"

View file

@ -19,7 +19,6 @@
#pragma once
#include <xmloff/xmlictxt.hxx>
#include <com/sun/star/drawing/XShapes.hpp>
#include "ximpshap.hxx"

View file

@ -21,7 +21,6 @@
#include <xmloff/xmlictxt.hxx>
#include "sdxmlimp_impl.hxx"
#include <memory>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/container/XNameContainer.hpp>

View file

@ -19,7 +19,7 @@
#pragma once
#include <svl/zforlist.hxx>
#include <svl/numformat.hxx>
#include <xmloff/xmlictxt.hxx>
#include <xmloff/xmlimppr.hxx>
#include <xmloff/xmlnumfi.hxx>
@ -30,9 +30,6 @@
#include <memory>
#include <vector>
class SvNumberFormatter;
class SvXMLNumFmtHelper;
// special style:style context inside style:page-master context
class SdXMLPageMasterStyleContext: public SvXMLStyleContext

View file

@ -24,7 +24,7 @@
#include <map>
#include <unordered_map>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <com/sun/star/xml/sax/XFastAttributeList.hpp>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <com/sun/star/form/XFormsSupplier2.hpp>
#include <rtl/ref.hxx>

View file

@ -21,10 +21,7 @@
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/script/XLibraryContainer2.hpp>
#include <cppuhelper/implbase.hxx>
#include <osl/mutex.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/ref.hxx>
#include <xmloff/xmlimp.hxx>
namespace xmloff

View file

@ -20,6 +20,7 @@
#pragma once
#include <xmloff/xmlstyle.hxx>
#include <xmloff/XMLFontStylesContext.hxx>
namespace com::sun::star::io {
class XOutputStream;

View file

@ -23,21 +23,15 @@
#include <rtl/ustring.hxx>
#include <rtl/ref.hxx>
#include <set>
#include <memory>
#include <utility>
#include <vector>
#include <comphelper/stl_types.hxx>
#include <xmloff/maptype.hxx>
#include <xmloff/xmlexppr.hxx>
#include <AutoStyleEntry.hxx>
class SvXMLAutoStylePoolP;
class XMLAutoStylePoolParent;
struct XMLAutoStyleFamily;
class SvXMLExportPropertyMapper;
class SvXMLExport;
enum class XmlStyleFamily;
// Properties of a pool

View file

@ -23,7 +23,6 @@
#include <com/sun/star/uno/Sequence.h>
#include <vector>
#include <memory>
#include <map>
class SvXMLExport;

View file

@ -24,6 +24,7 @@
*/
#include <comphelper/propertyvalue.hxx>
#include <txtflde.hxx>
#include <txtfld.hxx>
#include <xmloff/XMLEventExport.hxx>
#include <xmloff/families.hxx>
#include <xmloff/namespacemap.hxx>

View file

@ -29,6 +29,7 @@
#include <cassert>
#include <txtfld.hxx>
#include <txtfldi.hxx>
#include <txtvfldi.hxx>
#include <utility>

View file

@ -22,7 +22,7 @@
#include <vector>
#include <com/sun/star/text/XTextContent.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <com/sun/star/beans/PropertyValues.hpp>
class XMLHints_Impl;

View file

@ -20,15 +20,12 @@
#pragma once
#include <xmloff/xmlictxt.hxx>
#include <xmloff/xmltkmap.hxx>
#include <sax/fastattribs.hxx>
namespace com::sun::star {
namespace xml::sax { class XFastAttributeList; }
namespace uno { template<typename T> class Reference; }
}
class SvXMLImport;
/** handle attributes through an SvXMLTokenMap */
class TokenContext : public SvXMLImportContext
{