summaryrefslogtreecommitdiff
path: root/include/dbaccess
diff options
context:
space:
mode:
authorJorenz Paragas <j.paragas.237@gmail.com>2016-06-15 21:00:59 -0700
committerMichael Stahl <mstahl@redhat.com>2016-06-16 12:23:15 +0000
commit26fa322583147f87511b2d77e8701228838f8c73 (patch)
treecdc3eb3f42b268e5d1dbb5a637a8199614d402a7 /include/dbaccess
parentc3becbd21f17fe7a90e724aa9b170a57d52320bb (diff)
tdf#42949: clean up includes in include/dbaccess with iwyu
Change-Id: I40de14b82b698b927cb461376470dc177c16d58c Reviewed-on: https://gerrit.libreoffice.org/26345 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include/dbaccess')
-rw-r--r--include/dbaccess/AsynchronousLink.hxx2
-rw-r--r--include/dbaccess/IController.hxx8
-rw-r--r--include/dbaccess/ToolBoxHelper.hxx6
-rw-r--r--include/dbaccess/controllerframe.hxx9
-rw-r--r--include/dbaccess/dataview.hxx24
-rw-r--r--include/dbaccess/dbaundomanager.hxx33
-rw-r--r--include/dbaccess/dbsubcomponentcontroller.hxx47
-rw-r--r--include/dbaccess/genericcontroller.hxx70
8 files changed, 142 insertions, 57 deletions
diff --git a/include/dbaccess/AsynchronousLink.hxx b/include/dbaccess/AsynchronousLink.hxx
index aaeb187d974c..8adefd1d45dc 100644
--- a/include/dbaccess/AsynchronousLink.hxx
+++ b/include/dbaccess/AsynchronousLink.hxx
@@ -20,8 +20,8 @@
#ifndef INCLUDED_DBACCESS_ASYNCRONOUSLINK_HXX
#define INCLUDED_DBACCESS_ASYNCRONOUSLINK_HXX
-#include <tools/link.hxx>
#include <osl/mutex.hxx>
+#include <tools/link.hxx>
struct ImplSVEvent;
diff --git a/include/dbaccess/IController.hxx b/include/dbaccess/IController.hxx
index 01ea207f00b9..f19ca143a1c0 100644
--- a/include/dbaccess/IController.hxx
+++ b/include/dbaccess/IController.hxx
@@ -20,11 +20,17 @@
#ifndef INCLUDED_DBACCESS_ICONTROLLER_HXX
#define INCLUDED_DBACCESS_ICONTROLLER_HXX
-#include <com/sun/star/beans/PropertyValue.hpp>
+#include <com/sun/star/uno/Reference.hxx>
+#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <dbaccess/dbaccessdllapi.h>
+#include <rtl/ustring.hxx>
+#include <sal/types.h>
namespace com { namespace sun { namespace star {
+ namespace beans {
+ struct PropertyValue;
+ }
namespace util {
struct URL;
}
diff --git a/include/dbaccess/ToolBoxHelper.hxx b/include/dbaccess/ToolBoxHelper.hxx
index a7ad8375e00b..7386bf35cbc3 100644
--- a/include/dbaccess/ToolBoxHelper.hxx
+++ b/include/dbaccess/ToolBoxHelper.hxx
@@ -20,13 +20,13 @@
#ifndef INCLUDED_DBACCESS_TOOLBOXHELPER_HXX
#define INCLUDED_DBACCESS_TOOLBOXHELPER_HXX
+#include <dbaccess/dbaccessdllapi.h>
#include <sal/types.h>
#include <tools/link.hxx>
-#include <vcl/image.hxx>
#include <vcl/vclptr.hxx>
-#include <dbaccess/dbaccessdllapi.h>
-class SvtMiscOptions;
+class LinkParamNone;
+class Size;
class ToolBox;
class VclSimpleEvent;
diff --git a/include/dbaccess/controllerframe.hxx b/include/dbaccess/controllerframe.hxx
index dbf30ceb3a73..fd14bb02f92a 100644
--- a/include/dbaccess/controllerframe.hxx
+++ b/include/dbaccess/controllerframe.hxx
@@ -20,11 +20,14 @@
#ifndef INCLUDED_DBACCESS_CONTROLLERFRAME_HXX
#define INCLUDED_DBACCESS_CONTROLLERFRAME_HXX
-#include <com/sun/star/frame/XFrame.hpp>
-#include <com/sun/star/frame/FrameAction.hpp>
-
#include <memory>
+#include <com/sun/star/frame/FrameAction.hpp>
+#include <com/sun/star/uno/Reference.hxx>
+
+namespace com { namespace sun { namespace star {
+ namespace frame { class XFrame; }
+} } }
namespace dbaui
{
diff --git a/include/dbaccess/dataview.hxx b/include/dbaccess/dataview.hxx
index dffc73bb7abd..289697ef0637 100644
--- a/include/dbaccess/dataview.hxx
+++ b/include/dbaccess/dataview.hxx
@@ -19,16 +19,30 @@
#ifndef INCLUDED_DBACCESS_DATAVIEW_HXX
#define INCLUDED_DBACCESS_DATAVIEW_HXX
+#include <memory>
+
+#include <com/sun/star/uno/Reference.hxx>
#include <dbaccess/dbaccessdllapi.h>
+#include <rtl/ref.hxx>
+#include <tools/wintypes.hxx>
+#include <vcl/outdev.hxx>
+#include <vcl/vclptr.hxx>
+#include <vcl/window.hxx>
-#include <com/sun/star/uno/XComponentContext.hpp>
-#include <svtools/acceleratorexecute.hxx>
-#include <sal/macros.h>
-#include <vcl/fixed.hxx>
+namespace com { namespace sun { namespace star {
+ namespace frame { class XFrame; }
+ namespace uno { class XComponentContext; }
+} } }
-#include <memory>
+namespace svt {
+ class AcceleratorExecute;
+}
+class DataChangedEvent;
class FixedLine;
+class NotifyEvent;
+class Rectangle;
+
namespace dbaui
{
class IController;
diff --git a/include/dbaccess/dbaundomanager.hxx b/include/dbaccess/dbaundomanager.hxx
index 3f4ef39ca3f1..b855c0d682a0 100644
--- a/include/dbaccess/dbaundomanager.hxx
+++ b/include/dbaccess/dbaundomanager.hxx
@@ -20,13 +20,38 @@
#ifndef INCLUDED_DBACCESS_DBAUNDOMANAGER_HXX
#define INCLUDED_DBACCESS_DBAUNDOMANAGER_HXX
-#include <dbaccess/dbaccessdllapi.h>
+#include <exception>
+#include <memory>
+#include <com/sun/star/document/EmptyUndoStackException.hpp>
+#include <com/sun/star/document/UndoContextNotClosedException.hpp>
+#include <com/sun/star/document/UndoFailedException.hpp>
#include <com/sun/star/document/XUndoManager.hpp>
-
+#include <com/sun/star/lang/IllegalArgumentException.hpp>
+#include <com/sun/star/lang/NoSupportException.hpp>
+#include <com/sun/star/uno/Reference.hxx>
+#include <com/sun/star/uno/RuntimeException.hpp>
+#include <com/sun/star/uno/Sequence.hxx>
+#include <com/sun/star/util/InvalidStateException.hpp>
+#include <com/sun/star/util/NotLockedException.hpp>
#include <cppuhelper/implbase1.hxx>
-
-#include <memory>
+#include <dbaccess/dbaccessdllapi.h>
+#include <rtl/ustring.hxx>
+#include <sal/types.h>
+
+namespace com { namespace sun { namespace star {
+ namespace document { class XUndoAction; }
+ namespace document { class XUndoManagerListener; }
+ namespace uno { class XInterface; }
+} } }
+
+namespace cppu {
+ class OWeakObject;
+}
+
+namespace osl {
+ class Mutex;
+}
class SfxUndoManager;
diff --git a/include/dbaccess/dbsubcomponentcontroller.hxx b/include/dbaccess/dbsubcomponentcontroller.hxx
index 5805bdc0ee73..a43b28d61580 100644
--- a/include/dbaccess/dbsubcomponentcontroller.hxx
+++ b/include/dbaccess/dbsubcomponentcontroller.hxx
@@ -20,32 +20,45 @@
#ifndef INCLUDED_DBACCESS_DBSUBCOMPONENTCONTROLLER_HXX
#define INCLUDED_DBACCESS_DBSUBCOMPONENTCONTROLLER_HXX
-#include <dbaccess/genericcontroller.hxx>
+#include <exception>
+#include <memory>
+#include <com/sun/star/beans/PropertyVetoException.hpp>
#include <com/sun/star/document/XScriptInvocationContext.hpp>
-#include <com/sun/star/sdbc/XConnection.hpp>
-#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
-#include <com/sun/star/sdbc/XDataSource.hpp>
-#include <com/sun/star/util/XNumberFormatter.hpp>
+#include <com/sun/star/lang/EventObject.hpp>
+#include <com/sun/star/uno/Any.hxx>
+#include <com/sun/star/uno/Reference.hxx>
+#include <com/sun/star/uno/RuntimeException.hpp>
+#include <com/sun/star/uno/Sequence.hxx>
+#include <com/sun/star/uno/Type.hxx>
#include <com/sun/star/util/XModifiable.hpp>
-
-#include <comphelper/broadcasthelper.hxx>
-#include <comphelper/proparrhlp.hxx>
-#include <comphelper/propertycontainer.hxx>
-#include <connectivity/dbmetadata.hxx>
#include <cppuhelper/implbase.hxx>
-
-#include <memory>
-
+#include <dbaccess/dbaccessdllapi.h>
+#include <dbaccess/genericcontroller.hxx>
+#include <rtl/ustring.hxx>
+#include <sal/types.h>
+
+namespace com { namespace sun { namespace star {
+ namespace beans { class XPropertySet; }
+ namespace beans { struct PropertyValue; }
+ namespace document { class XEmbeddedScripts; }
+ namespace frame { class XModel; }
+ namespace sdbc { class XConnection; }
+ namespace sdbc { class XDatabaseMetaData; }
+ namespace uno { class XComponentContext; }
+ namespace util { class XModifyListener; }
+ namespace util { class XNumberFormatter; }
+} } }
+
+namespace dbtools {
+ class DatabaseMetaData;
+ class SQLExceptionInfo;
+}
namespace dbaui
{
-
-
//= DBSubComponentController
- class DBSubComponentController;
-
typedef ::cppu::ImplInheritanceHelper< OGenericUnoController
, css::document::XScriptInvocationContext
, css::util::XModifiable
diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx
index dae637c6bf0d..53c32cb34249 100644
--- a/include/dbaccess/genericcontroller.hxx
+++ b/include/dbaccess/genericcontroller.hxx
@@ -23,52 +23,76 @@
#include <sal/config.h>
#include <deque>
+#include <exception>
+#include <functional>
#include <map>
+#include <memory>
#include <vector>
-#include <dbaccess/AsynchronousLink.hxx>
-#include <dbaccess/controllerframe.hxx>
-#include <dbaccess/dbaccessdllapi.h>
-#include <dbaccess/IController.hxx>
+#include <boost/optional.hpp>
+#include <com/sun/star/awt/XUserInputInterception.hpp>
#include <com/sun/star/frame/CommandGroup.hpp>
+#include <com/sun/star/frame/DispatchInformation.hpp>
#include <com/sun/star/frame/XController2.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XDispatchInformationProvider.hpp>
#include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
-#include <com/sun/star/frame/XFrameActionListener.hpp>
+#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/frame/XTitle.hpp>
#include <com/sun/star/frame/XTitleChangeBroadcaster.hpp>
-#include <com/sun/star/frame/XLayoutManager.hpp>
+#include <com/sun/star/lang/EventObject.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/sdb/XDatabaseContext.hpp>
-#include <com/sun/star/sdbc/XConnection.hpp>
-#include <com/sun/star/sdbc/XDataSource.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
+#include <com/sun/star/uno/Any.hxx>
+#include <com/sun/star/uno/Exception.hpp>
+#include <com/sun/star/uno/Reference.hxx>
+#include <com/sun/star/uno/RuntimeException.hpp>
+#include <com/sun/star/uno/Sequence.hxx>
+#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/util/XModifyListener.hpp>
-#include <com/sun/star/util/XURLTransformer.hpp>
-#include <com/sun/star/awt/XUserInputInterception.hpp>
-
-#include <comphelper/broadcasthelper.hxx>
#include <comphelper/sharedmutex.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <connectivity/dbexception.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/interfacecontainer.h>
-
-#include <boost/optional.hpp>
-#include <sfx2/userinputinterception.hxx>
+#include <dbaccess/AsynchronousLink.hxx>
+#include <dbaccess/controllerframe.hxx>
+#include <dbaccess/dbaccessdllapi.h>
+#include <dbaccess/IController.hxx>
+#include <osl/mutex.hxx>
+#include <rtl/string.hxx>
+#include <rtl/ustring.hxx>
+#include <sal/types.h>
+#include <tools/link.hxx>
#include <vcl/vclptr.hxx>
-#include <com/sun/star/ui/XSidebarProvider.hpp>
-
-namespace dbtools
-{
- class SQLExceptionInfo;
-}
+namespace com { namespace sun { namespace star {
+ namespace awt { class XKeyHandler; }
+ namespace awt { class XMouseClickHandler; }
+ namespace awt { class XWindow; }
+ namespace beans { struct PropertyValue; }
+ namespace frame { class XController; }
+ namespace frame { class XDispatchProvider; }
+ namespace frame { class XFrame; }
+ namespace frame { class XFrameActionListener; }
+ namespace frame { class XModel; }
+ namespace frame { class XStatusListener; }
+ namespace frame { class XTitleChangeListener; }
+ namespace frame { struct DispatchDescriptor; }
+ namespace frame { struct FrameActionEvent; }
+ namespace lang { class XEventListener; }
+ namespace sdb { class XDatabaseContext; }
+ namespace sdbc { class XConnection; }
+ namespace sdbc { class XDataSource; }
+ namespace ui { class XSidebarProvider; }
+ namespace uno { class XComponentContext; }
+ namespace util { class XURLTransformer; }
+} } }
namespace vcl { class Window; }
+class NotifyEvent;
+
namespace dbaui
{
class ODataView;