summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/dataaccessdescriptor.cxx3
-rw-r--r--svx/source/form/datanavi.cxx8
-rw-r--r--svx/source/form/dbcharsethelper.cxx1
-rw-r--r--svx/source/form/filtnav.cxx6
-rw-r--r--svx/source/form/fmPropBrw.cxx9
-rw-r--r--svx/source/form/fmdmod.cxx1
-rw-r--r--svx/source/form/fmdocumentclassification.cxx2
-rw-r--r--svx/source/form/fmdpage.cxx2
-rw-r--r--svx/source/form/fmexch.cxx3
-rw-r--r--svx/source/form/fmexpl.cxx24
-rw-r--r--svx/source/form/fmmodel.cxx1
-rw-r--r--svx/source/form/fmobj.cxx6
-rw-r--r--svx/source/form/fmobjfac.cxx1
-rw-r--r--svx/source/form/fmpage.cxx6
-rw-r--r--svx/source/form/fmpgeimp.cxx5
-rw-r--r--svx/source/form/fmscriptingenv.cxx1
-rw-r--r--svx/source/form/fmshell.cxx18
-rw-r--r--svx/source/form/fmshimp.cxx12
-rw-r--r--svx/source/form/fmsrccfg.cxx1
-rw-r--r--svx/source/form/fmsrcimp.cxx11
-rw-r--r--svx/source/form/fmtextcontroldialogs.cxx2
-rw-r--r--svx/source/form/fmtextcontrolshell.cxx7
-rw-r--r--svx/source/form/fmtools.cxx39
-rw-r--r--svx/source/form/fmundo.cxx6
-rw-r--r--svx/source/form/fmview.cxx20
-rw-r--r--svx/source/form/fmvwimp.cxx7
-rw-r--r--svx/source/form/formcontroller.cxx6
-rw-r--r--svx/source/form/navigatortree.cxx1
-rw-r--r--svx/source/form/navigatortreemodel.cxx2
-rw-r--r--svx/source/form/sqlparserclient.cxx2
-rw-r--r--svx/source/form/tabwin.cxx15
-rw-r--r--svx/source/form/tbxform.cxx6
-rw-r--r--svx/source/form/typemap.cxx3
-rw-r--r--svx/source/form/xfm_addcondition.cxx2
34 files changed, 10 insertions, 229 deletions
diff --git a/svx/source/form/dataaccessdescriptor.cxx b/svx/source/form/dataaccessdescriptor.cxx
index cbfea8c0e593..78538fbebb16 100644
--- a/svx/source/form/dataaccessdescriptor.cxx
+++ b/svx/source/form/dataaccessdescriptor.cxx
@@ -19,9 +19,7 @@
#include <svx/dataaccessdescriptor.hxx>
#include <osl/diagnose.h>
-#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/ucb/XContent.hpp>
-#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <tools/urlobj.hxx>
@@ -30,7 +28,6 @@
namespace svx
{
using namespace ::com::sun::star::uno;
- using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::ucb;
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 92cfa4e26707..59ae4d1f26bf 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -21,7 +21,6 @@
#include <memory>
-#include <sal/macros.h>
#include <sal/log.hxx>
#include <datanavi.hxx>
#include <fmservs.hxx>
@@ -32,14 +31,11 @@
#include <tools/diagnose_ex.h>
#include <unotools/resmgr.hxx>
#include <svx/xmlexchg.hxx>
-#include <svx/fmshell.hxx>
#include <svtools/miscopt.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/viewoptions.hxx>
#include <vcl/treelistentry.hxx>
-#include <sfx2/app.hxx>
#include <sfx2/filedlghelper.hxx>
-#include <sfx2/objitem.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/bindings.hxx>
@@ -50,14 +46,10 @@
#include <vcl/layout.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/container/XSet.hpp>
-#include <com/sun/star/datatransfer/XTransferable.hpp>
#include <com/sun/star/frame/XController.hpp>
-#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/xforms/XFormsSupplier.hpp>
#include <com/sun/star/xml/dom/XDocument.hpp>
-#include <com/sun/star/xml/dom/DOMException.hpp>
-#include <com/sun/star/form/binding/XValueBinding.hpp>
#include <comphelper/string.hxx>
using namespace ::com::sun::star::beans;
diff --git a/svx/source/form/dbcharsethelper.cxx b/svx/source/form/dbcharsethelper.cxx
index 64b4acec01e7..a20ffa7c1348 100644
--- a/svx/source/form/dbcharsethelper.cxx
+++ b/svx/source/form/dbcharsethelper.cxx
@@ -19,7 +19,6 @@
#include <dbcharsethelper.hxx>
-#include <connectivity/dbtools.hxx>
#include <connectivity/dbcharset.hxx>
using namespace ::dbtools;
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index bf8f215f6404..820315e0330d 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -24,12 +24,9 @@
#include <fmprop.hxx>
#include <svx/strings.hrc>
-#include <com/sun/star/awt/XControlModel.hpp>
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/form/runtime/XFormController.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/util/NumberFormatter.hpp>
-#include <com/sun/star/beans/XFastPropertySet.hpp>
#include <com/sun/star/sdb/SQLContext.hpp>
#include <comphelper/processfactory.hxx>
@@ -38,12 +35,9 @@
#include <connectivity/sqlnode.hxx>
#include <cppuhelper/implbase.hxx>
#include <i18nlangtag/languagetag.hxx>
-#include <fmservs.hxx>
#include <fmshimp.hxx>
#include <o3tl/safeint.hxx>
-#include <sfx2/dispatch.hxx>
#include <sfx2/objitem.hxx>
-#include <sfx2/objsh.hxx>
#include <sfx2/request.hxx>
#include <svx/dialmgr.hxx>
#include <svx/fmshell.hxx>
diff --git a/svx/source/form/fmPropBrw.cxx b/svx/source/form/fmPropBrw.cxx
index 33df59f4373f..f77b79f400f6 100644
--- a/svx/source/form/fmPropBrw.cxx
+++ b/svx/source/form/fmPropBrw.cxx
@@ -36,10 +36,7 @@
#include <svx/svxids.hrc>
#include <com/sun/star/awt/XControlContainer.hpp>
-#include <com/sun/star/awt/PosSize.hpp>
-#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/form/XForm.hpp>
#include <com/sun/star/form/FormComponentType.hpp>
#include <com/sun/star/form/inspection/DefaultFormComponentInspectorModel.hpp>
@@ -58,12 +55,8 @@
#include <o3tl/deleter.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/childwin.hxx>
-#include <sfx2/dispatch.hxx>
#include <sfx2/objitem.hxx>
#include <sfx2/objsh.hxx>
-#include <sfx2/viewfrm.hxx>
-#include <toolkit/helper/vclunohelper.hxx>
-#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <unotools/confignode.hxx>
#include <vcl/stdtext.hxx>
@@ -71,8 +64,6 @@
#include <vcl/weld.hxx>
#include <vcl/weldutils.hxx>
-#include <algorithm>
-
using namespace ::com::sun::star;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
diff --git a/svx/source/form/fmdmod.cxx b/svx/source/form/fmdmod.cxx
index 894dea39cb21..f7c71024d6da 100644
--- a/svx/source/form/fmdmod.cxx
+++ b/svx/source/form/fmdmod.cxx
@@ -25,7 +25,6 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
-#include <svx/fmglob.hxx>
using namespace ::svxform;
diff --git a/svx/source/form/fmdocumentclassification.cxx b/svx/source/form/fmdocumentclassification.cxx
index b079a26f54bf..16bde8e94857 100644
--- a/svx/source/form/fmdocumentclassification.cxx
+++ b/svx/source/form/fmdocumentclassification.cxx
@@ -23,7 +23,6 @@
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/xforms/XFormsSupplier.hpp>
-#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/frame/XModule.hpp>
#include <tools/diagnose_ex.h>
@@ -71,7 +70,6 @@ namespace svxform
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::xforms;
using namespace ::com::sun::star::container;
- using namespace ::com::sun::star::sdbc;
namespace
diff --git a/svx/source/form/fmdpage.cxx b/svx/source/form/fmdpage.cxx
index d39a3ba8371d..510abf37d457 100644
--- a/svx/source/form/fmdpage.cxx
+++ b/svx/source/form/fmdpage.cxx
@@ -19,12 +19,10 @@
#include <svx/fmpage.hxx>
#include <fmobj.hxx>
-#include <svx/fmglob.hxx>
#include <svx/fmdpage.hxx>
#include <svx/unoshape.hxx>
#include <vcl/svapp.hxx>
#include <cppuhelper/queryinterface.hxx>
-#include <cppuhelper/typeprovider.hxx>
using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::RuntimeException;
diff --git a/svx/source/form/fmexch.cxx b/svx/source/form/fmexch.cxx
index ce1087a26eab..c5957cef451d 100644
--- a/svx/source/form/fmexch.cxx
+++ b/svx/source/form/fmexch.cxx
@@ -19,9 +19,6 @@
#include <fmexch.hxx>
-#include <sot/storage.hxx>
-#include <svl/itempool.hxx>
-
#include <sot/formats.hxx>
#include <vcl/treelistbox.hxx>
#include <vcl/treelistentry.hxx>
diff --git a/svx/source/form/fmexpl.cxx b/svx/source/form/fmexpl.cxx
index de2495382db2..6f585dbecea5 100644
--- a/svx/source/form/fmexpl.cxx
+++ b/svx/source/form/fmexpl.cxx
@@ -23,43 +23,23 @@
#include <helpids.h>
#include <svx/fmglob.hxx>
-#include <fmservs.hxx>
-#include <svx/fmmodel.hxx>
+#include <svx/fmtools.hxx>
#include <fmexch.hxx>
-#include <fmundo.hxx>
-#include <fmpgeimp.hxx>
#include <svx/svxids.hrc>
#include <fmprop.hxx>
#include <bitmaps.hlst>
#include <svx/dialmgr.hxx>
-#include <svx/svditer.hxx>
-#include <svx/svdouno.hxx>
-#include <svx/svdobj.hxx>
-#include <sfx2/dispatch.hxx>
-#include <sfx2/objsh.hxx>
-#include <sfx2/viewsh.hxx>
-#include <sfx2/viewfrm.hxx>
+#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/form/FormComponentType.hpp>
-#include <com/sun/star/awt/XTabControllerModel.hpp>
-#include <vcl/menu.hxx>
#include <sfx2/objitem.hxx>
-#include <sfx2/request.hxx>
#include <svx/fmshell.hxx>
-#include <fmshimp.hxx>
-#include <svx/fmpage.hxx>
-#include <com/sun/star/io/XPersistObject.hpp>
-#include <com/sun/star/sdb/CommandType.hpp>
-#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <comphelper/types.hxx>
using namespace ::svxform;
using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::sdbc;
-using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::lang;
diff --git a/svx/source/form/fmmodel.cxx b/svx/source/form/fmmodel.cxx
index 908fdd193cb0..d616287ec80f 100644
--- a/svx/source/form/fmmodel.cxx
+++ b/svx/source/form/fmmodel.cxx
@@ -24,7 +24,6 @@
#include <svx/fmmodel.hxx>
#include <svx/fmpage.hxx>
-#include <svx/svdobj.hxx>
#include <sfx2/objsh.hxx>
diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx
index fc7c9aac731d..abb18c7f2f98 100644
--- a/svx/source/form/fmobj.cxx
+++ b/svx/source/form/fmobj.cxx
@@ -22,25 +22,19 @@
#include <fmvwimp.hxx>
#include <fmpgeimp.hxx>
#include <svx/fmview.hxx>
-#include <svx/fmglob.hxx>
#include <svx/fmpage.hxx>
-#include <editeng/editeng.hxx>
#include <svx/svdovirt.hxx>
#include <svx/fmmodel.hxx>
#include <com/sun/star/awt/XDevice.hpp>
-#include <com/sun/star/awt/XControlContainer.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/form/Forms.hpp>
-#include <com/sun/star/io/XPersistObject.hpp>
#include <com/sun/star/script/XEventAttacherManager.hpp>
-#include <com/sun/star/util/XCloneable.hpp>
#include <svx/fmtools.hxx>
#include <comphelper/property.hxx>
#include <comphelper/processfactory.hxx>
#include <toolkit/awt/vclxdevice.hxx>
-#include <vcl/svapp.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
diff --git a/svx/source/form/fmobjfac.cxx b/svx/source/form/fmobjfac.cxx
index 0fb1af632f87..5694776e09cd 100644
--- a/svx/source/form/fmobjfac.cxx
+++ b/svx/source/form/fmobjfac.cxx
@@ -29,7 +29,6 @@
#include <svx/fmglob.hxx>
#include <fmobj.hxx>
-#include <fmshimp.hxx>
#include <svx/fmshell.hxx>
diff --git a/svx/source/form/fmpage.cxx b/svx/source/form/fmpage.cxx
index 5fc8df9195c8..a77d7fef1f8e 100644
--- a/svx/source/form/fmpage.cxx
+++ b/svx/source/form/fmpage.cxx
@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <sal/macros.h>
-
#include <svx/fmpage.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -28,17 +26,13 @@
#include <fmpgeimp.hxx>
-#include <sfx2/objsh.hxx>
-#include <svx/svditer.hxx>
#include <svx/svdview.hxx>
#include <tools/urlobj.hxx>
#include <vcl/help.hxx>
-#include <svx/fmglob.hxx>
#include <fmprop.hxx>
#include <fmundo.hxx>
-#include <svx/fmtools.hxx>
using namespace ::svxform;
#include <comphelper/property.hxx>
#include <comphelper/types.hxx>
diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx
index 1cc539c58144..449cc724f04f 100644
--- a/svx/source/form/fmpgeimp.cxx
+++ b/svx/source/form/fmpgeimp.cxx
@@ -18,7 +18,6 @@
*/
-#include <svx/svxerr.hxx>
#include <fmpgeimp.hxx>
#include <fmundo.hxx>
#include <svx/fmtools.hxx>
@@ -35,19 +34,17 @@
#include <com/sun/star/container/EnumerableMap.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
#include <com/sun/star/form/Forms.hpp>
+#include <com/sun/star/form/FormComponentType.hpp>
#include <sal/log.hxx>
#include <sfx2/objsh.hxx>
-#include <svx/fmglob.hxx>
#include <svx/fmpage.hxx>
#include <svx/fmmodel.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
-#include <vcl/stdtext.hxx>
#include <svx/dialmgr.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/types.hxx>
-#include <unotools/streamwrap.hxx>
#include <connectivity/dbtools.hxx>
using namespace ::com::sun::star::uno;
diff --git a/svx/source/form/fmscriptingenv.cxx b/svx/source/form/fmscriptingenv.cxx
index 91760b358ebf..1febf7077aa5 100644
--- a/svx/source/form/fmscriptingenv.cxx
+++ b/svx/source/form/fmscriptingenv.cxx
@@ -47,7 +47,6 @@
#include <basic/basmgr.hxx>
#include <memory>
-#include <set>
#include <utility>
using std::pair;
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx
index 1be63bbfaaf4..31170e1ec6d6 100644
--- a/svx/source/form/fmshell.cxx
+++ b/svx/source/form/fmshell.cxx
@@ -20,19 +20,9 @@
#include <fmvwimp.hxx>
#include <svx/fmshell.hxx>
#include <svx/fmtools.hxx>
-#include <fmservs.hxx>
#include <fmprop.hxx>
-#include <fmpgeimp.hxx>
#include <fmundo.hxx>
-#include <com/sun/star/form/XLoadable.hpp>
-#include <com/sun/star/container/XNamed.hpp>
-#include <com/sun/star/sdbcx/Privilege.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/beans/XMultiPropertySet.hpp>
-#include <com/sun/star/beans/XFastPropertySet.hpp>
-#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
-#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/awt/XTabControllerModel.hpp>
#include <sfx2/viewfrm.hxx>
#include <vcl/svapp.hxx>
@@ -46,15 +36,12 @@
#include <sfx2/objface.hxx>
#include <sfx2/request.hxx>
#include <sfx2/dispatch.hxx>
-#include <sfx2/objsh.hxx>
#include <svx/svdobj.hxx>
#include <svx/fmpage.hxx>
#include <svx/svditer.hxx>
-#include <fmobj.hxx>
#include <svx/svxids.hrc>
-#include <fmexch.hxx>
#include <svx/fmglob.hxx>
#include <svl/eitem.hxx>
#include <tools/diagnose_ex.h>
@@ -66,8 +53,6 @@
#include <sfx2/viewsh.hxx>
#include <fmexpl.hxx>
#include <formcontrolling.hxx>
-#include <svl/numuno.hxx>
-#include <connectivity/dbtools.hxx>
#include <comphelper/types.hxx>
#include <fmdocumentclassification.hxx>
#include <formtoolbars.hxx>
@@ -79,9 +64,6 @@
#define ShellClass_FmFormShell
#include <svxslots.hxx>
-#include <tbxform.hxx>
-#include <com/sun/star/beans/PropertyValue.hpp>
-
#include <memory>
// is used for Invalidate -> maintain it as well
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index 8a8cf4a97484..ec321d6b11a0 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -32,7 +32,6 @@
#include <fmundo.hxx>
#include <fmurl.hxx>
#include <fmvwimp.hxx>
-#include <formtoolbars.hxx>
#include <gridcols.hxx>
#include <svx/svditer.hxx>
#include <svx/dialmgr.hxx>
@@ -54,18 +53,13 @@
#include <com/sun/star/awt/XListBox.hpp>
#include <com/sun/star/awt/XTextComponent.hpp>
#include <com/sun/star/beans/theIntrospection.hpp>
-#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/container/XContainer.hpp>
-#include <com/sun/star/container/XEnumeration.hpp>
-#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/form/ListSourceType.hpp>
#include <com/sun/star/form/TabOrderDialog.hpp>
-#include <com/sun/star/form/XBoundComponent.hpp>
-#include <com/sun/star/form/XBoundControl.hpp>
#include <com/sun/star/form/XGrid.hpp>
#include <com/sun/star/form/XGridPeer.hpp>
#include <com/sun/star/form/XLoadable.hpp>
@@ -77,10 +71,8 @@
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
-#include <com/sun/star/util/XCancellable.hpp>
#include <com/sun/star/util/XModeSelector.hpp>
-#include <com/sun/star/util/XModifyBroadcaster.hpp>
-#include <com/sun/star/util/XNumberFormatter.hpp>
+#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <comphelper/evtmethodhelper.hxx>
@@ -92,7 +84,6 @@
#include <comphelper/types.hxx>
#include <connectivity/dbtools.hxx>
#include <sfx2/dispatch.hxx>
-#include <sfx2/docfile.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/viewfrm.hxx>
@@ -106,7 +97,6 @@
#include <vcl/svapp.hxx>
#include <algorithm>
-#include <functional>
#include <map>
#include <memory>
#include <vector>
diff --git a/svx/source/form/fmsrccfg.cxx b/svx/source/form/fmsrccfg.cxx
index e2a0492363c2..f7827df23e3d 100644
--- a/svx/source/form/fmsrccfg.cxx
+++ b/svx/source/form/fmsrccfg.cxx
@@ -19,7 +19,6 @@
#include <svx/fmsrccfg.hxx>
-#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <i18nutil/transliteration.hxx>
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx
index 5031cf2a2fba..82a6313a9ae1 100644
--- a/svx/source/form/fmsrcimp.cxx
+++ b/svx/source/form/fmsrcimp.cxx
@@ -20,8 +20,6 @@
#include <sal/config.h>
#include <o3tl/safeint.hxx>
-#include <rtl/strbuf.hxx>
-#include <sal/log.hxx>
#include <svx/fmtools.hxx>
#include <svx/fmsrccfg.hxx>
#include <tools/debug.hxx>
@@ -32,27 +30,20 @@
#include <com/sun/star/awt/XTextComponent.hpp>
#include <com/sun/star/awt/XListBox.hpp>
#include <com/sun/star/awt/XCheckBox.hpp>
+#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/util/SearchAlgorithms2.hpp>
-#include <com/sun/star/util/SearchResult.hpp>
#include <com/sun/star/util/SearchFlags.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/i18n/CollatorOptions.hpp>
#include <com/sun/star/sdb/XColumn.hpp>
-#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
-#include <com/sun/star/util/NumberFormatter.hpp>
-#include <com/sun/star/util/NumberFormat.hpp>
-#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
-#include <com/sun/star/util/XNumberFormats.hpp>
#include <fmprop.hxx>
-#include <fmservs.hxx>
#include <svx/fmsrcimp.hxx>
-#include <svx/fmsearch.hxx>
#include <comphelper/types.hxx>
#include <unotools/syslocale.hxx>
diff --git a/svx/source/form/fmtextcontroldialogs.cxx b/svx/source/form/fmtextcontroldialogs.cxx
index c6d3b0d3e5a1..0c7c2a7de59c 100644
--- a/svx/source/form/fmtextcontroldialogs.cxx
+++ b/svx/source/form/fmtextcontroldialogs.cxx
@@ -21,8 +21,6 @@
#include <svx/dialogs.hrc>
#include <svx/svxids.hrc>
-#include <editeng/eeitem.hxx>
-
#include <svx/flagsdef.hxx>
#include <svl/intitem.hxx>
diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx
index 6e609ad84a9f..51501bc5c807 100644
--- a/svx/source/form/fmtextcontrolshell.cxx
+++ b/svx/source/form/fmtextcontrolshell.cxx
@@ -24,16 +24,12 @@
#include <fmtextcontrolshell.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/editeng.hxx>
-#include <editeng/eeitem.hxx>
-#include <svx/fmglob.hxx>
#include <editeng/scriptspaceitem.hxx>
#include <svx/svxids.hrc>
#include <editeng/udlnitem.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/awt/FontDescriptor.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
-#include <com/sun/star/form/XForm.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/awt/XFocusListener.hpp>
#include <com/sun/star/awt/XMouseListener.hpp>
@@ -52,15 +48,14 @@
#include <sfx2/sfxuno.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/eitem.hxx>
-#include <svl/intitem.hxx>
#include <svl/itempool.hxx>
#include <svl/languageoptions.hxx>
#include <svtools/stringtransfer.hxx>
#include <svl/whiter.hxx>
#include <toolkit/helper/vclunohelper.hxx>
+#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
-#include <vcl/outdev.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
diff --git a/svx/source/form/fmtools.cxx b/svx/source/form/fmtools.cxx
index 0e3dd230e5f9..ec7304918b19 100644
--- a/svx/source/form/fmtools.cxx
+++ b/svx/source/form/fmtools.cxx
@@ -24,63 +24,28 @@
#include <svx/fmglob.hxx>
#include <com/sun/star/awt/LineEndFormat.hpp>
-#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include <com/sun/star/beans/XIntrospection.hpp>
-#include <com/sun/star/container/XChild.hpp>
+#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/form/XForm.hpp>
-#include <com/sun/star/form/XFormComponent.hpp>
-#include <com/sun/star/form/XGridColumnFactory.hpp>
-#include <com/sun/star/io/XActiveDataSink.hpp>
-#include <com/sun/star/io/XActiveDataSource.hpp>
-#include <com/sun/star/io/XObjectInputStream.hpp>
-#include <com/sun/star/io/XObjectOutputStream.hpp>
#include <com/sun/star/io/XPersistObject.hpp>
-#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdb/ErrorCondition.hpp>
#include <com/sun/star/sdb/ErrorMessageDialog.hpp>
#include <com/sun/star/sdb/SQLContext.hpp>
#include <com/sun/star/sdb/SQLErrorEvent.hpp>
#include <com/sun/star/sdb/XCompletedConnection.hpp>
-#include <com/sun/star/sdb/XQueriesSupplier.hpp>
#include <com/sun/star/sdb/XResultSetAccess.hpp>
-#include <com/sun/star/sdbc/DataType.hpp>
-#include <com/sun/star/sdbc/XDataSource.hpp>
-#include <com/sun/star/sdbcx/Privilege.hpp>
-#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
-#include <com/sun/star/task/XInteractionHandler.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
-#include <com/sun/star/uno/XNamingService.hpp>
#include <com/sun/star/util/Language.hpp>
-#include <com/sun/star/util/NumberFormat.hpp>
-#include <com/sun/star/util/XCloneable.hpp>
-#include <com/sun/star/util/XNumberFormatTypes.hpp>
-#include <com/sun/star/util/XNumberFormats.hpp>
-#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
-#include <com/sun/star/util/XNumberFormatter.hpp>
-
-#include <basic/sbxvar.hxx>
-#include <svl/eitem.hxx>
-#include <svl/stritem.hxx>
+
#include <comphelper/processfactory.hxx>
#include <comphelper/property.hxx>
#include <comphelper/types.hxx>
-#include <connectivity/dbexception.hxx>
-#include <connectivity/dbtools.hxx>
-#include <cppuhelper/typeprovider.hxx>
#include <osl/diagnose.h>
-#include <rtl/math.hxx>
-#include <sfx2/bindings.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
-#include <vcl/stdtext.hxx>
#include <vcl/svapp.hxx>
-#include <algorithm>
-
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index de10047759c1..7b8fa027941f 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -28,7 +28,6 @@
#include <fmobj.hxx>
#include <fmprop.hxx>
#include <svx/strings.hrc>
-#include <svx/fmglob.hxx>
#include <svx/dialmgr.hxx>
#include <svx/fmmodel.hxx>
#include <svx/fmpage.hxx>
@@ -40,17 +39,13 @@
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <com/sun/star/form/binding/XBindableValue.hpp>
#include <com/sun/star/form/binding/XListEntrySink.hpp>
-#include <com/sun/star/reflection/XInterfaceMethodTypeDescription.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <svx/fmtools.hxx>
-#include <svl/macitem.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <sfx2/objsh.hxx>
-#include <sfx2/docfile.hxx>
-#include <sfx2/app.hxx>
#include <sfx2/event.hxx>
#include <osl/mutex.hxx>
#include <comphelper/property.hxx>
@@ -66,7 +61,6 @@ using namespace ::com::sun::star::script;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::util;
-using namespace ::com::sun::star::reflection;
using namespace ::com::sun::star::form::binding;
using namespace ::com::sun::star::sdbc;
using namespace ::svxform;
diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx
index 8808bd01dd52..1ed008e59633 100644
--- a/svx/source/form/fmview.cxx
+++ b/svx/source/form/fmview.cxx
@@ -21,48 +21,28 @@
#ifdef REFERENCE
#undef REFERENCE
#endif
-#include <svtools/ehdl.hxx>
-#include <unotools/moduleoptions.hxx>
#include <com/sun/star/sdb/SQLContext.hpp>
-#include <com/sun/star/uno/XNamingService.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
-#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/form/XLoadable.hpp>
-#include <com/sun/star/form/XReset.hpp>
#include <fmvwimp.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/bindings.hxx>
-#include <sfx2/dispatch.hxx>
-#include <basic/sbuno.hxx>
-#include <basic/sbx.hxx>
#include <fmobj.hxx>
#include <svx/svditer.hxx>
#include <svx/svdpagv.hxx>
-#include <svx/svdogrp.hxx>
#include <svx/fmview.hxx>
#include <svx/fmmodel.hxx>
#include <svx/fmpage.hxx>
#include <svx/fmshell.hxx>
-#include <fmpgeimp.hxx>
-#include <svx/fmtools.hxx>
#include <fmshimp.hxx>
#include <fmservs.hxx>
-#include <fmprop.hxx>
#include <fmundo.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <comphelper/namedvaluecollection.hxx>
-#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/beans/PropertyState.hpp>
-#include <com/sun/star/form/FormComponentType.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <vcl/svapp.hxx>
#include <tools/debug.hxx>
-#include <tools/diagnose_ex.h>
-#include <vcl/stdtext.hxx>
-#include <svx/fmglob.hxx>
#include <svx/sdrpagewindow.hxx>
#include <svx/sdrpaintwindow.hxx>
#include <svx/svxids.hrc>
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index 540816d79459..5f78a4a71204 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -27,7 +27,6 @@
#include <fmservs.hxx>
#include <fmshimp.hxx>
#include <svx/fmtools.hxx>
-#include <fmundo.hxx>
#include <fmvwimp.hxx>
#include <formcontrolfactory.hxx>
#include <svx/sdrpaintwindow.hxx>
@@ -48,16 +47,12 @@
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
#include <com/sun/star/sdbc/XRowSet.hpp>
-#include <com/sun/star/form/XLoadable.hpp>
-#include <com/sun/star/awt/VisualEffect.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/util/XNumberFormats.hpp>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
-#include <com/sun/star/sdbc/ColumnValue.hpp>
#include <com/sun/star/form/FormComponentType.hpp>
#include <com/sun/star/form/FormButtonType.hpp>
-#include <com/sun/star/form/XReset.hpp>
#include <com/sun/star/form/binding/XBindableValue.hpp>
#include <com/sun/star/form/binding/XValueBinding.hpp>
#include <com/sun/star/form/runtime/FormController.hpp>
@@ -67,9 +62,7 @@
#include <com/sun/star/awt/XTabController.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/awt/XControl.hpp>
-#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
-#include <com/sun/star/sdbc/XPreparedStatement.hpp>
#include <com/sun/star/sdb/XQueriesSupplier.hpp>
#include <com/sun/star/container/XContainer.hpp>
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 891df87d305f..6bc3c9e144e6 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -55,9 +55,7 @@
#include <com/sun/star/sdb/SQLFilterOperator.hpp>
#include <com/sun/star/sdb/XInteractionSupplyParameters.hpp>
#include <com/sun/star/sdbc/ColumnValue.hpp>
-#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
-#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/form/runtime/FormOperations.hpp>
#include <com/sun/star/form/runtime/FormFeature.hpp>
#include <com/sun/star/container/XContainer.hpp>
@@ -73,9 +71,7 @@
#include <comphelper/sequence.hxx>
#include <comphelper/flagguard.hxx>
#include <comphelper/types.hxx>
-#include <cppuhelper/queryinterface.hxx>
#include <cppuhelper/supportsservice.hxx>
-#include <cppuhelper/typeprovider.hxx>
#include <connectivity/IParseContext.hxx>
#include <connectivity/dbtools.hxx>
#include <connectivity/sqlparse.hxx>
@@ -94,8 +90,6 @@
#include <algorithm>
#include <iterator>
-#include <o3tl/functional.hxx>
-
using namespace ::com::sun::star;
using namespace ::comphelper;
using namespace ::connectivity;
diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx
index 12995e5c7167..2f62c697eda4 100644
--- a/svx/source/form/navigatortree.cxx
+++ b/svx/source/form/navigatortree.cxx
@@ -50,7 +50,6 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <svx/sdrpaintwindow.hxx>
-#include <svx/svxdlg.hxx>
#include <svx/strings.hrc>
#include <tools/diagnose_ex.h>
#include <svx/svxids.hrc>
diff --git a/svx/source/form/navigatortreemodel.cxx b/svx/source/form/navigatortreemodel.cxx
index 12589592697e..a0f6baa661a8 100644
--- a/svx/source/form/navigatortreemodel.cxx
+++ b/svx/source/form/navigatortreemodel.cxx
@@ -21,10 +21,8 @@
#include <svx/fmshell.hxx>
#include <svx/fmmodel.hxx>
#include <svx/fmpage.hxx>
-#include <svx/fmglob.hxx>
#include <svx/svditer.hxx>
#include <svx/svdogrp.hxx>
-#include <svx/svdpagv.hxx>
#include <fmprop.hxx>
diff --git a/svx/source/form/sqlparserclient.cxx b/svx/source/form/sqlparserclient.cxx
index e350dc1f1c3a..232f0418ddf6 100644
--- a/svx/source/form/sqlparserclient.cxx
+++ b/svx/source/form/sqlparserclient.cxx
@@ -18,9 +18,7 @@
*/
#include <sqlparserclient.hxx>
-#include <svx/ParseContext.hxx>
-#include <connectivity/dbtools.hxx>
#include <connectivity/sqlparse.hxx>
using namespace ::dbtools;
diff --git a/svx/source/form/tabwin.cxx b/svx/source/form/tabwin.cxx
index 4bf6015c0913..063f00a9ac3c 100644
--- a/svx/source/form/tabwin.cxx
+++ b/svx/source/form/tabwin.cxx
@@ -19,38 +19,27 @@
#include <tabwin.hxx>
-#include <svx/fmtools.hxx>
#include <fmservs.hxx>
#include <svx/strings.hrc>
#include <svx/svxids.hrc>
#include <com/sun/star/sdb/CommandType.hpp>
-#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
-#include <com/sun/star/sdb/XQueriesSupplier.hpp>
-#include <com/sun/star/sdbc/XPreparedStatement.hpp>
-#include <com/sun/star/awt/XControlContainer.hpp>
-#include <com/sun/star/util/XLocalizedAliases.hpp>
+#include <com/sun/star/sdbc/XConnection.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/types.hxx>
#include <helpids.h>
#include <svx/fmshell.hxx>
#include <fmshimp.hxx>
-#include <svx/fmpage.hxx>
-
-#include <fmpgeimp.hxx>
#include <fmprop.hxx>
#include <svx/dialmgr.hxx>
-#include <svx/svdpagv.hxx>
+#include <sfx2/bindings.hxx>
#include <sfx2/objitem.hxx>
-#include <sfx2/dispatch.hxx>
-#include <comphelper/property.hxx>
#include <sfx2/frame.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <tools/diagnose_ex.h>
-#include <vcl/svapp.hxx>
#include <tabwin.hrc>
const long STD_WIN_SIZE_X = 120;
diff --git a/svx/source/form/tbxform.cxx b/svx/source/form/tbxform.cxx
index 3d45d19519a1..292030cb4793 100644
--- a/svx/source/form/tbxform.cxx
+++ b/svx/source/form/tbxform.cxx
@@ -17,24 +17,18 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <string>
#include <svl/intitem.hxx>
#include <svl/eitem.hxx>
#include <svl/stritem.hxx>
-#include <sfx2/dispatch.hxx>
#include <vcl/event.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/settings.hxx>
-#include <formtoolbars.hxx>
#include <labelitemwindow.hxx>
#include <svx/dialmgr.hxx>
#include <svx/svxids.hrc>
#include <svx/strings.hrc>
-#include <svx/tbxctl.hxx>
#include <tbxform.hxx>
-#include <sfx2/viewfrm.hxx>
-#include <sfx2/viewsh.hxx>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
diff --git a/svx/source/form/typemap.cxx b/svx/source/form/typemap.cxx
index 9db75349d3e1..b169b745c641 100644
--- a/svx/source/form/typemap.cxx
+++ b/svx/source/form/typemap.cxx
@@ -21,8 +21,6 @@
#include <sfx2/objitem.hxx>
#include <sfx2/msg.hxx>
-#include <svl/stritem.hxx>
-#include <svl/intitem.hxx>
#include <svl/memberid.h>
#include <editeng/wghtitem.hxx>
#include <editeng/udlnitem.hxx>
@@ -44,7 +42,6 @@
#include <editeng/lspcitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/kernitem.hxx>
-#include <editeng/tstpitem.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/emphasismarkitem.hxx>
diff --git a/svx/source/form/xfm_addcondition.cxx b/svx/source/form/xfm_addcondition.cxx
index d2210073da8d..6c8d6ef35ab5 100644
--- a/svx/source/form/xfm_addcondition.cxx
+++ b/svx/source/form/xfm_addcondition.cxx
@@ -22,8 +22,6 @@
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <comphelper/processfactory.hxx>
-#include <cppuhelper/typeprovider.hxx>
-#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/svapp.hxx>
#include <datanavi.hxx>
#include <fmservs.hxx>