Kaydet (Commit) 5af52425 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: fix some IWYU warnings

Change-Id: Ic7e6aa31e5c6d210101da7223a294092ab5b7481
Reviewed-on: https://gerrit.libreoffice.org/62334
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 8f71eb51
......@@ -169,6 +169,9 @@ def processIWYUOutput(iwyuOutput, moduleRules):
match = re.match("- (.*;(?: })*)* // lines (.*)-.*", line)
if match:
fwdDecl = match.group(1)
if fwdDecl.endswith(";"):
# Remove trailing semicolon.
fwdDecl = fwdDecl[:-1]
lineno = match.group(2)
if not ignoreRemoval(fwdDecl, toAdd, currentFileName, moduleRules):
toRemove.append("%s:%s: %s" % (currentFileName, lineno, fwdDecl))
......
......@@ -17,6 +17,8 @@ blacklist:
- numrule.hxx
# tox.hxx brings in SwTOXType, which is needed by SwTOXTypes, as SwVectorModifyBase's dtor wants to delete it
- tox.hxx
# section.hxx brings in SwSectionFormat, which is needed by SwSectionFormats, as SwFormatsModifyBase's type param has to be complete
- section.hxx
sw/inc/docfac.hxx:
# Complete type is needed by rtl::Reference<SwDoc>.
- doc.hxx
......@@ -36,6 +38,8 @@ blacklist:
- o3tl/typed_flags_set.hxx
sw/inc/doc.hxx:
- o3tl/deleter.hxx
sw/inc/docsh.hxx:
- o3tl/deleter.hxx
sw/inc/list.hxx:
- o3tl/deleter.hxx
sw/inc/IDocumentLinksAdministration.hxx:
......@@ -56,6 +60,8 @@ blacklist:
- o3tl/typed_flags_set.hxx
sw/inc/undobj.hxx:
- o3tl/typed_flags_set.hxx
sw/inc/itabenum.hxx:
- o3tl/typed_flags_set.hxx
sw/inc/unosett.hxx:
# sw::UnoImplPtr typedef
- unobaseclass.hxx
......@@ -240,6 +246,7 @@ blacklist:
- class SwUpdateAttr
- class SfxBoolItem
- class SvxCharSetColorItem
- class SvxColorItem
# used in extern declaration
- struct SfxItemInfo
sw/inc/textboxhelper.hxx:
......@@ -252,3 +259,8 @@ blacklist:
# complete type is wanted
- com/sun/star/awt/XBitmap.hpp
- com/sun/star/text/XTextColumns.hpp
sw/inc/pagepreviewlayout.hxx:
- vector
sw/inc/shellio.hxx:
- o3tl/deleter.hxx
- o3tl/typed_flags_set.hxx
......@@ -20,17 +20,18 @@
#ifndef INCLUDED_SW_INC_CALBCK_HXX
#define INCLUDED_SW_INC_CALBCK_HXX
#include <cassert>
#include <svl/hint.hxx>
#include <svl/broadcast.hxx>
#include <svl/poolitem.hxx>
#include "swdllapi.h"
#include "ring.hxx"
#include "hintids.hxx"
#include <type_traits>
#include <vector>
#include <memory>
class SwModify;
class SfxPoolItem;
/*
SwModify and SwClient cooperate in propagating attribute changes.
......
......@@ -24,6 +24,7 @@
#include <svl/zforlist.hxx>
#include "swdllapi.h"
#include "format.hxx"
#include "hintids.hxx"
#include "cellfml.hxx"
/** The number formatter's default locale's @ Text format.
......
......@@ -20,6 +20,7 @@
#define INCLUDED_SW_INC_CHARFMT_HXX
#include "format.hxx"
#include "hintids.hxx"
class SW_DLLPUBLIC SwCharFormat : public SwFormat
{
......
......@@ -41,7 +41,6 @@ class SwUndo;
class SwRect;
class SwFrameFormat;
class SwFrameFormats;
class SwNodes;
class SwNumRuleTable;
class SwNumRule;
class SwOutlineNodes;
......
......@@ -20,7 +20,6 @@
#define INCLUDED_SW_INC_DBMGR_HXX
#include <rtl/ustring.hxx>
#include <tools/link.hxx>
#include <tools/solar.h>
#include <i18nlangtag/lang.h>
#include <com/sun/star/util/Date.hpp>
......@@ -30,7 +29,6 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <vcl/weld.hxx>
#include <memory>
#include <vector>
......@@ -77,7 +75,6 @@ namespace weld {
class SwView;
class SwWrtShell;
class ListBox;
class Button;
class SvNumberFormatter;
class SwXMailMerge;
class SwMailMergeConfigItem;
......
......@@ -38,7 +38,6 @@ class SwFlyDrawObj;
class SwRect;
class SwDrawContact;
struct SwPosition;
class SwIndex;
class SdrTextObj;
class SwContact;
......
......@@ -30,7 +30,6 @@
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/random_access_index.hpp>
#include "charfmt.hxx"
#include "fmtcol.hxx"
#include "frmfmt.hxx"
#include "section.hxx"
......
......@@ -22,8 +22,6 @@
#include <memory>
#include <rtl/ref.hxx>
#include <com/sun/star/uno/Sequence.h>
#include <ooo/vba/XSinkCaller.hpp>
#include <ooo/vba/word/XDocument.hpp>
#include <sfx2/docfac.hxx>
#include <sfx2/objsh.hxx>
#include "swdllapi.h"
......@@ -58,6 +56,8 @@ namespace svt
class EmbeddedObjectRef;
}
namespace com { namespace sun { namespace star { namespace frame { class XController; } } } }
namespace ooo { namespace vba { class XSinkCaller; } }
namespace ooo { namespace vba { namespace word { class XDocument; } } }
// initialize DrawModel (in form of a SwDrawModel) and DocShell (in form of a SwDocShell)
// as needed, one or both parameters may be zero
......
......@@ -25,6 +25,7 @@
#include <cppuhelper/weakref.hxx>
#include <editeng/svxenum.hxx>
#include <vector>
#include <climits>
class SwDoc;
class SvNumberFormatter;
......
......@@ -21,6 +21,7 @@
#include "swdllapi.h"
#include "format.hxx"
#include "hintids.hxx"
#include <rtl/ustring.hxx>
#include <vector>
......
......@@ -24,6 +24,7 @@
#include <cppuhelper/weakref.hxx>
#include <tools/gen.hxx>
#include "format.hxx"
#include "hintids.hxx"
#include "swdllapi.h"
#include <list>
......
......@@ -23,7 +23,6 @@
#include "swdllapi.h"
class SwView;
namespace vcl { class Window; }
class SwWrtShell;
struct SwConversionArgs;
class SwPaM;
......
......@@ -29,7 +29,6 @@ class SwAsyncRetrieveInputStreamThreadConsumer;
class SwGrfFormatColl;
class SwDoc;
namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
// SwGrfNode
class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
......
......@@ -31,7 +31,6 @@
#include "swdllapi.h"
#include "shellid.hxx"
#include "fldupde.hxx"
#include <ooo/vba/XSinkCaller.hpp>
class Color;
class SfxItemSet;
......@@ -69,6 +68,7 @@ namespace com{ namespace sun{ namespace star{ namespace scanner{
}}}}
namespace com { namespace sun { namespace star { namespace linguistic2 { class XLanguageGuessing; } } } }
namespace com { namespace sun { namespace star { namespace linguistic2 { class XLinguServiceEventListener; } } } }
namespace ooo { namespace vba { class XSinkCaller; } }
class SW_DLLPUBLIC SwModule final : public SfxModule, public SfxListener, public utl::ConfigurationListener
{
......
......@@ -19,10 +19,9 @@
#ifndef INCLUDED_SW_INC_TXTFTN_HXX
#define INCLUDED_SW_INC_TXTFTN_HXX
#include <rtl/ustring.hxx>
#include "txatbase.hxx"
namespace rtl { class OUString; }
class SwNodeIndex;
class SwTextNode;
class SwNodes;
......
......@@ -119,6 +119,7 @@
#include <com/sun/star/uri/UriReferenceFactory.hpp>
#include <com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <ooo/vba/XSinkCaller.hpp>
#include <unomid.h>
#include <unotextrange.hxx>
......
......@@ -21,7 +21,8 @@
#include <com/sun/star/drawing/ModuleDispatcher.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>
#include <ooo/vba/XSinkCaller.hpp>
#include <ooo/vba/word/XDocument.hpp>
#include <comphelper/fileformat.h>
#include <comphelper/processfactory.hxx>
......
......@@ -55,6 +55,7 @@
#include <sfx2/charmappopup.hxx>
#include <com/sun/star/scanner/ScannerManager.hpp>
#include <com/sun/star/linguistic2/LanguageGuessing.hpp>
#include <ooo/vba/XSinkCaller.hpp>
#include <comphelper/processfactory.hxx>
#include <docsh.hxx>
#include <swmodule.hxx>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment