Skip to content

Commit b94cf8f

Browse files
committed
Remove obsolete fw declarations from sc/
found with bin/find-unneeded-includes --fwdecl Change-Id: I04083a33ce1e7d85980da91f72c2dd85777b594d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183897 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <[email protected]>
1 parent d29f6a2 commit b94cf8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+7
-222
lines changed

sc/IwyuFilter_sc.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,13 @@ excludelist:
286286
sc/inc/scitems.hxx:
287287
# needed for defines
288288
- svl/typedwhich.hxx
289+
# needed in --fwdecl mode
290+
- class ScConsolidateItem
289291
sc/inc/scmatrix.hxx:
290292
# base class has to be a complete type
291293
- svl/sharedstringpool.hxx
294+
# needed in --fwdecl mode, quotation needed for handling the colon
295+
- 'enum class FormulaError : sal_uInt16'
292296
sc/inc/scmod.hxx:
293297
# Needed for macro define
294298
- sfx2/app.hxx

sc/inc/PivotTableDataProvider.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <vector>
2525
#include <unordered_map>
2626

27-
namespace com::sun::star::chart2::data { class XDataSequence; }
2827
namespace com::sun::star::chart2::data { class XDataSource; }
2928
namespace com::sun::star::chart2::data { class XLabeledDataSequence; }
3029
namespace com::sun::star::uno { class XComponentContext; }

sc/inc/arealink.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <sfx2/lnkbase.hxx>
2525
#include "scdllapi.h"
2626

27-
class SfxObjectShell;
2827
class ScDocShell;
2928

3029
class SAL_DLLPUBLIC_RTTI ScAreaLink final : public ::sfx2::SvBaseLink, public ScRefreshTimer

sc/inc/attarray.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
#include <svl/itemset.hxx>
3131

32-
class ScDocument;
3332
class ScEditDataArray;
3433
class ScMarkArray;
3534
class ScStyleSheet;

sc/inc/cellsuno.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ class SvxBoxInfoItem;
108108
class SvxItemPropertySet;
109109
class SvxUnoText;
110110
class ScDocument;
111-
class SfxBroadcaster;
112111
class SfxHint;
113112
class SfxItemPropertyMap;
114113
class SfxItemPropertySet;

sc/inc/column.hxx

-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ struct NoteEntry;
5959
class DocumentStreamAccess;
6060
class CellValues;
6161
class TableValues;
62-
struct RowSpan;
6362
class RowHeightContext;
6463
class CompileFormulaContext;
6564
struct SetFormulaDirtyContext;
66-
enum class MatrixEdge;
6765
class ColumnIterator;
6866
class Sparkline;
6967

@@ -81,8 +79,6 @@ class SvxBoxItem;
8179
class ScDocument;
8280
class ScEditDataArray;
8381
class ScFormulaCell;
84-
class ScMarkData;
85-
class ScPatternAttr;
8682
class ScStyleSheet;
8783
class SvtBroadcaster;
8884
class ScTypedStrData;
@@ -93,7 +89,6 @@ struct ScSetStringParam;
9389
struct ScColWidthParam;
9490
struct ScRefCellValue;
9591
struct ScCellValue;
96-
class ScHint;
9792
enum class ScMF;
9893
struct ScFilterEntries;
9994
struct ScInterpreterContext;

sc/inc/datauno.hxx

-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848

4949
#include <vector>
5050

51-
namespace com::sun::star::sheet { struct TableFilterField2; }
52-
namespace com::sun::star::sheet { struct TableFilterField3; }
53-
namespace com::sun::star::sheet { struct TableFilterField; }
54-
5551
class ScDBData;
5652
class ScDocShell;
5753

sc/inc/dociter.hxx

-8
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,8 @@
3737

3838
class ScDocument;
3939
class ScPatternAttr;
40-
class ScAttrArray;
41-
class ScAttrIterator;
42-
class ScFlatBoolRowSegments;
4340
class ScMatrix;
44-
struct ScDBQueryParamBase;
45-
struct ScQueryParam;
46-
struct ScDBQueryParamInternal;
47-
struct ScDBQueryParamMatrix;
4841
class ScFormulaCell;
49-
class OutputDevice;
5042
struct ScInterpreterContext;
5143
enum class SvNumFormatType : sal_Int16;
5244

sc/inc/docpool.hxx

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
#include <svl/itempool.hxx>
2424
#include "scdllapi.h"
2525

26-
class ScStyleSheet;
27-
class ScDocument;
28-
2926
class SC_DLLPUBLIC ScDocumentPool final : public SfxItemPool
3027
{
3128
public:

sc/inc/document.hxx

-11
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ namespace oox
6666
namespace xls
6767
{
6868
class Connection;
69-
struct ConnectionModel;
7069
}
7170
}
7271

@@ -96,23 +95,18 @@ class StartListeningContext;
9695
class EndListeningContext;
9796
class CopyFromClipContext;
9897
class ColumnSpanSet;
99-
class RangeColumnSpanSet;
10098
struct ColumnBlockPosition;
10199
struct RefUpdateContext;
102100
class EditTextIterator;
103101
struct NoteEntry;
104-
class DocumentStreamAccess;
105102
class DocumentLinkManager;
106103
class CellValues;
107104
class TableValues;
108105
class RowHeightContext;
109106
struct SetFormulaDirtyContext;
110-
class RefMovedHint;
111107
struct ReorderParam;
112-
class FormulaGroupAreaListener;
113108
class ColumnSet;
114109
class UpdatedRangeNames;
115-
class TableColumnBlockPositionSet;
116110
class ColumnIterator;
117111
class ExternalDataMapper;
118112
class Sparkline;
@@ -128,7 +122,6 @@ class SdrObject;
128122
class SfxBroadcaster;
129123
class SfxListener;
130124
class SfxItemSet;
131-
class SfxObjectShell;
132125
class SfxBindings;
133126
class SfxPoolItem;
134127
class SfxItemPool;
@@ -159,7 +152,6 @@ class ScDetOpList;
159152
class ScDocOptions;
160153
class ScDocProtection;
161154
class ScDocumentPool;
162-
class ScDrawLayer;
163155
class ScExtDocOptions;
164156
class ScExternalRefManager;
165157
class ScFormulaCell;
@@ -187,15 +179,13 @@ struct ScSortParam;
187179
class ScRefreshTimerControl;
188180
class ScUnoListenerCalls;
189181
class ScUnoRefList;
190-
class ScRecursionHelper;
191182
struct RowInfo;
192183
struct ScTableInfo;
193184
struct ScTabOpParam;
194185
class VirtualDevice;
195186
class ScAutoNameCache;
196187
class ScTemporaryChartLock;
197188
class ScLookupCache;
198-
struct ScLookupCacheMap;
199189
class ScSortedRangeCache;
200190
struct ScSortedRangeCacheMap;
201191
class ScUndoManager;
@@ -221,7 +211,6 @@ class BitmapEx;
221211
class ScColumnsRange;
222212
struct ScFilterEntries;
223213
typedef o3tl::sorted_vector<sal_uInt32> ScCondFormatIndexes;
224-
struct ScSheetLimits;
225214
struct ScDataAreaExtras;
226215
enum class ScConditionMode;
227216

sc/inc/docuno.hxx

-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@
5555
#include <svl/itemprop.hxx>
5656
#include <vcl/ITiledRenderable.hxx>
5757

58-
namespace com::sun::star::chart2::data { class XDataProvider; }
59-
namespace com::sun::star::sheet::opencl { struct OpenCLPlatform; }
60-
6158
class ScDocShell;
6259
class ScAnnotationObj;
6360
class ScMarkData;

sc/inc/dpcache.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
struct ScQueryParam;
3737
class ScDPObject;
3838
class ScDocument;
39-
class SvNumberFormatter;
4039
struct ScInterpreterContext;
4140

4241
enum class SvNumFormatType : sal_Int16;

sc/inc/dpobject.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class ScSheetSourceDesc;
6363
class ScDPTableData;
6464
class ScDPDimensionSaveData;
6565
class ScRangeList;
66-
class ScDPCache;
6766
class ScDocument;
6867

6968
struct ScDPServiceDesc

sc/inc/dptabsrc.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151

5252
namespace com::sun::star {
5353
namespace sheet {
54-
struct DataPilotFieldFilter;
5554
struct MemberResult;
5655
}
5756
}

sc/inc/fillinfo.hxx

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
#include <o3tl/typed_flags_set.hxx>
3030
#include <optional>
3131

32-
class SfxItemSet;
33-
class SvxBrushItem;
3432
class SvxBoxItem;
3533
class SvxLineItem;
3634
class SvxShadowItem;

sc/inc/global.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ class LocaleDataWrapper;
491491
class SvtSysLocale;
492492
class CalendarWrapper;
493493
class CollatorWrapper;
494-
class IntlWrapper;
495494
class ScFieldEditEngine;
496495

497496
namespace com::sun::star {

sc/inc/interpretercontext.hxx

-5
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ struct DelayedSetNumberFormat
3737
sal_uInt32 mnNumberFormat;
3838
};
3939

40-
class ScInterpreterContextPool;
41-
4240
struct ScInterpreterContext
4341
{
4442
const ScDocument* mpDoc;
@@ -166,9 +164,6 @@ private:
166164
SvNumberFormatter* mpFormatter;
167165
};
168166

169-
class ScThreadedInterpreterContextGetterGuard;
170-
class ScInterpreterContextGetterGuard;
171-
172167
class ScInterpreterContextPool
173168
{
174169
friend class ScThreadedInterpreterContextGetterGuard;

sc/inc/markarr.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <tools/long.hxx>
2424
#include <vector>
2525

26-
class ScRangeList;
2726
struct ScSheetLimits;
2827

2928
struct ScMarkEntry

sc/inc/markdata.hxx

-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ struct ColRowSpan;
3333

3434
}
3535

36-
class ScMarkArray;
37-
3836
//! todo:
3937
//! It should be possible to have MarkArrays for each table, in order to
4038
//! enable "search all" across more than one table again!

sc/inc/poolcach.hxx

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
#include "patattr.hxx"
2222
#include <vector>
2323

24-
class CellAttributeHelper;
25-
class SfxItemSet;
2624
class SfxPoolItem;
2725

2826
class ScItemPoolCache

sc/inc/queryparam.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
struct ScInterpreterContext;
3131

3232
struct ScDBQueryParamInternal;
33-
struct ScQueryEntry;
3433

3534
namespace svl {
3635

sc/inc/rangecache.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
class ScDocument;
3131
struct ScInterpreterContext;
3232
struct ScQueryParam;
33-
struct ScSortedRangeCacheMap;
3433

3534
/** Sorted cache for one range used with interpreter functions such as VLOOKUP
3635
and MATCH. Caches sorted order for cells in the given range, which must

sc/inc/refhint.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
namespace sc {
1616

17-
struct RefUpdateContext;
1817
class ColRowReorderMapType;
1918

2019
class RefHint : public SfxHint

sc/inc/scitems.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class ScMergeAttr;
6868
class ScMergeFlagAttr;
6969
class ScProtectionAttr;
7070
class SvxBoxInfoItem;
71-
class ScPatternAttr;
7271
class SvxPageItem;
7372
class ScViewObjectModeItem;
7473
class SfxUInt16Item;

sc/inc/scmod.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class ScAddInCfg;
7070
class ScTransferObj;
7171
class ScDrawTransferObj;
7272
class ScSelectionTransferObj;
73-
class ScFormEditData;
7473
class ScMarkData;
7574
struct ScDragData;
7675
class SfxDialogController;

sc/inc/scopetools.hxx

-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
class ScDocument;
1515
class ScColumn;
16-
namespace vcl
17-
{
18-
class Window;
19-
}
2016

2117
namespace sc
2218
{

sc/inc/styleuno.hxx

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <cppuhelper/implbase.hxx>
3434

3535
namespace com::sun::star::container { class XIndexReplace; }
36-
namespace com::sun::star::lang { class XComponent; }
3736

3837
class ScDocShell;
3938
class SfxItemPropertySet;

sc/inc/subtotal.hxx

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public:
2929
static bool SafeDiv( double& fVal1, double fVal2);
3030
};
3131

32-
class ScFunctionData;
33-
3432
/** Implements the Welford Online one-pass algorithm.
3533
See https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_Online_algorithm
3634
and Donald E. Knuth, TAoCP vol.2, 3rd edn., p. 232

sc/inc/table.hxx

-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class ColumnSpanSet;
7070
class RangeColumnSpanSet;
7171
class ColumnSet;
7272
struct ColumnBlockPosition;
73-
class TableColumnBlockPositionSet;
7473
struct RefUpdateContext;
7574
struct RefUpdateInsertTabContext;
7675
struct RefUpdateDeleteTabContext;
@@ -83,7 +82,6 @@ class RowHeightContext;
8382
class CompileFormulaContext;
8483
struct SetFormulaDirtyContext;
8584
class ColumnIterator;
86-
class ScDrawObjData;
8785
}
8886

8987
class SfxItemSet;
@@ -100,7 +98,6 @@ class ScPrintSaverTab;
10098
class ScProgress;
10199
class ScRangeList;
102100
class ScSheetEvents;
103-
class ScSortInfoArray;
104101
class ScConditionalFormat;
105102
class ScConditionalFormatList;
106103
class ScStyleSheet;
@@ -116,7 +113,6 @@ struct ScSetStringParam;
116113
struct ScColWidthParam;
117114
class ScRangeName;
118115
class ScDBData;
119-
class ScHint;
120116
class ScPostIt;
121117
struct ScInterpreterContext;
122118

sc/inc/targuno.hxx

-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
#include <com/sun/star/container/XNameAccess.hpp>
2727
#include <cppuhelper/implbase.hxx>
2828

29-
namespace com::sun::star::beans { class XPropertyChangeListener; }
30-
namespace com::sun::star::beans { class XPropertySetInfo; }
31-
namespace com::sun::star::beans { class XVetoableChangeListener; }
32-
3329
class ScDocShell;
3430

3531
#define SC_LINKTARGETTYPE_SHEET 0

0 commit comments

Comments
 (0)