editeng/inc/editattr.hxx | 22 ---------------- editeng/inc/editdoc.hxx | 3 -- editeng/inc/edtspell.hxx | 4 -- editeng/inc/eerdll2.hxx | 1 editeng/source/editeng/editobj2.hxx | 6 ---- editeng/source/editeng/editundo.hxx | 1 editeng/source/editeng/impedit.hxx | 4 -- editeng/source/outliner/paralist.hxx | 1 embeddedobj/source/inc/commonembobj.hxx | 8 ----- embeddedobj/source/inc/dummyobject.hxx | 7 ----- extensions/source/abpilot/fieldmappingimpl.hxx | 3 -- extensions/source/bibliography/bibview.hxx | 2 - extensions/source/bibliography/datman.hxx | 1 extensions/source/config/WinUserInfo/WinUserInfoBe.hxx | 14 ---------- extensions/source/propctrlr/commoncontrol.hxx | 1 extensions/source/propctrlr/editpropertyhandler.hxx | 2 - extensions/source/propctrlr/eformspropertyhandler.hxx | 1 extensions/source/propctrlr/propertycomposer.hxx | 1 extensions/source/propctrlr/propertycontrolextender.hxx | 1 extensions/source/propctrlr/propertyeditor.hxx | 2 - extensions/source/propctrlr/propertyhandler.hxx | 7 ----- extensions/source/propctrlr/submissionhandler.hxx | 5 --- 22 files changed, 97 deletions(-)
New commits: commit ce15f14eb722c5a17fc8fec2a4356c1561f8da7f Author: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> AuthorDate: Mon Jan 6 11:56:25 2025 +0100 Commit: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> CommitDate: Thu Apr 17 00:23:07 2025 +0200 Remove obsolete fw declarations from editeng/ found with bin/find-unneeded-includes --fwdecl Change-Id: Ic021d9a47f9974d20ef011b34f4897847dd2628a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183884 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> diff --git a/editeng/inc/editattr.hxx b/editeng/inc/editattr.hxx index b416acfe2279..68b5f019f88d 100644 --- a/editeng/inc/editattr.hxx +++ b/editeng/inc/editattr.hxx @@ -28,29 +28,7 @@ #include <svl/itemset.hxx> class SvxFont; -class SvxFontItem; -class SvxWeightItem; -class SvxPostureItem; -class SvxShadowedItem; -class SvxEscapementItem; -class SvxContourItem; -class SvxCrossedOutItem; -class SvxUnderlineItem; -class SvxOverlineItem; -class SvxFontHeightItem; -class SvxCharScaleWidthItem; -class SvxColorItem; -class SvxAutoKernItem; -class SvxKerningItem; -class SvxWordLineModeItem; -class SvxFieldItem; -class SvxLanguageItem; -class SvxEmphasisMarkItem; -class SvxCharReliefItem; -class SfxVoidItem; class OutputDevice; -class SvxCaseMapItem; -class SfxGrabBagItem; #define CH_FEATURE u'\x0001' #define CH_SOFTHYPHEN u'\x00AD' diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx index 5a8aa8054b8f..dfb0adec96d2 100644 --- a/editeng/inc/editdoc.hxx +++ b/editeng/inc/editdoc.hxx @@ -44,7 +44,6 @@ #include <string_view> #include <vector> -class ImpEditEngine; enum class TextRotation; @@ -57,8 +56,6 @@ bool IsScriptItemValid( sal_uInt16 nItemId, short nScriptType ); EditCharAttrib* MakeCharAttrib( SfxItemPool& rPool, const SfxPoolItem& rAttr, sal_Int32 nS, sal_Int32 nE ); -class EditDoc; - class ContentAttribsInfo { private: diff --git a/editeng/inc/edtspell.hxx b/editeng/inc/edtspell.hxx index a63c395690c0..5cd8a93006ca 100644 --- a/editeng/inc/edtspell.hxx +++ b/editeng/inc/edtspell.hxx @@ -24,10 +24,6 @@ #include <editeng/svxenum.hxx> #include <editeng/misspellrange.hxx> -namespace com::sun::star::linguistic2 { - class XSpellChecker1; -} - class EditView; class EditEngine; diff --git a/editeng/inc/eerdll2.hxx b/editeng/inc/eerdll2.hxx index e7882904d688..622d91442f45 100644 --- a/editeng/inc/eerdll2.hxx +++ b/editeng/inc/eerdll2.hxx @@ -23,7 +23,6 @@ #include <editeng/forbiddencharacterstable.hxx> #include <vcl/virdev.hxx> -class SfxPoolItem; class VirtualDevice; namespace editeng diff --git a/editeng/source/editeng/editobj2.hxx b/editeng/source/editeng/editobj2.hxx index 30797fb8f238..9dc05f078ea4 100644 --- a/editeng/source/editeng/editobj2.hxx +++ b/editeng/source/editeng/editobj2.hxx @@ -32,12 +32,6 @@ #include <memory> #include <vector> -namespace editeng { - -struct Section; - -} - namespace svl { class SharedStringPool; diff --git a/editeng/source/editeng/editundo.hxx b/editeng/source/editeng/editundo.hxx index d43ba9553a39..f92d21740e90 100644 --- a/editeng/source/editeng/editundo.hxx +++ b/editeng/source/editeng/editundo.hxx @@ -26,7 +26,6 @@ #include <vector> #include <memory> -class EditTextObject; class EditEngine; enum class SetAttribsMode; enum class TransliterationFlags; diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 6201f894f984..86bbb9a6b9da 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -61,10 +61,6 @@ #include <string_view> #include <vector> -class EditView; -class EditEngine; -class OutlinerSearchable; - class SvxSearchItem; class SvxLRSpaceItem; struct SvxFontUnitMetrics; diff --git a/editeng/source/outliner/paralist.hxx b/editeng/source/outliner/paralist.hxx index 47413ff5ff6c..7d0d2426f82a 100644 --- a/editeng/source/outliner/paralist.hxx +++ b/editeng/source/outliner/paralist.hxx @@ -29,7 +29,6 @@ #include <o3tl/safeint.hxx> #include <tools/link.hxx> -class Paragraph; typedef struct _xmlTextWriter* xmlTextWriterPtr; class ParagraphList commit 924ab1962e95cef3c0c36c49606e037c0c1fd110 Author: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> AuthorDate: Mon Jan 6 12:26:13 2025 +0100 Commit: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> CommitDate: Thu Apr 17 00:22:52 2025 +0200 Remove obsolete fw declarations from embeddedobj/ extensions/ found with bin/find-unneeded-includes --fwdecl Change-Id: I029145e0f04b1ed90bb0d16c871891bca85b39a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183885 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de> diff --git a/embeddedobj/source/inc/commonembobj.hxx b/embeddedobj/source/inc/commonembobj.hxx index 2e2cfc38d326..15afee320f99 100644 --- a/embeddedobj/source/inc/commonembobj.hxx +++ b/embeddedobj/source/inc/commonembobj.hxx @@ -47,12 +47,6 @@ namespace com::sun::star { namespace embed { class XStorage; } - namespace lang { - class XMultiServiceFactory; - } - namespace util { - class XCloseListener; - } namespace beans { struct PropertyValue; struct NamedValue; @@ -72,8 +66,6 @@ namespace comphelper { #include "docholder.hxx" -namespace embeddedobj { class Interceptor; } - /** * Represents an OLE object that has native data and we loaded that data into a * document model successfully. diff --git a/embeddedobj/source/inc/dummyobject.hxx b/embeddedobj/source/inc/dummyobject.hxx index 64ee7deeb5e8..22bfcb6708ef 100644 --- a/embeddedobj/source/inc/dummyobject.hxx +++ b/embeddedobj/source/inc/dummyobject.hxx @@ -35,13 +35,6 @@ namespace com::sun::star { namespace embed { class XStorage; } - namespace util { - class XCloseListener; - } - namespace beans { - struct PropertyValue; - struct NamedValue; - } } /** diff --git a/extensions/source/abpilot/fieldmappingimpl.hxx b/extensions/source/abpilot/fieldmappingimpl.hxx index e4a2dd1c9649..faa61ac0321a 100644 --- a/extensions/source/abpilot/fieldmappingimpl.hxx +++ b/extensions/source/abpilot/fieldmappingimpl.hxx @@ -25,9 +25,6 @@ #include "addresssettings.hxx" namespace com::sun::star { - namespace lang { - class XMultiServiceFactory; - } namespace uno { class XComponentContext; } diff --git a/extensions/source/bibliography/bibview.hxx b/extensions/source/bibliography/bibview.hxx index 3bed8ed134c9..430af226aa49 100644 --- a/extensions/source/bibliography/bibview.hxx +++ b/extensions/source/bibliography/bibview.hxx @@ -25,8 +25,6 @@ class BibGeneralPage; class BibDataManager; -namespace com::sun::star::awt{ class XFocusListener;} - namespace bib { class BibView; diff --git a/extensions/source/bibliography/datman.hxx b/extensions/source/bibliography/datman.hxx index ad8a948699ca..12d955305ede 100644 --- a/extensions/source/bibliography/datman.hxx +++ b/extensions/source/bibliography/datman.hxx @@ -37,7 +37,6 @@ namespace weld { class Window; } namespace bib { - class BibView; class BibBeamer; } diff --git a/extensions/source/config/WinUserInfo/WinUserInfoBe.hxx b/extensions/source/config/WinUserInfo/WinUserInfoBe.hxx index 30ca088c3aca..0e69e40d0258 100644 --- a/extensions/source/config/WinUserInfo/WinUserInfoBe.hxx +++ b/extensions/source/config/WinUserInfo/WinUserInfoBe.hxx @@ -14,20 +14,6 @@ #include <cppuhelper/compbase.hxx> #include <memory> -namespace com -{ -namespace sun -{ -namespace star -{ -namespace uno -{ -class XComponentContext; -} -} -} -} - namespace extensions { namespace config diff --git a/extensions/source/propctrlr/commoncontrol.hxx b/extensions/source/propctrlr/commoncontrol.hxx index 746f2f56f600..a38208d90f94 100644 --- a/extensions/source/propctrlr/commoncontrol.hxx +++ b/extensions/source/propctrlr/commoncontrol.hxx @@ -27,7 +27,6 @@ #include <vcl/weld.hxx> #include <vcl/weldutils.hxx> -class NotifyEvent; class ColorListBox; class SvtCalendarBox; diff --git a/extensions/source/propctrlr/editpropertyhandler.hxx b/extensions/source/propctrlr/editpropertyhandler.hxx index 33ad8df98374..799fb70ecd14 100644 --- a/extensions/source/propctrlr/editpropertyhandler.hxx +++ b/extensions/source/propctrlr/editpropertyhandler.hxx @@ -27,8 +27,6 @@ namespace pcr //= EditPropertyHandler - - class EditPropertyHandler; /** a property handler for any virtual string properties */ class EditPropertyHandler : public PropertyHandlerComponent diff --git a/extensions/source/propctrlr/eformspropertyhandler.hxx b/extensions/source/propctrlr/eformspropertyhandler.hxx index 8945c24f493e..2bc94f2734cc 100644 --- a/extensions/source/propctrlr/eformspropertyhandler.hxx +++ b/extensions/source/propctrlr/eformspropertyhandler.hxx @@ -32,7 +32,6 @@ namespace pcr //= EFormsPropertyHandler - class EFormsPropertyHandler; class EFormsPropertyHandler : public PropertyHandlerComponent { private: diff --git a/extensions/source/propctrlr/propertycomposer.hxx b/extensions/source/propctrlr/propertycomposer.hxx index 5bcc58e23faf..28c9da8eca9a 100644 --- a/extensions/source/propctrlr/propertycomposer.hxx +++ b/extensions/source/propctrlr/propertycomposer.hxx @@ -121,7 +121,6 @@ namespace pcr } private: - class MethodGuard; friend class MethodGuard; class MethodGuard : public ::osl::MutexGuard { diff --git a/extensions/source/propctrlr/propertycontrolextender.hxx b/extensions/source/propctrlr/propertycontrolextender.hxx index e376223ebf35..d65b8cc4bc68 100644 --- a/extensions/source/propctrlr/propertycontrolextender.hxx +++ b/extensions/source/propctrlr/propertycontrolextender.hxx @@ -33,7 +33,6 @@ namespace pcr //= PropertyControlExtender - struct PropertyControlExtender_Data; typedef ::cppu::WeakImplHelper < css::awt::XKeyListener > PropertyControlExtender_Base; class PropertyControlExtender : public PropertyControlExtender_Base diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx index 96199b31af4c..55a97c9786d2 100644 --- a/extensions/source/propctrlr/propertyeditor.hxx +++ b/extensions/source/propctrlr/propertyeditor.hxx @@ -31,9 +31,7 @@ namespace pcr { class IPropertyLineListener; class IPropertyControlObserver; - class OBrowserPage; struct OLineDescriptor; - class OBrowserListBox; //= OPropertyEditor class OPropertyEditor final diff --git a/extensions/source/propctrlr/propertyhandler.hxx b/extensions/source/propctrlr/propertyhandler.hxx index 1d80142bc456..d50a531ba5bf 100644 --- a/extensions/source/propctrlr/propertyhandler.hxx +++ b/extensions/source/propctrlr/propertyhandler.hxx @@ -42,13 +42,6 @@ #include <memory> #include <vector> -namespace com::sun::star { - namespace inspection { - struct LineDescriptor; - class XPropertyControlFactory; - } -} - namespace weld { class Window; } namespace pcr diff --git a/extensions/source/propctrlr/submissionhandler.hxx b/extensions/source/propctrlr/submissionhandler.hxx index f263041b2134..478435bdff59 100644 --- a/extensions/source/propctrlr/submissionhandler.hxx +++ b/extensions/source/propctrlr/submissionhandler.hxx @@ -26,11 +26,6 @@ #include <comphelper/propmultiplex.hxx> #include <rtl/ref.hxx> -namespace comphelper -{ - class OPropertyChangeMultiplexer; -} - namespace pcr {