summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basctl/source/basicide/baside2.cxx3
-rw-r--r--basctl/source/basicide/baside3.cxx4
-rw-r--r--basctl/source/basicide/localizationmgr.cxx4
-rw-r--r--basctl/source/inc/baside3.hxx2
-rw-r--r--basic/inc/sb.hxx2
-rw-r--r--basic/source/classes/sbunoobj.cxx21
-rw-r--r--basic/source/classes/sbxmod.cxx19
-rw-r--r--basic/source/comp/dim.cxx2
-rw-r--r--basic/source/inc/sbunoobj.hxx3
-rw-r--r--basic/source/inc/sbxmod.hxx27
-rw-r--r--basic/source/runtime/methods.cxx4
-rw-r--r--bean/Library_officebean.mk5
-rw-r--r--bean/inc/comp_LocalOfficeWindow.h28
-rw-r--r--bean/native/unix/com_sun_star_beans_LocalOfficeWindow.c4
-rw-r--r--bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c1
-rw-r--r--bean/native/win32/com_sun_star_beans_LocalOfficeWindow.c4
-rw-r--r--bean/native/win32/com_sun_star_comp_beans_LocalOfficeWindow.c2
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx2
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_arm/share.hxx2
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx6
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_intel/share.hxx7
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx2
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx2
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx6
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_intel/share.hxx7
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_x86-64/share.hxx2
-rw-r--r--bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx6
-rw-r--r--bridges/source/cpp_uno/mingw_intel/share.hxx7
-rw-r--r--bridges/source/cpp_uno/mingw_x86-64/cpp2uno.cxx2
-rw-r--r--bridges/source/cpp_uno/mingw_x86-64/share.hxx2
-rw-r--r--chart2/source/inc/charttoolsdllapi.hxx3
-rw-r--r--chart2/source/model/main/_serviceregistration_model.cxx3
-rw-r--r--compilerplugins/clang/externandnotdefined.cxx79
-rw-r--r--cppu/source/typelib/static_types.cxx18
-rw-r--r--cppu/source/typelib/typelib.cxx12
-rw-r--r--cppu/source/typelib/typelib.hxx43
-rw-r--r--cppuhelper/source/implbase.cxx10
-rw-r--r--cppuhelper/source/implbase_ex.cxx10
-rw-r--r--desktop/inc/app.hxx2
-rw-r--r--desktop/source/app/cmdlinehelp.cxx2
-rw-r--r--desktop/source/app/sofficemain.cxx3
-rw-r--r--editeng/source/uno/unofored.cxx1
-rw-r--r--editeng/source/uno/unofored_internal.hxx29
-rw-r--r--editeng/source/uno/unoforou.cxx3
-rw-r--r--embeddedobj/source/commonembedding/embedobj.cxx2
-rw-r--r--embeddedobj/source/commonembedding/embedobj.hxx27
-rw-r--r--embeddedobj/source/commonembedding/inplaceobj.cxx2
-rw-r--r--embeddedobj/source/commonembedding/miscobj.cxx5
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx1
-rw-r--r--embeddedobj/source/commonembedding/persistence.hxx29
-rw-r--r--embeddedobj/source/msole/olemisc.cxx3
-rw-r--r--embeddedobj/source/msole/olepersist.hxx2
-rw-r--r--embeddedobj/source/msole/ownview.cxx2
-rw-r--r--filter/source/flash/swfwriter.hxx2
-rw-r--r--filter/source/flash/swfwriter1.cxx2
-rw-r--r--forms/source/component/scrollbar.hxx8
-rw-r--r--forms/source/component/spinbutton.cxx7
-rw-r--r--include/vcl/svmain.hxx (renamed from vcl/inc/svmain.hxx)7
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx3
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx4
-rw-r--r--reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx3
-rw-r--r--rsc/source/prj/gui.hxx3
-rw-r--r--rsc/source/prj/start.cxx6
-rw-r--r--sal/osl/unx/module.cxx4
-rw-r--r--sal/osl/unx/mutex.c2
-rw-r--r--sal/osl/unx/pipe.c2
-rw-r--r--sal/osl/unx/profile.cxx4
-rw-r--r--sal/osl/unx/secimpl.h2
-rw-r--r--sal/osl/unx/security.cxx1
-rw-r--r--sc/source/core/data/documen2.cxx3
-rw-r--r--sc/source/filter/rtf/eeimpars.cxx4
-rw-r--r--sc/source/ui/docshell/docsh5.cxx3
-rw-r--r--sc/source/ui/drawfunc/drawsh2.cxx3
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx3
-rw-r--r--sc/source/ui/inc/docfunc.hxx2
-rw-r--r--sc/source/ui/inc/docsh.hxx2
-rw-r--r--sc/source/ui/inc/fuinsert.hxx3
-rw-r--r--sc/source/ui/vba/vbapagesetup.cxx3
-rw-r--r--sc/source/ui/vba/vbarange.cxx2
-rw-r--r--sc/source/ui/vba/vbarange.hxx7
-rw-r--r--sc/source/ui/view/viewfun2.cxx3
-rw-r--r--scripting/source/dlgprov/DialogModelProvider.cxx19
-rw-r--r--scripting/source/dlgprov/dlgprov.hxx13
-rw-r--r--sd/inc/CustomAnimationPreset.hxx5
-rw-r--r--sd/source/core/TransitionPreset.cxx4
-rw-r--r--sd/source/ui/animations/CustomAnimationCreateDialog.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx4
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationList.hxx4
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.hxx2
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx2
-rw-r--r--sd/source/ui/annotations/annotationmanagerimpl.hxx6
-rw-r--r--sd/source/ui/annotations/annotationwindow.cxx4
-rw-r--r--sd/source/ui/annotations/annotationwindow.hxx4
-rw-r--r--sd/source/ui/controller/slidelayoutcontroller.cxx3
-rw-r--r--sd/source/ui/inc/ViewShellBase.hxx3
-rw-r--r--sd/source/ui/inc/unopage.hxx (renamed from sd/source/ui/unoidl/unopage.hxx)2
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx3
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx3
-rw-r--r--sd/source/ui/unoidl/unoobj.cxx2
-rw-r--r--sfx2/inc/sfxbasecontroller_internal.hxx18
-rw-r--r--sfx2/source/bastyp/progress.cxx10
-rw-r--r--sfx2/source/doc/objmisc.cxx22
-rw-r--r--sfx2/source/doc/objstor.cxx1
-rw-r--r--sfx2/source/doc/objstor.hxx27
-rw-r--r--sfx2/source/inc/appopen.hxx4
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx1
-rw-r--r--svx/source/stbctrls/modctrl.cxx1
-rw-r--r--svx/source/stbctrls/modctrl_internal.hxx26
-rw-r--r--svx/source/stbctrls/zoomctrl.cxx3
-rw-r--r--svx/source/svdraw/svdoutlinercache.cxx3
-rw-r--r--sw/Library_swui.mk1
-rw-r--r--sw/inc/dcontact.hxx4
-rw-r--r--sw/inc/finalthreadmanager.hxx (renamed from sw/source/core/inc/finalthreadmanager.hxx)0
-rw-r--r--sw/inc/reffld.hxx3
-rw-r--r--sw/inc/swtable.hxx2
-rw-r--r--sw/inc/unocoll.hxx3
-rw-r--r--sw/inc/unotbl.hxx6
-rw-r--r--sw/source/core/crsr/viscrs.cxx3
-rw-r--r--sw/source/core/doc/docedt.cxx1
-rw-r--r--sw/source/core/doc/docfld.cxx3
-rw-r--r--sw/source/core/doc/htmltbl.cxx6
-rw-r--r--sw/source/core/doc/notxtfrm.cxx3
-rw-r--r--sw/source/core/docnode/ndsect.cxx1
-rw-r--r--sw/source/core/docnode/ndsect.hxx28
-rw-r--r--sw/source/core/docnode/section.cxx3
-rw-r--r--sw/source/core/draw/dcontact.cxx1
-rw-r--r--sw/source/core/frmedt/fefly1.cxx1
-rw-r--r--sw/source/core/inc/docedt.hxx29
-rw-r--r--sw/source/core/inc/fefly.hxx28
-rw-r--r--sw/source/core/inc/fntcap.hxx32
-rw-r--r--sw/source/core/inc/frmtool.hxx4
-rw-r--r--sw/source/core/inc/ftnfrm.hxx2
-rw-r--r--sw/source/core/inc/paintfrm.hxx27
-rw-r--r--sw/source/core/inc/swfont.hxx2
-rw-r--r--sw/source/core/inc/txtfly.hxx (renamed from sw/source/core/text/txtfly.hxx)18
-rw-r--r--sw/source/core/layout/anchoreddrawobject.cxx1
-rw-r--r--sw/source/core/layout/atrfrm.cxx3
-rw-r--r--sw/source/core/layout/colfrm.cxx4
-rw-r--r--sw/source/core/layout/fly.cxx1
-rw-r--r--sw/source/core/layout/frmtool.cxx3
-rw-r--r--sw/source/core/layout/pagechg.cxx1
-rw-r--r--sw/source/core/layout/paintfrm.cxx9
-rw-r--r--sw/source/core/layout/tabfrm.cxx3
-rw-r--r--sw/source/core/tox/txmsrt.cxx4
-rw-r--r--sw/source/core/txtnode/fntcache.cxx8
-rw-r--r--sw/source/core/txtnode/fntcap.cxx1
-rw-r--r--sw/source/core/undo/unredln.cxx4
-rw-r--r--sw/source/core/unocore/unochart.cxx5
-rw-r--r--sw/source/core/unocore/unoframe.cxx4
-rw-r--r--sw/source/core/unocore/unotbl.cxx4
-rw-r--r--sw/source/core/view/pagepreviewlayout.cxx5
-rw-r--r--sw/source/core/view/viewpg.cxx4
-rw-r--r--sw/source/core/view/vprint.cxx1
-rw-r--r--sw/source/core/view/vprint.hxx28
-rw-r--r--sw/source/filter/html/css1atr.cxx1
-rw-r--r--sw/source/filter/html/css1atr.hxx28
-rw-r--r--sw/source/filter/html/htmlcss1.cxx3
-rw-r--r--sw/source/filter/html/htmlfldw.cxx2
-rw-r--r--sw/source/filter/html/swhtml.cxx3
-rw-r--r--sw/source/filter/xml/xmltble.cxx1
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx6
-rw-r--r--sw/source/ui/dialog/swuiexp.cxx1
-rw-r--r--sw/source/ui/envelp/envfmt.cxx6
-rw-r--r--sw/source/ui/envelp/label1.cxx4
-rw-r--r--sw/source/ui/fldui/fldedt.cxx5
-rw-r--r--sw/source/ui/inc/swuiexp.hxx29
-rw-r--r--sw/source/ui/table/convert.cxx6
-rw-r--r--sw/source/ui/table/instable.cxx6
-rw-r--r--sw/source/uibase/app/appenv.cxx1
-rw-r--r--sw/source/uibase/app/appenv.hxx18
-rw-r--r--sw/source/uibase/app/applab.cxx4
-rw-r--r--sw/source/uibase/app/swdllimpl.hxx2
-rw-r--r--sw/source/uibase/inc/textsh.hxx2
-rw-r--r--sw/source/uibase/lingu/olmenu.cxx3
-rw-r--r--sw/source/uibase/uno/unofreg.cxx16
-rw-r--r--toolkit/source/awt/vclxspinbutton.cxx8
-rw-r--r--toolkit/source/awt/vclxwindows.cxx1
-rw-r--r--toolkit/source/awt/vclxwindows_internal.hxx31
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx4
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase_internal.hxx28
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx4
-rw-r--r--vcl/inc/salinst.hxx2
-rw-r--r--vcl/osx/salinst.cxx2
-rw-r--r--vcl/source/app/svmain.cxx2
-rw-r--r--vcl/source/app/svmainhook.cxx2
-rw-r--r--vcl/source/filter/graphicfilter.cxx1
-rw-r--r--vcl/source/filter/graphicfilter2.cxx5
-rw-r--r--vcl/source/filter/graphicfilter_internal.hxx31
-rw-r--r--vcl/source/salmain/salmain.cxx1
-rw-r--r--vcl/source/window/dlgctrl.cxx4
-rw-r--r--vcl/source/window/dlgctrl.hxx37
-rw-r--r--vcl/source/window/legacyaccessibility.cxx12
-rw-r--r--vcl/unx/generic/app/i18n_im.cxx3
-rw-r--r--writerfilter/CppunitTest_writerfilter_misc.mk15
-rw-r--r--writerfilter/qa/cppunittests/misc/misc.cxx15
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.hxx6
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.hxx27
-rw-r--r--writerfilter/source/dmapper/FormControlHelper.hxx2
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.hxx4
-rw-r--r--writerfilter/source/dmapper/TablePropertiesHandler.hxx2
201 files changed, 1057 insertions, 423 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index e9f44adc8b4e..d820fe91f1f6 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -18,6 +18,7 @@
*/
#include "baside2.hxx"
+#include "baside3.hxx"
#include "brkdlg.hxx"
#include "iderdll.hxx"
#include "iderdll2.hxx"
@@ -506,8 +507,6 @@ bool ModulWindow::SaveBasicSource()
return bDone;
}
-extern bool implImportDialog( Window* pWin, const OUString& rCurPath, const ScriptDocument& rDocument, const OUString& aLibName ); // defined in baside3.cxx
-
bool ModulWindow::ImportDialog()
{
const ScriptDocument& rDocument = GetDocument();
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index 470219c5aba6..ab106f611beb 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -33,6 +33,7 @@
#include "localizationmgr.hxx"
#include "propbrw.hxx"
#include "objdlg.hxx"
+#include "managelang.hxx"
#include <basic/basmgr.hxx>
#include <com/sun/star/resource/StringResourceWithLocation.hpp>
@@ -863,9 +864,6 @@ bool DialogWindow::SaveDialog()
return bDone;
}
-extern bool localesAreEqual( const ::com::sun::star::lang::Locale& rLocaleLeft,
- const ::com::sun::star::lang::Locale& rLocaleRight );
-
std::vector< lang::Locale > implGetLanguagesOnlyContainedInFirstSeq
( const Sequence< lang::Locale >& aFirstSeq, const Sequence< lang::Locale >& aSecondSeq )
{
diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx
index c34ac55a60a5..34d8acbcad55 100644
--- a/basctl/source/basicide/localizationmgr.cxx
+++ b/basctl/source/basicide/localizationmgr.cxx
@@ -24,6 +24,7 @@
#include "basobj.hxx"
#include "iderdll.hxx"
#include "dlged.hxx"
+#include "managelang.hxx"
#include <com/sun/star/resource/XStringResourceSupplier.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
@@ -184,9 +185,6 @@ OUString implCreatePureResourceId
return aPureIdStr;
}
-extern bool localesAreEqual( const ::com::sun::star::lang::Locale& rLocaleLeft,
- const ::com::sun::star::lang::Locale& rLocaleRight );
-
// Works on xStringResourceManager's current language for SET_IDS/RESET_IDS,
// anyway only one language should exist when calling this method then,
// either the first one for mode SET_IDS or the last one for mode RESET_IDS
diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx
index 3faed784013e..e5fb443c08ce 100644
--- a/basctl/source/inc/baside3.hxx
+++ b/basctl/source/inc/baside3.hxx
@@ -50,6 +50,8 @@ class DlgEdView;
class DialogWindowLayout;
class ObjectCatalog;
+bool implImportDialog( Window* pWin, const OUString& rCurPath, const ScriptDocument& rDocument, const OUString& aLibName );
+
class DialogWindow: public BaseWindow
{
private:
diff --git a/basic/inc/sb.hxx b/basic/inc/sb.hxx
index cd028f7985dc..ce78553c8071 100644
--- a/basic/inc/sb.hxx
+++ b/basic/inc/sb.hxx
@@ -31,6 +31,8 @@
// create object from user-type (+StringID+StringID)
SbxObject* createUserTypeImpl( const OUString& rClassName );
+SbxObject* cloneTypeObjectImpl( const SbxObject& rTypeObj );
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 1d8dc31c75c7..2e6aa8f75391 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -72,17 +72,6 @@
#include <rtlproto.hxx>
-using com::sun::star::uno::Reference;
-using namespace com::sun::star::uno;
-using namespace com::sun::star::lang;
-using namespace com::sun::star::reflection;
-using namespace com::sun::star::beans;
-using namespace com::sun::star::script;
-using namespace com::sun::star::container;
-using namespace com::sun::star::bridge;
-using namespace cppu;
-
-
#include <basic/sbstar.hxx>
#include <basic/sbuno.hxx>
#include <basic/sberrors.hxx>
@@ -98,6 +87,16 @@ using namespace cppu;
#include <com/sun/star/reflection/XTypeDescriptionEnumerationAccess.hpp>
#include <com/sun/star/reflection/XConstantsTypeDescription.hpp>
+using com::sun::star::uno::Reference;
+using namespace com::sun::star::uno;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::reflection;
+using namespace com::sun::star::beans;
+using namespace com::sun::star::script;
+using namespace com::sun::star::container;
+using namespace com::sun::star::bridge;
+using namespace cppu;
+
TYPEINIT1(SbUnoMethod,SbxMethod)
TYPEINIT1(SbUnoProperty,SbxProperty)
TYPEINIT1(SbUnoObject,SbxObject)
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 7102950e068f..c8b2090236c7 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -55,8 +55,6 @@
#include <com/sun/star/document/XEventBroadcaster.hpp>
#include <com/sun/star/document/XEventListener.hpp>
-using namespace com::sun::star;
-
#ifdef UNX
#include <sys/resource.h>
#endif
@@ -71,13 +69,6 @@ using namespace com::sun::star;
#include <com/sun/star/uno/XAggregation.hpp>
#include <com/sun/star/script/XInvocation.hpp>
-using namespace ::com::sun::star;
-using namespace com::sun::star::lang;
-using namespace com::sun::star::reflection;
-using namespace com::sun::star::beans;
-using namespace com::sun::star::script;
-using namespace com::sun::star::uno;
-
#include <com/sun/star/script/XLibraryContainer.hpp>
#include <com/sun/star/awt/DialogProvider.hpp>
#include <com/sun/star/awt/XTopWindow.hpp>
@@ -86,6 +77,14 @@ using namespace com::sun::star::uno;
#include <comphelper/anytostring.hxx>
#include <ooo/vba/VbQueryClose.hpp>
#include "sbcomp.hxx"
+#include "sbxmod.hxx"
+
+using namespace com::sun::star;
+using namespace com::sun::star::lang;
+using namespace com::sun::star::reflection;
+using namespace com::sun::star::beans;
+using namespace com::sun::star::script;
+using namespace com::sun::star::uno;
typedef ::cppu::WeakImplHelper1< XInvocation > DocObjectWrapper_BASE;
typedef ::std::map< sal_Int16, Any, ::std::less< sal_Int16 > > OutParamMap;
@@ -2662,8 +2661,6 @@ void SbUserFormModule::Unload()
}
-void registerComponentToBeDisposedForBasic( Reference< XComponent > xComponent, StarBASIC* pBasic );
-
void SbUserFormModule::InitObject()
{
try
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx
index 58db8ffdcaf5..e5e4c162bcda 100644
--- a/basic/source/comp/dim.cxx
+++ b/basic/source/comp/dim.cxx
@@ -34,8 +34,6 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-SbxObject* cloneTypeObjectImpl( const SbxObject& rTypeObj );
-
// Declaration of a variable
// If there are errors it will be parsed up to the comma or the newline.
// Return-value: a new instance, which were inserted and then deleted.
diff --git a/basic/source/inc/sbunoobj.hxx b/basic/source/inc/sbunoobj.hxx
index 29033ff984c6..aa5c2f981b28 100644
--- a/basic/source/inc/sbunoobj.hxx
+++ b/basic/source/inc/sbunoobj.hxx
@@ -28,6 +28,7 @@
#include <com/sun/star/beans/XExactName.hpp>
#include <com/sun/star/beans/XIntrospectionAccess.hpp>
#include <com/sun/star/beans/XIntrospection.hpp>
+#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/script/XInvocation.hpp>
#include <com/sun/star/reflection/XIdlClass.hpp>
#include <com/sun/star/reflection/XServiceTypeDescription2.hpp>
@@ -38,6 +39,8 @@
#include <map>
#include <boost/shared_ptr.hpp>
+void registerComponentToBeDisposedForBasic( css::uno::Reference< css::lang::XComponent > xComponent, StarBASIC* pBasic );
+
class StructRefInfo
{
com::sun::star::uno::Any& maAny;
diff --git a/basic/source/inc/sbxmod.hxx b/basic/source/inc/sbxmod.hxx
new file mode 100644
index 000000000000..3784c7fe045d
--- /dev/null
+++ b/basic/source/inc/sbxmod.hxx
@@ -0,0 +1,27 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_BASIC_SOURCE_INC_SBXMOD_HXX
+#define INCLUDED_BASIC_SOURCE_INC_SBXMOD_HXX
+
+css::uno::Reference< css::frame::XModel > getDocumentModel( StarBASIC* );
+
+#endif // INCLUDED_BASIC_SOURCE_INC_SBXMOD_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 95ac76ea9306..3397f56d8f0b 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -85,6 +85,7 @@ using namespace com::sun::star::uno;
#include <errno.h>
#include "sbobjmod.hxx"
+#include "sbxmod.hxx"
#ifdef WNT
#include <prewin.h>
@@ -95,9 +96,6 @@ using namespace com::sun::star::uno;
#ifndef DISABLE_SCRIPTING
-// from source/classes/sbxmod.cxx
-uno::Reference< frame::XModel > getDocumentModel( StarBASIC* );
-
static void FilterWhiteSpace( OUString& rStr )
{
if (rStr.isEmpty())
diff --git a/bean/Library_officebean.mk b/bean/Library_officebean.mk
index a865e74409d8..ad620cbdcdf0 100644
--- a/bean/Library_officebean.mk
+++ b/bean/Library_officebean.mk
@@ -11,6 +11,11 @@
$(eval $(call gb_Library_Library,officebean))
+$(eval $(call gb_Library_set_include,officebean,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/bean/inc \
+))
+
$(eval $(call gb_Library_use_externals,officebean,\
jawt \
))
diff --git a/bean/inc/comp_LocalOfficeWindow.h b/bean/inc/comp_LocalOfficeWindow.h
new file mode 100644
index 000000000000..e540e3b9edea
--- /dev/null
+++ b/bean/inc/comp_LocalOfficeWindow.h
@@ -0,0 +1,28 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#include "sal/config.h"
+#include "sal/types.h"
+#include "jni.h"
+
+SAL_DLLPUBLIC_EXPORT jlong JNICALL Java_com_sun_star_comp_beans_LocalOfficeWindow_getNativeWindow
+ (JNIEnv * env, jobject obj_this);
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/bean/native/unix/com_sun_star_beans_LocalOfficeWindow.c b/bean/native/unix/com_sun_star_beans_LocalOfficeWindow.c
index 79193827cc1b..2acabb654858 100644
--- a/bean/native/unix/com_sun_star_beans_LocalOfficeWindow.c
+++ b/bean/native/unix/com_sun_star_beans_LocalOfficeWindow.c
@@ -29,12 +29,10 @@
#include "jawt.h"
#include "sal/types.h"
+#include "comp_LocalOfficeWindow.h"
#define SYSTEM_XWINDOW 6
-SAL_DLLPUBLIC_EXPORT jlong JNICALL Java_com_sun_star_comp_beans_LocalOfficeWindow_getNativeWindow
- (JNIEnv * env, jobject obj_this);
-
/*****************************************************************************/
/*
* Class: com_sun_star_comp_beans_LocalOfficeWindow
diff --git a/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c b/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
index 0bd0e04e2ce5..c3452b2f80a8 100644
--- a/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
+++ b/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
@@ -29,6 +29,7 @@
#include "jawt.h"
#include "sal/types.h"
+#include "comp_LocalOfficeWindow.h"
#define SYSTEM_XWINDOW 6
diff --git a/bean/native/win32/com_sun_star_beans_LocalOfficeWindow.c b/bean/native/win32/com_sun_star_beans_LocalOfficeWindow.c
index 04094202f632..15c7fa5c7493 100644
--- a/bean/native/win32/com_sun_star_beans_LocalOfficeWindow.c
+++ b/bean/native/win32/com_sun_star_beans_LocalOfficeWindow.c
@@ -26,12 +26,10 @@
#endif
#include "jawt.h"
+#include "comp_LocalOfficeWindow.h"
#define SYSTEM_WIN32 1
-JNIEXPORT jlong JNICALL Java_com_sun_star_comp_beans_LocalOfficeWindow_getNativeWindow
- (JNIEnv * env, jobject obj_this);
-
/*****************************************************************************/
/*
* Class: com_sun_star_beans_LocalOfficeWindow
diff --git a/bean/native/win32/com_sun_star_comp_beans_LocalOfficeWindow.c b/bean/native/win32/com_sun_star_comp_beans_LocalOfficeWindow.c
index b4c41623c454..dc0b7f9d03e4 100644
--- a/bean/native/win32/com_sun_star_comp_beans_LocalOfficeWindow.c
+++ b/bean/native/win32/com_sun_star_comp_beans_LocalOfficeWindow.c
@@ -29,6 +29,8 @@
#include "jawt.h"
#undef JAWT_GetAWT
+#include "comp_LocalOfficeWindow.h"
+
#if defined _MSC_VER
#pragma warning(push, 1)
#endif
diff --git a/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx
index 99147e35bb25..0c7666ac9b4d 100644
--- a/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cxx
@@ -456,8 +456,6 @@ extern "C" sal_Int64 cpp_vtable_call( long *pFunctionAndOffset,
return nRegReturn;
}
-extern "C" void privateSnippetExecutor(void);
-
namespace
{
const int codeSnippetSize = 20;
diff --git a/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx b/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx
index 6622ba4c548e..1bde6e3b9952 100644
--- a/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx
+++ b/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx
@@ -79,6 +79,8 @@ namespace CPPU_CURRENT_NAMESPACE
__cxa_exception * header, uno_Any *, uno_Mapping * pCpp2Uno );
}
+extern "C" void privateSnippetExecutor(void);
+
namespace arm
{
enum armlimits { MAX_GPR_REGS = 4, MAX_FPR_REGS = 8 };
diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
index d75b9a1c8bc7..7bfa31235c27 100644
--- a/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx
@@ -331,12 +331,6 @@ extern "C" void cpp_vtable_call(
}
}
-extern "C" void privateSnippetExecutorGeneral();
-extern "C" void privateSnippetExecutorVoid();
-extern "C" void privateSnippetExecutorHyper();
-extern "C" void privateSnippetExecutorFloat();
-extern "C" void privateSnippetExecutorDouble();
-extern "C" void privateSnippetExecutorClass();
extern "C" typedef void (*PrivateSnippetExecutor)();
int const codeSnippetSize = 16;
diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/share.hxx b/bridges/source/cpp_uno/gcc3_linux_intel/share.hxx
index e247fdb2e648..512ae6db2c03 100644
--- a/bridges/source/cpp_uno/gcc3_linux_intel/share.hxx
+++ b/bridges/source/cpp_uno/gcc3_linux_intel/share.hxx
@@ -105,6 +105,13 @@ extern "C" void __cxa_throw(
}
#endif
+extern "C" void privateSnippetExecutorGeneral();
+extern "C" void privateSnippetExecutorVoid();
+extern "C" void privateSnippetExecutorHyper();
+extern "C" void privateSnippetExecutorFloat();
+extern "C" void privateSnippetExecutorDouble();
+extern "C" void privateSnippetExecutorClass();
+
namespace CPPU_CURRENT_NAMESPACE
{
diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
index 49aceedc389b..9bb5149a507c 100644
--- a/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
@@ -386,8 +386,6 @@ typelib_TypeClass cpp_vtable_call(
return eRet;
}
-extern "C" void privateSnippetExecutor( ... );
-
const int codeSnippetSize = 24;
// Generate a trampoline that redirects method calls to
diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
index f2e73402f8bf..732fe5bd1a1e 100644
--- a/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
+++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx
@@ -130,6 +130,8 @@ extern "C" void __cxa_throw(
#endif
+extern "C" void privateSnippetExecutor( ... );
+
namespace CPPU_CURRENT_NAMESPACE
{
diff --git a/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
index eafc26c8e900..2ab17ef71b14 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx
@@ -343,12 +343,6 @@ extern "C" void cpp_vtable_call(
}
}
-extern "C" void privateSnippetExecutorGeneral();
-extern "C" void privateSnippetExecutorVoid();
-extern "C" void privateSnippetExecutorHyper();
-extern "C" void privateSnippetExecutorFloat();
-extern "C" void privateSnippetExecutorDouble();
-extern "C" void privateSnippetExecutorClass();
extern "C" typedef void (*PrivateSnippetExecutor)();
int const codeSnippetSize = 16;
diff --git a/bridges/source/cpp_uno/gcc3_macosx_intel/share.hxx b/bridges/source/cpp_uno/gcc3_macosx_intel/share.hxx
index df428b573c39..172a8573c704 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_intel/share.hxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_intel/share.hxx
@@ -83,5 +83,12 @@ void fillUnoException(
__cxa_exception * header, uno_Any *, uno_Mapping * pCpp2Uno );
}
+extern "C" void privateSnippetExecutorGeneral();
+extern "C" void privateSnippetExecutorVoid();
+extern "C" void privateSnippetExecutorHyper();
+extern "C" void privateSnippetExecutorFloat();
+extern "C" void privateSnippetExecutorDouble();
+extern "C" void privateSnippetExecutorClass();
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/share.hxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/share.hxx
index aaf83a2e5707..885e25c11fd6 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/share.hxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/share.hxx
@@ -128,6 +128,8 @@ struct __cxa_eh_globals
}
+extern "C" void privateSnippetExecutor();
+
extern "C" CPPU_CURRENT_NAMESPACE::__cxa_eh_globals *__cxa_get_globals () throw();
namespace CPPU_CURRENT_NAMESPACE
diff --git a/bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx b/bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx
index 49b7bd0c2477..184c4681fd85 100644
--- a/bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/mingw_intel/cpp2uno.cxx
@@ -339,12 +339,6 @@ extern "C" void cpp_vtable_call(
}
}
-extern "C" void privateSnippetExecutorGeneral();
-extern "C" void privateSnippetExecutorVoid();
-extern "C" void privateSnippetExecutorHyper();
-extern "C" void privateSnippetExecutorFloat();
-extern "C" void privateSnippetExecutorDouble();
-extern "C" void privateSnippetExecutorClass();
extern "C" typedef void (*PrivateSnippetExecutor)();
int const codeSnippetSize = 16;
diff --git a/bridges/source/cpp_uno/mingw_intel/share.hxx b/bridges/source/cpp_uno/mingw_intel/share.hxx
index 465dfc6e600b..b39ed6b48694 100644
--- a/bridges/source/cpp_uno/mingw_intel/share.hxx
+++ b/bridges/source/cpp_uno/mingw_intel/share.hxx
@@ -72,6 +72,13 @@ struct __cxa_eh_globals
}
+extern "C" void privateSnippetExecutorGeneral();
+extern "C" void privateSnippetExecutorVoid();
+extern "C" void privateSnippetExecutorHyper();
+extern "C" void privateSnippetExecutorFloat();
+extern "C" void privateSnippetExecutorDouble();
+extern "C" void privateSnippetExecutorClass();
+
extern "C" CPPU_CURRENT_NAMESPACE::__cxa_eh_globals *__cxa_get_globals () throw();
namespace CPPU_CURRENT_NAMESPACE
diff --git a/bridges/source/cpp_uno/mingw_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/mingw_x86-64/cpp2uno.cxx
index ee89e4f305a3..25d94971c3fa 100644
--- a/bridges/source/cpp_uno/mingw_x86-64/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/mingw_x86-64/cpp2uno.cxx
@@ -384,8 +384,6 @@ extern "C" typelib_TypeClass cpp_vtable_call(
return eRet;
}
-extern "C" void privateSnippetExecutor( ... );
-
const int codeSnippetSize = 24;
// Generate a trampoline that redirects method calls to
diff --git a/bridges/source/cpp_uno/mingw_x86-64/share.hxx b/bridges/source/cpp_uno/mingw_x86-64/share.hxx
index e73df131d0f7..61d278db4b29 100644
--- a/bridges/source/cpp_uno/mingw_x86-64/share.hxx
+++ b/bridges/source/cpp_uno/mingw_x86-64/share.hxx
@@ -72,6 +72,8 @@ struct __cxa_eh_globals
}
+extern "C" void privateSnippetExecutor( ... );
+
extern "C" CPPU_CURRENT_NAMESPACE::__cxa_eh_globals *__cxa_get_globals () throw();
namespace CPPU_CURRENT_NAMESPACE
diff --git a/chart2/source/inc/charttoolsdllapi.hxx b/chart2/source/inc/charttoolsdllapi.hxx
index 570e92b97192..0ae3cc41a096 100644
--- a/chart2/source/inc/charttoolsdllapi.hxx
+++ b/chart2/source/inc/charttoolsdllapi.hxx
@@ -30,6 +30,9 @@
#define OOO_DLLPUBLIC_CHARTTOOLS SAL_DLLPUBLIC_IMPORT
#endif
+extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL charttools_component_getFactory(
+ const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey );
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/main/_serviceregistration_model.cxx b/chart2/source/model/main/_serviceregistration_model.cxx
index 911eb0509a3d..0245532004ca 100644
--- a/chart2/source/model/main/_serviceregistration_model.cxx
+++ b/chart2/source/model/main/_serviceregistration_model.cxx
@@ -35,6 +35,7 @@
#include "XMLFilter.hxx"
#include "_serviceregistration_charttypes.hxx"
+#include "charttoolsdllapi.hxx"
static const struct ::cppu::ImplementationEntry g_entries_chart2_model[] =
{
@@ -174,8 +175,6 @@ static const struct ::cppu::ImplementationEntry g_entries_chart2_model[] =
// component exports
extern "C"
{
-SAL_DLLPUBLIC_EXPORT void * SAL_CALL charttools_component_getFactory(
- const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey );
SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartcore_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
diff --git a/compilerplugins/clang/externandnotdefined.cxx b/compilerplugins/clang/externandnotdefined.cxx
new file mode 100644
index 000000000000..e66247fa1fad
--- /dev/null
+++ b/compilerplugins/clang/externandnotdefined.cxx
@@ -0,0 +1,79 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include <string>
+
+#include "plugin.hxx"
+#include "compat.hxx"
+
+// Having an extern prototype for a method in a module and not actually declaring that method is dodgy.
+//
+
+namespace {
+
+class ExternAndNotDefined:
+ public RecursiveASTVisitor<ExternAndNotDefined>, public loplugin::Plugin
+{
+public:
+ explicit ExternAndNotDefined(InstantiationData const & data): Plugin(data) {}
+
+ virtual void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
+
+ bool VisitFunctionDecl(const FunctionDecl * decl);
+};
+
+bool ExternAndNotDefined::VisitFunctionDecl(const FunctionDecl * functionDecl) {
+ if (ignoreLocation(functionDecl)) {
+ return true;
+ }
+ if (functionDecl->isDefined() || functionDecl->isPure()
+ || (compat::getLinkage(functionDecl->getLinkageAndVisibility())
+ != ExternalLinkage)) {
+ return true;
+ }
+ //TODO, filtering out anything template for now:
+ if (functionDecl->isDependentContext()) {
+ return true;
+ }
+ CXXRecordDecl const * r = dyn_cast<CXXRecordDecl>(functionDecl->getDeclContext());
+ if (r != nullptr && r->getTemplateSpecializationKind() != TSK_Undeclared) {
+ return true;
+ }
+ // this is the bison/flex C API, it has to be defined this way
+ string functionName = functionDecl->getNameAsString();
+ if (functionName == "yyerror" || functionName == "YYWarning" || functionName == "yyparse" || functionName == "yylex") {
+ return true;
+ }
+ // see vcl/unx/gtk/app/gtksys.cxx, typename conflicts prevent using the right include
+ if (functionName == "gdk_x11_screen_get_screen_number") {
+ return true;
+ }
+ SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(functionDecl->getLocation());
+ if (!compat::isInMainFile( compiler.getSourceManager(), spellingLocation)) {
+ return true;
+ }
+ StringRef fileName { compiler.getSourceManager().getFilename(functionDecl->getLocation()) };
+ // the filters use some kind of dynamic loading stunt
+ if (fileName.startswith(SRCDIR "/filter/qa/")) {
+ return true;
+ }
+ report(
+ DiagnosticsEngine::Warning,
+ "extern prototype in main file without definition",
+ functionDecl->getLocation())
+ << functionDecl->getSourceRange();
+ return true;
+}
+
+
+loplugin::Plugin::Registration< ExternAndNotDefined > X("externandnotdefined");
+
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx
index 537eff83f835..3886745712fb 100644
--- a/cppu/source/typelib/static_types.cxx
+++ b/cppu/source/typelib/static_types.cxx
@@ -30,6 +30,7 @@
#include <rtl/instance.hxx>
#include <typelib/typedescription.h>
+#include "typelib.hxx"
using namespace osl;
@@ -41,23 +42,6 @@ extern "C"
{
-sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
- const typelib_TypeDescription * pTypeDescription,
- sal_Int32 nOffset,
- sal_Int32 & rMaxIntegralTypeSize )
- SAL_THROW_EXTERN_C();
-
-void SAL_CALL typelib_typedescription_newEmpty(
- typelib_TypeDescription ** ppRet,
- typelib_TypeClass eTypeClass,
- rtl_uString * pTypeName )
- SAL_THROW_EXTERN_C();
-
-void SAL_CALL typelib_typedescriptionreference_getByName(
- typelib_TypeDescriptionReference ** ppRet,
- rtl_uString * pName )
- SAL_THROW_EXTERN_C();
-
#ifdef SAL_W32
#pragma pack(push, 8)
#endif
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 85335784929a..7a6ec94227bb 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -42,6 +42,7 @@
#include <osl/diagnose.h>
#include <typelib/typedescription.h>
#include <uno/any2.h>
+#include "typelib.hxx"
using namespace std;
using namespace osl;
@@ -148,11 +149,6 @@ static inline sal_Int32 getDescriptionSize( typelib_TypeClass eTypeClass )
-extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
- typelib_TypeDescriptionReference ** ppRet, rtl_uString * pName )
- SAL_THROW_EXTERN_C();
-
-
struct equalStr_Impl
{
bool operator()(const sal_Unicode * const & s1, const sal_Unicode * const & s2) const
@@ -383,12 +379,6 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_revokeCallback(
}
}
-extern "C" sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
- const typelib_TypeDescription * pTypeDescription,
- sal_Int32 nOffset, sal_Int32 & rMaxIntegralTypeSize )
- SAL_THROW_EXTERN_C();
-
-
static inline void typelib_typedescription_initTables(
typelib_TypeDescription * pTD )
{
diff --git a/cppu/source/typelib/typelib.hxx b/cppu/source/typelib/typelib.hxx
new file mode 100644
index 000000000000..18c8daa04b53
--- /dev/null
+++ b/cppu/source/typelib/typelib.hxx
@@ -0,0 +1,43 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_CPPU_SOURCE_TYPELIB_HXX
+#define INCLUDED_CPPU_SOURCE_TYPELIB_HXX
+
+extern "C" sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
+ const typelib_TypeDescription * pTypeDescription,
+ sal_Int32 nOffset,
+ sal_Int32 & rMaxIntegralTypeSize )
+ SAL_THROW_EXTERN_C();
+
+
+extern "C" void SAL_CALL typelib_typedescription_newEmpty(
+ typelib_TypeDescription ** ppRet,
+ typelib_TypeClass eTypeClass,
+ rtl_uString * pTypeName )
+ SAL_THROW_EXTERN_C();
+
+extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
+ typelib_TypeDescriptionReference ** ppRet,
+ rtl_uString * pName )
+ SAL_THROW_EXTERN_C();
+
+#endif // INCLUDED_CPPU_SOURCE_TYPELIB_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx
index adfab032a2a5..1ffb856a9bb3 100644
--- a/cppuhelper/source/implbase.cxx
+++ b/cppuhelper/source/implbase.cxx
@@ -33,19 +33,9 @@ using namespace ::com::sun::star::uno;
using rtl::OUString;
using rtl::OString;
-namespace
-{
- class theImplHelperInitMutex : public rtl::Static<Mutex, theImplHelperInitMutex>{};
-}
-
namespace cppu
{
-Mutex & SAL_CALL getImplHelperInitMutex(void)
-{
- return theImplHelperInitMutex::get();
-}
-
// ClassDataBase
ClassDataBase::ClassDataBase()
diff --git a/cppuhelper/source/implbase_ex.cxx b/cppuhelper/source/implbase_ex.cxx
index 0841603c6163..1c85b1c81585 100644
--- a/cppuhelper/source/implbase_ex.cxx
+++ b/cppuhelper/source/implbase_ex.cxx
@@ -37,13 +37,21 @@ using rtl::OString;
using rtl::OUString;
using rtl::OUStringBuffer;
+namespace
+{
+ class theImplHelperInitMutex : public rtl::Static<Mutex, theImplHelperInitMutex>{};
+}
+
namespace cppu
{
/** Shared mutex for implementation helper initialization.
Not for public use.
*/
-::osl::Mutex & SAL_CALL getImplHelperInitMutex(void);
+::osl::Mutex & SAL_CALL getImplHelperInitMutex(void)
+{
+ return theImplHelperInitMutex::get();
+}
static inline void checkInterface( Type const & rType )
diff --git a/desktop/inc/app.hxx b/desktop/inc/app.hxx
index 02a94b9c2b2b..b067ae6101b3 100644
--- a/desktop/inc/app.hxx
+++ b/desktop/inc/app.hxx
@@ -192,6 +192,8 @@ class Desktop : public Application
OUString GetURL_Impl(
const OUString& rName, boost::optional< OUString > const & cwdUrl );
+OUString ReplaceStringHookProc(const OUString& rStr);
+
}
#endif // INCLUDED_DESKTOP_INC_APP_HXX
diff --git a/desktop/source/app/cmdlinehelp.cxx b/desktop/source/app/cmdlinehelp.cxx
index a956038c06f4..f042b46ab721 100644
--- a/desktop/source/app/cmdlinehelp.cxx
+++ b/desktop/source/app/cmdlinehelp.cxx
@@ -132,8 +132,6 @@ namespace desktop
" Eg. -env:UserInstallation=file:///tmp/test to set a non-default user profile path.\n"\
"\nRemaining arguments will be treated as filenames or URLs of documents to open.\n\n";
- OUString ReplaceStringHookProc(const OUString& rStr);
-
void displayCmdlineHelp(OUString const & unknown)
{
// if you put variables in other chunks don't forget to call the replace routines
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx
index a7072cba50f7..baf6a1be1da1 100644
--- a/desktop/source/app/sofficemain.cxx
+++ b/desktop/source/app/sofficemain.cxx
@@ -28,6 +28,7 @@
#include <rtl/bootstrap.hxx>
#include <tools/extendapplicationenvironment.hxx>
+#include <vcl/svmain.hxx>
#ifdef ANDROID
@@ -43,8 +44,6 @@
#include <touch/touch.h>
#endif
-int SVMain();
-
extern "C" int DESKTOP_DLLPUBLIC soffice_main()
{
#if defined ANDROID
diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx
index 32b0f9eeba31..b454b6dcb34f 100644
--- a/editeng/source/uno/unofored.cxx
+++ b/editeng/source/uno/unofored.cxx
@@ -31,6 +31,7 @@
#include <editeng/editobj.hxx>
#include <editeng/unofored.hxx>
+#include <unofored_internal.hxx>
using namespace ::com::sun::star;
diff --git a/editeng/source/uno/unofored_internal.hxx b/editeng/source/uno/unofored_internal.hxx
new file mode 100644
index 000000000000..66758b08b4e0
--- /dev/null
+++ b/editeng/source/uno/unofored_internal.hxx
@@ -0,0 +1,29 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_EDITENG_SOURCE_UNO_UNFORED_INTERNAL_HXX
+#define INCLUDED_EDITENG_SOURCE_UNO_UNFORED_INTERNAL_HXX
+
+
+sal_uInt16 GetSvxEditEngineItemState( EditEngine& rEditEngine, const ESelection& rSel, sal_uInt16 nWhich );
+
+
+#endif // INCLUDED_EDITENG_SOURCE_UNO_UNFORED_INTERNAL_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/source/uno/unoforou.cxx b/editeng/source/uno/unoforou.cxx
index c2d0d1d58cfe..b39b4531d782 100644
--- a/editeng/source/uno/unoforou.cxx
+++ b/editeng/source/uno/unoforou.cxx
@@ -34,6 +34,7 @@
#include <editeng/unoforou.hxx>
#include <editeng/unofored.hxx>
#include <editeng/outlobj.hxx>
+#include <unofored_internal.hxx>
using namespace ::com::sun::star;
@@ -243,8 +244,6 @@ bool SvxOutlinerForwarder::IsValid() const
return rOutliner.GetUpdateMode();
}
-extern sal_uInt16 GetSvxEditEngineItemState( EditEngine& rEditEngine, const ESelection& rSel, sal_uInt16 nWhich );
-
sal_uInt16 SvxOutlinerForwarder::GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const
{
return GetSvxEditEngineItemState( (EditEngine&)rOutliner.GetEditEngine(), rSel, nWhich );
diff --git a/embeddedobj/source/commonembedding/embedobj.cxx b/embeddedobj/source/commonembedding/embedobj.cxx
index d96aab213a37..f61c878c1dd8 100644
--- a/embeddedobj/source/commonembedding/embedobj.cxx
+++ b/embeddedobj/source/commonembedding/embedobj.cxx
@@ -45,7 +45,7 @@
#include "commonembobj.hxx"
#include "intercept.hxx"
-
+#include "embedobj.hxx"
using namespace ::com::sun::star;
diff --git a/embeddedobj/source/commonembedding/embedobj.hxx b/embeddedobj/source/commonembedding/embedobj.hxx
new file mode 100644
index 000000000000..1c0de3723c90
--- /dev/null
+++ b/embeddedobj/source/commonembedding/embedobj.hxx
@@ -0,0 +1,27 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_EMBEDDEDOBJ_SOURCE_COMMONEMBEDDING_EMBEDOBJ_HXX
+#define INCLUDED_EMBEDDEDOBJ_SOURCE_COMMONEMBEDDING_EMBEDOBJ_HXX
+
+css::awt::Rectangle GetRectangleInterception( const css::awt::Rectangle& aRect1, const css::awt::Rectangle& aRect2 );
+
+#endif // INCLUDED_EMBEDDEDOBJ_SOURCE_COMMONEMBEDDING_EMBEDOBJ_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embeddedobj/source/commonembedding/inplaceobj.cxx b/embeddedobj/source/commonembedding/inplaceobj.cxx
index 0fff4c32919c..a4e298a4d35f 100644
--- a/embeddedobj/source/commonembedding/inplaceobj.cxx
+++ b/embeddedobj/source/commonembedding/inplaceobj.cxx
@@ -21,11 +21,11 @@
#include <com/sun/star/lang/DisposedException.hpp>
#include "commonembobj.hxx"
+#include "embedobj.hxx"
using namespace ::com::sun::star;
-awt::Rectangle GetRectangleInterception( const awt::Rectangle& aRect1, const awt::Rectangle& aRect2 );
bool RectanglesEqual( const awt::Rectangle& aRect1, const awt::Rectangle& aRect2 )
{
return ( aRect1.X == aRect2.X
diff --git a/embeddedobj/source/commonembedding/miscobj.cxx b/embeddedobj/source/commonembedding/miscobj.cxx
index fb560aa02108..e88092981388 100644
--- a/embeddedobj/source/commonembedding/miscobj.cxx
+++ b/embeddedobj/source/commonembedding/miscobj.cxx
@@ -33,14 +33,11 @@
#include "closepreventer.hxx"
#include "intercept.hxx"
+#include "persistence.hxx"
using namespace ::com::sun::star;
-uno::Sequence< beans::PropertyValue > GetValuableArgs_Impl( const uno::Sequence< beans::PropertyValue >& aMedDescr,
- bool bCanUseDocumentBaseURL );
-
-
OCommonEmbeddedObject::OCommonEmbeddedObject( const uno::Reference< uno::XComponentContext >& rxContext,
const uno::Sequence< beans::NamedValue >& aObjProps )
: m_pDocHolder( NULL )
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index cbba5324be88..5ef9253276b3 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -53,6 +53,7 @@
#include <comphelper/namedvaluecollection.hxx>
#include <tools/diagnose_ex.h>
+#include "persistence.hxx"
using namespace ::com::sun::star;
diff --git a/embeddedobj/source/commonembedding/persistence.hxx b/embeddedobj/source/commonembedding/persistence.hxx
new file mode 100644
index 000000000000..655748613eeb
--- /dev/null
+++ b/embeddedobj/source/commonembedding/persistence.hxx
@@ -0,0 +1,29 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_EMBEDDEDOBJ_SOURCE_COMMONEMBEDDING_PERSISTENCE_HXX
+#define INCLUDED_EMBEDDEDOBJ_SOURCE_COMMONEMBEDDING_PERSISTENCE_HXX
+
+css::uno::Sequence< css::beans::PropertyValue > GetValuableArgs_Impl( const css::uno::Sequence< css::beans::PropertyValue >& aMedDescr,
+ bool bCanUseDocumentBaseURL );
+
+
+#endif // INCLUDED_EMBEDDEDOBJ_SOURCE_COMMONEMBEDDING_PERSISTENCE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embeddedobj/source/msole/olemisc.cxx b/embeddedobj/source/msole/olemisc.cxx
index dc1accbdba3e..d2bae48e140f 100644
--- a/embeddedobj/source/msole/olemisc.cxx
+++ b/embeddedobj/source/msole/olemisc.cxx
@@ -29,6 +29,7 @@
#include <cppuhelper/interfacecontainer.h>
#include <oleembobj.hxx>
+#include <olepersist.hxx>
#include "ownview.hxx"
@@ -38,8 +39,6 @@
using namespace ::com::sun::star;
-bool KillFile_Impl( const OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory );
-
OleEmbeddedObject::OleEmbeddedObject( const uno::Reference< lang::XMultiServiceFactory >& xFactory,
diff --git a/embeddedobj/source/msole/olepersist.hxx b/embeddedobj/source/msole/olepersist.hxx
index c23bf94b2632..2248a2bf458e 100644
--- a/embeddedobj/source/msole/olepersist.hxx
+++ b/embeddedobj/source/msole/olepersist.hxx
@@ -37,6 +37,8 @@ OUString GetNewFilledTempFile_Impl(
css::uno::Reference<css::lang::XMultiServiceFactory> const & xFactory)
throw (css::io::IOException, css::uno::RuntimeException);
+bool KillFile_Impl( const OUString& aURL, const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx
index e4e5d8827abe..b0ffa3e7227c 100644
--- a/embeddedobj/source/msole/ownview.cxx
+++ b/embeddedobj/source/msole/ownview.cxx
@@ -49,8 +49,6 @@
using namespace ::com::sun::star;
using namespace ::comphelper;
-bool KillFile_Impl( const OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory );
-
class DummyHandler_Impl : public ::cppu::WeakImplHelper1< task::XInteractionHandler >
{
public:
diff --git a/filter/source/flash/swfwriter.hxx b/filter/source/flash/swfwriter.hxx
index f54dd2904d85..4c31000dd4e8 100644
--- a/filter/source/flash/swfwriter.hxx
+++ b/filter/source/flash/swfwriter.hxx
@@ -62,6 +62,8 @@ inline sal_Int16 _Int16( sal_Int32 nValue )
class VirtualDevice;
+sal_uInt16 getMaxBitsSigned( sal_Int32 nValue );
+
namespace swf {
const sal_uInt8 TAG_END = 0;
diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx
index a3377ee127f0..c487accfa769 100644
--- a/filter/source/flash/swfwriter1.cxx
+++ b/filter/source/flash/swfwriter1.cxx
@@ -47,8 +47,6 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::beans;
-extern sal_uInt16 getMaxBitsSigned( sal_Int32 nValue );
-
static MapMode aTWIPSMode( MAP_TWIP );
static MapMode a100thmmMode( MAP_100TH_MM );
diff --git a/forms/source/component/scrollbar.hxx b/forms/source/component/scrollbar.hxx
index 50af8b258fee..aee2d41f0fef 100644
--- a/forms/source/component/scrollbar.hxx
+++ b/forms/source/component/scrollbar.hxx
@@ -83,6 +83,14 @@ namespace frm
};
+ css::uno::Any translateExternalDoubleToControlIntValue(
+ const css::uno::Any& _rExternalValue, const css::uno::Reference< css::beans::XPropertySet >& _rxProperties,
+ const OUString& _rMinValueName, const OUString& _rMaxValueName );
+
+ css::uno::Any translateControlIntToExternalDoubleValue( const css::uno::Any& _rControlIntValue );
+
+
+
} // namespacefrm
diff --git a/forms/source/component/spinbutton.cxx b/forms/source/component/spinbutton.cxx
index fef41b5cf688..79714a329b58 100644
--- a/forms/source/component/spinbutton.cxx
+++ b/forms/source/component/spinbutton.cxx
@@ -18,6 +18,7 @@
*/
#include "spinbutton.hxx"
+#include "scrollbar.hxx"
#include <comphelper/streamsection.hxx>
#include <comphelper/basicio.hxx>
@@ -44,12 +45,6 @@ namespace frm
//= OSpinButtonModel
- // implemented elsewhere
- Any translateExternalDoubleToControlIntValue(
- const Any& _rExternalValue, const Reference< XPropertySet >& _rxProperties,
- const OUString& _rMinValueName, const OUString& _rMaxValueName );
- Any translateControlIntToExternalDoubleValue( const Any& _rControlIntValue );
-
OSpinButtonModel::OSpinButtonModel( const Reference<XComponentContext>& _rxFactory )
:OBoundControlModel( _rxFactory, VCL_CONTROLMODEL_SPINBUTTON, VCL_CONTROL_SPINBUTTON, true, true, false )
,m_nDefaultSpinValue( 0 )
diff --git a/vcl/inc/svmain.hxx b/include/vcl/svmain.hxx
index 6ea93fa4d5dc..be5a1b93bbfa 100644
--- a/vcl/inc/svmain.hxx
+++ b/include/vcl/svmain.hxx
@@ -17,14 +17,17 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_VCL_INC_SVMAIN_HXX
-#define INCLUDED_VCL_INC_SVMAIN_HXX
+#ifndef INCLUDED_VCL_SVMAIN_HXX
+#define INCLUDED_VCL_SVMAIN_HXX
#include <sal/config.h>
+#include <vcl/dllapi.h>
// #i47888# allow for alternative initialization as required for e.g. MacOSX
bool ImplSVMainHook( int* );
+VCL_DLLPUBLIC int SVMain();
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx
index 3288c2f8bc5b..c72ac27660ae 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx
@@ -33,11 +33,14 @@ namespace jfw_plugin
MalformedVersionException::MalformedVersionException()
{}
+
MalformedVersionException::MalformedVersionException(
const MalformedVersionException & )
{}
+
MalformedVersionException::~MalformedVersionException()
{}
+
MalformedVersionException &
MalformedVersionException::operator =(
const MalformedVersionException &)
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx
index 03500c76b3b1..a210571fc7ee 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx
@@ -29,9 +29,13 @@
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/chart2/data/XDatabaseDataProvider.hpp>
#include <comphelper/uno3.hxx>
+#include <xmloff/xmltoken.hxx>
namespace rptxml
{
+
+OUString lcl_createAttribute(const xmloff::token::XMLTokenEnum& _eNamespace,const xmloff::token::XMLTokenEnum& _eAttribute);
+
typedef ::cppu::WeakAggImplHelper3< ::com::sun::star::xml::sax::XDocumentHandler
, ::com::sun::star::lang::XInitialization
, ::com::sun::star::lang::XServiceInfo> ExportDocumentHandler_BASE;
diff --git a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
index 4d41b653f133..05bfd4b4d34c 100644
--- a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
@@ -38,6 +38,7 @@
#include "xmlHelper.hxx"
#include "xmlEnums.hxx"
+#include "xmlExportDocumentHandler.hxx"
#include <connectivity/dbtools.hxx>
@@ -46,8 +47,6 @@ namespace rptxml
using namespace ::com::sun::star;
using namespace ::xmloff::token;
-OUString lcl_createAttribute(const xmloff::token::XMLTokenEnum& _eNamespace,const xmloff::token::XMLTokenEnum& _eAttribute);
-
ImportDocumentHandler::ImportDocumentHandler(uno::Reference< uno::XComponentContext > const & context)
:m_bImportedChart( false )
,m_xContext(context)
diff --git a/rsc/source/prj/gui.hxx b/rsc/source/prj/gui.hxx
index 08a11e637834..7deab5b3b88e 100644
--- a/rsc/source/prj/gui.hxx
+++ b/rsc/source/prj/gui.hxx
@@ -24,6 +24,9 @@
int rsc2_main(int, char**);
+// Entry point declaration for modules rscpp and rsc2
+extern "C" int rscpp_main(int, char**);
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index 7c926f04d7a5..d42f0d8a58d1 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -41,12 +41,6 @@
#include <rtl/strbuf.hxx>
-// Entry point declaration for modules rscpp and rsc2
-extern "C"
-{
- int rscpp_main(int, char**);
-}
-
static bool CallPrePro( const OString& rInput,
const OString& rOutput, RscPtrPtr * pCmdLine,
bool bResponse )
diff --git a/sal/osl/unx/module.cxx b/sal/osl/unx/module.cxx
index 30fe2abb7603..c6ae0c0e5a30 100644
--- a/sal/osl/unx/module.cxx
+++ b/sal/osl/unx/module.cxx
@@ -27,6 +27,7 @@
#include <osl/file.h>
#include <assert.h>
#include "system.h"
+#include "file_url.h"
#ifdef AIX
#include <sys/ldr.h>
@@ -36,9 +37,6 @@
#include <osl/detail/android-bootstrap.h>
#endif
-/* implemented in file.c */
-extern "C" int UnicodeToText(char *, size_t, const sal_Unicode *, sal_Int32);
-
static bool getModulePathFromAddress(void * address, rtl_String ** path) {
bool result = false;
// We do want to have this functionality also in the
diff --git a/sal/osl/unx/mutex.c b/sal/osl/unx/mutex.c
index a8eb99dd7fed..f48e2e22b11c 100644
--- a/sal/osl/unx/mutex.c
+++ b/sal/osl/unx/mutex.c
@@ -25,7 +25,7 @@
#include <pthread.h>
#include <stdlib.h>
-#if defined LINUX /* bad hack */
+#if defined LINUX && !((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)) /* bad hack */
int pthread_mutexattr_setkind_np(pthread_mutexattr_t *, int);
#define pthread_mutexattr_settype pthread_mutexattr_setkind_np
#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
diff --git a/sal/osl/unx/pipe.c b/sal/osl/unx/pipe.c
index b0ee4324baff..e3e08b55a469 100644
--- a/sal/osl/unx/pipe.c
+++ b/sal/osl/unx/pipe.c
@@ -28,6 +28,7 @@
#include <rtl/bootstrap.h>
#include "sockimpl.h"
+#include "secimpl.h"
#define PIPEDEFAULTPATH "/tmp"
#define PIPEALTERNATEPATH "/var/tmp"
@@ -35,7 +36,6 @@
#define PIPENAMEMASK "OSL_PIPE_%s"
#define SECPIPENAMEMASK "OSL_PIPE_%s_%s"
-sal_Bool SAL_CALL osl_psz_getUserIdent(oslSecurity Security, sal_Char *pszIdent, sal_uInt32 nMax);
oslPipe SAL_CALL osl_psz_createPipe(const sal_Char *pszPipeName, oslPipeOptions Options, oslSecurity Security);
static struct
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx
index 70505da6ec03..21874271dc16 100644
--- a/sal/osl/unx/profile.cxx
+++ b/sal/osl/unx/profile.cxx
@@ -19,6 +19,7 @@
#include "system.h"
#include "readwrite_helper.h"
+#include "file_url.h"
#include <osl/diagnose.h>
#include <osl/profile.h>
@@ -131,9 +132,6 @@ static bool osl_ProfileSwapProfileNames(osl_TProfileImpl*);
static void osl_ProfileGenerateExtension(const sal_Char* pszFileName, const sal_Char* pszExtension, sal_Char* pszTmpName, int BufferMaxLen);
static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, oslProfileOption Flags);
-/* implemented in file.c */
-extern "C" oslFileError FileURLToPath( char *, size_t, rtl_uString* );
-
oslProfile SAL_CALL osl_openProfile(rtl_uString *ustrProfileName, oslProfileOption Options)
{
char profilePath[PATH_MAX] = "";
diff --git a/sal/osl/unx/secimpl.h b/sal/osl/unx/secimpl.h
index 0cbf41fcbb95..a7cadebb961e 100644
--- a/sal/osl/unx/secimpl.h
+++ b/sal/osl/unx/secimpl.h
@@ -31,6 +31,8 @@ typedef struct _oslSecurityImpl {
char m_buffer[1]; /* should be a C99 flexible array member */
} oslSecurityImpl;
+sal_Bool SAL_CALL osl_psz_getUserIdent(oslSecurity Security, sal_Char *pszIdent, sal_uInt32 nMax);
+
#ifdef __cplusplus
}
#endif
diff --git a/sal/osl/unx/security.cxx b/sal/osl/unx/security.cxx
index c98b86564118..a7c32a963f3b 100644
--- a/sal/osl/unx/security.cxx
+++ b/sal/osl/unx/security.cxx
@@ -45,7 +45,6 @@
static oslSecurityError SAL_CALL
osl_psz_loginUser(const sal_Char* pszUserName, const sal_Char* pszPasswd,
oslSecurity* pSecurity);
-extern "C" sal_Bool SAL_CALL osl_psz_getUserIdent(oslSecurity Security, sal_Char *pszIdent, sal_uInt32 nMax);
static bool SAL_CALL osl_psz_getUserName(oslSecurity Security, sal_Char* pszName, sal_uInt32 nMax);
static bool SAL_CALL osl_psz_getHomeDir(oslSecurity Security, sal_Char* pszDirectory, sal_uInt32 nMax);
static bool SAL_CALL osl_psz_getConfigDir(oslSecurity Security, sal_Char* pszDirectory, sal_uInt32 nMax);
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 8ea270aa2ce3..b4d12b618248 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -98,6 +98,7 @@
#include "documentlinkmgr.hxx"
#include "interpre.hxx"
#include <tokenstringcontext.hxx>
+#include "docsh.hxx"
using namespace com::sun::star;
@@ -924,8 +925,6 @@ bool ScDocument::CopyTab( SCTAB nOldPos, SCTAB nNewPos, const ScMarkData* pOnlyM
return bValid;
}
-void VBA_InsertModule( ScDocument& rDoc, SCTAB nTab, const OUString& sModuleName, const OUString& sModuleSource );
-
sal_uLong ScDocument::TransferTab( ScDocument* pSrcDoc, SCTAB nSrcPos,
SCTAB nDestPos, bool bInsertNew,
bool bResultsOnly )
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx
index 48e82e69edf5..821281d90180 100644
--- a/sc/source/filter/rtf/eeimpars.cxx
+++ b/sc/source/filter/rtf/eeimpars.cxx
@@ -52,14 +52,12 @@
#include "progress.hxx"
#include "stringutil.hxx"
#include <rowheightcontext.hxx>
+#include "fuinsert.hxx"
#include "globstr.hrc"
#include <boost/scoped_ptr.hpp>
-// in fuins1.cxx
-extern void ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& rPage );
-
ScEEImport::ScEEImport( ScDocument* pDocP, const ScRange& rRange ) :
maRange( rRange ),
mpDoc( pDocP ),
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index 7d0698119dda..a46e4266d416 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -54,9 +54,6 @@
#include <rowheightcontext.hxx>
#include <refupdatecontext.hxx>
-// defined in docfunc.cxx
-void VBA_InsertModule( ScDocument& rDoc, SCTAB nTab, const OUString& sModuleName, const OUString& sModuleSource );
-
using com::sun::star::script::XLibraryContainer;
using com::sun::star::script::vba::XVBACompatibility;
using com::sun::star::container::XNameContainer;
diff --git a/sc/source/ui/drawfunc/drawsh2.cxx b/sc/source/ui/drawfunc/drawsh2.cxx
index 311c1f129865..54a6ee8ddea5 100644
--- a/sc/source/ui/drawfunc/drawsh2.cxx
+++ b/sc/source/ui/drawfunc/drawsh2.cxx
@@ -45,14 +45,13 @@
#include "document.hxx"
#include "drwlayer.hxx"
#include "userdat.hxx"
+#include "drtxtob.hxx"
#include <gridwin.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdocapt.hxx>
#include <boost/bind.hpp>
-sal_uInt16 ScGetFontWorkId(); // in drtxtob
-
using namespace com::sun::star;
ScDrawShell::ScDrawShell( ScViewData* pData ) :
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx
index 77058fa448c3..4cac58cfe32b 100644
--- a/sc/source/ui/drawfunc/drawsh5.cxx
+++ b/sc/source/ui/drawfunc/drawsh5.cxx
@@ -55,6 +55,7 @@
#include "drwlayer.hxx"
#include "userdat.hxx"
#include "postit.hxx"
+#include "drtxtob.hxx"
#include <boost/scoped_ptr.hpp>
#include "sc.hrc"
@@ -239,8 +240,6 @@ void ScDrawShell::ExecuteHLink( SfxRequest& rReq )
}
}
-sal_uInt16 ScGetFontWorkId();
-
// Funktionen auf Drawing-Objekten
void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx
index e603841e5b33..5dc4d06a5d5e 100644
--- a/sc/source/ui/inc/docfunc.hxx
+++ b/sc/source/ui/inc/docfunc.hxx
@@ -231,6 +231,8 @@ public:
virtual ~ScDocFuncDirect() {}
};
+void VBA_DeleteModule( ScDocShell& rDocSh, const OUString& sModuleName );
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx
index 36731fedb73c..46bd07ebc8f4 100644
--- a/sc/source/ui/inc/docsh.hxx
+++ b/sc/source/ui/inc/docsh.hxx
@@ -506,6 +506,8 @@ namespace HelperNotifyChanges
}
};
+void VBA_InsertModule( ScDocument& rDoc, SCTAB nTab, const OUString& sModuleName, const OUString& sModuleSource );
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/fuinsert.hxx b/sc/source/ui/inc/fuinsert.hxx
index a93dd0495dea..6d30688b12f6 100644
--- a/sc/source/ui/inc/fuinsert.hxx
+++ b/sc/source/ui/inc/fuinsert.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SC_SOURCE_UI_INC_FUINSERT_HXX
#include "fupoor.hxx"
+#include "scdllapi.h"
class FuInsertGraphic : public FuPoor
{
@@ -74,6 +75,8 @@ class FuInsertMedia : public FuPoor
virtual void Deactivate() SAL_OVERRIDE;
};
+void SC_DLLPUBLIC ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& rPage );
+
#endif // _SD_FUINSERT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx
index 6f9d7ee8812a..d6717563809d 100644
--- a/sc/source/ui/vba/vbapagesetup.cxx
+++ b/sc/source/ui/vba/vbapagesetup.cxx
@@ -21,6 +21,7 @@
#include "convuno.hxx"
#include "rangelst.hxx"
#include "excelvbahelper.hxx"
+#include "vbarange.hxx"
#include <com/sun/star/sheet/XPrintAreas.hpp>
#include <com/sun/star/sheet/XHeaderFooterContent.hpp>
#include <com/sun/star/text/XText.hpp>
@@ -40,8 +41,6 @@ using namespace ::ooo::vba;
#define ZOOM_IN 10
#define ZOOM_MAX 400
-bool getScRangeListForAddress( const OUString& sName, ScDocShell* pDocSh, ScRange& refRange, ScRangeList& aCellRanges, formula::FormulaGrammar::AddressConvention aConv = formula::FormulaGrammar::CONV_XL_A1 ) throw ( uno::RuntimeException );
-
ScVbaPageSetup::ScVbaPageSetup(const uno::Reference< XHelperInterface >& xParent,
const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< sheet::XSpreadsheet >& xSheet,
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 0908823b865d..b5ddb21761ac 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -1162,7 +1162,7 @@ ScVbaRange::getCellRangesForAddress( sal_uInt16& rResFlags, const OUString& sAdd
return false;
}
-bool getScRangeListForAddress( const OUString& sName, ScDocShell* pDocSh, ScRange& refRange, ScRangeList& aCellRanges, formula::FormulaGrammar::AddressConvention aConv = formula::FormulaGrammar::CONV_XL_A1 ) throw ( uno::RuntimeException )
+bool getScRangeListForAddress( const OUString& sName, ScDocShell* pDocSh, ScRange& refRange, ScRangeList& aCellRanges, formula::FormulaGrammar::AddressConvention aConv ) throw ( uno::RuntimeException )
{
// see if there is a match with a named range
uno::Reference< beans::XPropertySet > xProps( pDocSh->GetModel(), uno::UNO_QUERY_THROW );
diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx
index 5c1227609a34..32d13900b287 100644
--- a/sc/source/ui/vba/vbarange.hxx
+++ b/sc/source/ui/vba/vbarange.hxx
@@ -50,6 +50,7 @@ class ScCellRangeObj;
class ScDocShell;
class ScDocument;
class ScRangeList;
+class ScRange;
typedef ScVbaFormat< ov::excel::XRange > ScVbaRange_BASE;
@@ -297,6 +298,12 @@ public:
virtual OUString getServiceImplName() SAL_OVERRIDE;
virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
};
+
+bool getScRangeListForAddress( const OUString& sName, ScDocShell* pDocSh, ScRange& refRange,
+ ScRangeList& aCellRanges,
+ formula::FormulaGrammar::AddressConvention aConv = formula::FormulaGrammar::CONV_XL_A1 )
+ throw ( css::uno::RuntimeException );
+
#endif // INCLUDED_SC_SOURCE_UI_VBA_VBARANGE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 4bfb03835ebc..eb868acb17b1 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -95,9 +95,6 @@ using ::editeng::SvxBorderLine;
using ::std::vector;
using ::std::auto_ptr;
-// helper func defined in docfunc.cxx
-void VBA_DeleteModule( ScDocShell& rDocSh, const OUString& sModuleName );
-
// STATIC DATA ---------------------------------------------------------------
bool ScViewFunc::AdjustBlockHeight( bool bPaint, ScMarkData* pMarkData )
diff --git a/scripting/source/dlgprov/DialogModelProvider.cxx b/scripting/source/dlgprov/DialogModelProvider.cxx
index 3e7d8891636a..d3e4aa5ef4f2 100644
--- a/scripting/source/dlgprov/DialogModelProvider.cxx
+++ b/scripting/source/dlgprov/DialogModelProvider.cxx
@@ -24,25 +24,6 @@
#include <cppuhelper/supportsservice.hxx>
-// component helper namespace
-namespace comp_DialogModelProvider {
-
-using namespace ::com::sun::star;
-using namespace awt;
-using namespace lang;
-using namespace uno;
-using namespace script;
-using namespace beans;
-
-
-// component and service helper functions:
-OUString SAL_CALL _getImplementationName();
-css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames();
-
-} // closing component helper namespace
-
-
-
/// anonymous implementation namespace
namespace dlgprov {
diff --git a/scripting/source/dlgprov/dlgprov.hxx b/scripting/source/dlgprov/dlgprov.hxx
index bd31342c5157..3246070d9241 100644
--- a/scripting/source/dlgprov/dlgprov.hxx
+++ b/scripting/source/dlgprov/dlgprov.hxx
@@ -154,6 +154,19 @@ namespace dlgprov
} // namespace dlgprov
+
+// component helper namespace
+namespace comp_DialogModelProvider {
+
+// component and service helper functions:
+OUString SAL_CALL _getImplementationName();
+css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames();
+
+} // namespace comp_DialogModelProvider
+
+
+
+
#endif // INCLUDED_SCRIPTING_SOURCE_DLGPROV_DLGPROV_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/inc/CustomAnimationPreset.hxx b/sd/inc/CustomAnimationPreset.hxx
index c380ba60dbcb..efe50de9d87f 100644
--- a/sd/inc/CustomAnimationPreset.hxx
+++ b/sd/inc/CustomAnimationPreset.hxx
@@ -138,8 +138,13 @@ private:
typedef boost::shared_ptr< CustomAnimationPresets > CustomAnimationPresetsPtr;
+css::uno::Reference< css::animations::XAnimationNode > implImportEffects( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceFactory, const OUString& rPath );
+
+void implImportLabels( const css::uno::Reference< css::lang::XMultiServiceFactory >& xConfigProvider, const OUString& rNodePath, UStringMap& rStringMap );
+
}
+
#endif // _SD_CUSTOMANIMATIONEFFECTS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/core/TransitionPreset.cxx b/sd/source/core/TransitionPreset.cxx
index 7ba9a5d07699..06662b9dea4a 100644
--- a/sd/source/core/TransitionPreset.cxx
+++ b/sd/source/core/TransitionPreset.cxx
@@ -37,6 +37,7 @@
#include <rtl/instance.hxx>
#include <tools/debug.hxx>
+#include <CustomAnimationPreset.hxx>
#include <TransitionPreset.hxx>
#include <unotools/ucbstreamhelper.hxx>
@@ -60,9 +61,6 @@ using ::com::sun::star::beans::NamedValue;
namespace sd {
-extern Reference< XAnimationNode > implImportEffects( const Reference< XMultiServiceFactory >& xServiceFactory, const OUString& rPath );
-extern void implImportLabels( const Reference< XMultiServiceFactory >& xConfigProvider, const OUString& rNodePath, UStringMap& rStringMap );
-
TransitionPreset::TransitionPreset( const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode )
{
// first locate preset id
diff --git a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
index e9f1f23d81c8..de4b5b1c9a81 100644
--- a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
@@ -63,8 +63,6 @@ const int EXIT = 2;
const int MOTIONPATH = 3;
const int MISCEFFECTS = 4;
-extern void fillDurationComboBox( ListBox* pBox );
-
class CategoryListBox : public ListBox
{
public:
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 0af0d213b462..99446e92d7b9 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -95,10 +95,6 @@ using ::com::sun::star::beans::XPropertySet;
namespace sd {
-extern void fillDurationComboBox( ListBox* pBox );
-extern OUString getShapeDescription( const Reference< XShape >& xShape, bool bWithText = true );
-extern OUString getPropertyName( sal_Int32 nPropertyType );
-
class PresetPropertyBox : public PropertySubControl
{
public:
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 3a23857f4c3a..e215e5b92c42 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -122,7 +122,7 @@ static sal_Int32 getShapeIndex( const Reference< XShape >& xShape )
return -1;
}
-OUString getShapeDescription( const Reference< XShape >& xShape, bool bWithText = true )
+OUString getShapeDescription( const Reference< XShape >& xShape, bool bWithText )
{
OUString aDescription;
Reference< XPropertySet > xSet( xShape, UNO_QUERY );
diff --git a/sd/source/ui/animations/CustomAnimationList.hxx b/sd/source/ui/animations/CustomAnimationList.hxx
index 74942dcc2698..b8d121df9423 100644
--- a/sd/source/ui/animations/CustomAnimationList.hxx
+++ b/sd/source/ui/animations/CustomAnimationList.hxx
@@ -112,6 +112,10 @@ private:
};
+OUString getPropertyName( sal_Int32 nPropertyType );
+
+OUString getShapeDescription( const css::uno::Reference< css::drawing::XShape >& xShape, bool bWithText = true );
+
}
#endif // INCLUDED_SD_SOURCE_UI_ANIMATIONS_CUSTOMANIMATIONLIST_HXX
diff --git a/sd/source/ui/animations/CustomAnimationPane.hxx b/sd/source/ui/animations/CustomAnimationPane.hxx
index c2665b76e2be..e9fbbc10cfa2 100644
--- a/sd/source/ui/animations/CustomAnimationPane.hxx
+++ b/sd/source/ui/animations/CustomAnimationPane.hxx
@@ -177,6 +177,8 @@ private:
void fillRepeatComboBox( ListBox* pBox );
+void fillDurationComboBox( ListBox* pBox );
+
}
#endif // INCLUDED_SD_SOURCE_UI_ANIMATIONS_CUSTOMANIMATIONPANE_HXX
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 8213cd9d8e9c..613c2da963fa 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -101,8 +101,6 @@ using namespace ::com::sun::star::office;
namespace sd {
-extern TextApiObject* getTextApiObject( const Reference< XAnnotation >& xAnnotation );
-
SfxItemPool* GetAnnotationPool()
{
static SfxItemPool* mpAnnotationPool = 0;
diff --git a/sd/source/ui/annotations/annotationmanagerimpl.hxx b/sd/source/ui/annotations/annotationmanagerimpl.hxx
index 8ad5c1659598..36b40e40870c 100644
--- a/sd/source/ui/annotations/annotationmanagerimpl.hxx
+++ b/sd/source/ui/annotations/annotationmanagerimpl.hxx
@@ -127,6 +127,12 @@ private:
Font maFont;
};
+OUString getAnnotationDateTimeString( const css::uno::Reference< css::office::XAnnotation >& xAnnotation );
+
+SfxItemPool* GetAnnotationPool();
+
+com::sun::star::util::DateTime getCurrentDateTime();
+
}
#endif // INCLUDED_SD_SOURCE_UI_ANNOTATIONS_ANNOTATIONMANAGERIMPL_HXX
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx
index 7665fbe39d84..9c6e530e0bc6 100644
--- a/sd/source/ui/annotations/annotationwindow.cxx
+++ b/sd/source/ui/annotations/annotationwindow.cxx
@@ -100,10 +100,6 @@ using namespace ::com::sun::star::text;
namespace sd {
-extern OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotation );
-extern SfxItemPool* GetAnnotationPool();
-extern com::sun::star::util::DateTime getCurrentDateTime();
-
Color ColorFromAlphaColor(sal_uInt8 aTransparency, Color &aFront, Color &aBack )
{
return Color((sal_uInt8)(aFront.GetRed() * aTransparency/(double)255 + aBack.GetRed() * (1-aTransparency/(double)255)),
diff --git a/sd/source/ui/annotations/annotationwindow.hxx b/sd/source/ui/annotations/annotationwindow.hxx
index fc692a0944a6..1a7582b5d91a 100644
--- a/sd/source/ui/annotations/annotationwindow.hxx
+++ b/sd/source/ui/annotations/annotationwindow.hxx
@@ -43,6 +43,7 @@ namespace sd {
class AnnotationManagerImpl;
class AnnotationWindow;
class DrawDocShell;
+class TextApiObject;
class View;
class AnnotationTextWindow : public Control
@@ -155,6 +156,9 @@ class AnnotationWindow : public FloatingWindow
Color maColorLight;
};
+TextApiObject* getTextApiObject( const css::uno::Reference< css::office::XAnnotation >& xAnnotation );
+
+
} // namespace sd
#endif
diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx
index 5c199a302a10..790b7af599a5 100644
--- a/sd/source/ui/controller/slidelayoutcontroller.cxx
+++ b/sd/source/ui/controller/slidelayoutcontroller.cxx
@@ -50,6 +50,7 @@
#include "sdresid.hxx"
#include "pres.hxx"
#include "slidelayoutcontroller.hxx"
+#include "ViewShellBase.hxx"
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -62,8 +63,6 @@ using namespace ::com::sun::star::beans;
namespace sd
{
-extern OUString ImplRetrieveLabelFromCommand( const Reference< XFrame >& xFrame, const OUString& aCmdURL );
-
class LayoutToolbarMenu : public svtools::ToolbarMenu
{
public:
diff --git a/sd/source/ui/inc/ViewShellBase.hxx b/sd/source/ui/inc/ViewShellBase.hxx
index 038de7685c9f..e2c7514137cd 100644
--- a/sd/source/ui/inc/ViewShellBase.hxx
+++ b/sd/source/ui/inc/ViewShellBase.hxx
@@ -252,6 +252,9 @@ private:
OUString GetInitialViewShellType (void);
};
+OUString ImplRetrieveLabelFromCommand( const css::uno::Reference< css::frame::XFrame >& xFrame, const OUString& aCmdURL );
+
+
} // end of namespace sd
#endif
diff --git a/sd/source/ui/unoidl/unopage.hxx b/sd/source/ui/inc/unopage.hxx
index 62a3b245864f..e0c70e2c3e2f 100644
--- a/sd/source/ui/unoidl/unopage.hxx
+++ b/sd/source/ui/inc/unopage.hxx
@@ -313,6 +313,8 @@ public:
virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
};
+OUString getUiNameFromPageApiNameImpl( const OUString& rApiName );
+
#endif // INCLUDED_SD_SOURCE_UI_UNOIDL_UNOPAGE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 57be255a37ff..eaf5b737c4fe 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -52,6 +52,7 @@
#include "DrawController.hxx"
#include "customshowlist.hxx"
#include <boost/bind.hpp>
+#include "unopage.hxx"
using ::com::sun::star::presentation::XSlideShowController;
using ::com::sun::star::container::XIndexAccess;
@@ -67,8 +68,6 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::animations;
using namespace ::com::sun::star::drawing::framework;
-extern OUString getUiNameFromPageApiNameImpl( const OUString& rApiName );
-
namespace {
/** This local version of the work window overloads DataChanged() so that it
can restart the slide show when a display is added or removed.
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index aeaf2121b707..606f804f2d8d 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -76,6 +76,7 @@
#include "svtools/colrdlg.hxx"
#include "RemoteServer.hxx"
#include "customshowlist.hxx"
+#include "unopage.hxx"
#include <boost/bind.hpp>
@@ -92,8 +93,6 @@ using namespace ::com::sun::star::document;
using namespace ::com::sun::star::presentation;
using namespace ::com::sun::star::beans;
-extern OUString getUiNameFromPageApiNameImpl( const OUString& rApiName );
-
namespace sd
{
/** Slots, which will be disabled in the slide show and are managed by Sfx.
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx
index 6c39a974dec7..c124631157ea 100644
--- a/sd/source/ui/unoidl/unoobj.cxx
+++ b/sd/source/ui/unoidl/unoobj.cxx
@@ -85,8 +85,6 @@ using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::drawing::XShape;
-extern OUString getUiNameFromPageApiNameImpl( const OUString& rApiName );
-
typedef std::map<sal_uIntPtr, SfxExtItemPropertySetInfo*> SdExtPropertySetInfoCache;
static SdExtPropertySetInfoCache gImplImpressPropertySetInfoCache;
static SdExtPropertySetInfoCache gImplDrawPropertySetInfoCache;
diff --git a/sfx2/inc/sfxbasecontroller_internal.hxx b/sfx2/inc/sfxbasecontroller_internal.hxx
new file mode 100644
index 000000000000..5b382f0c1631
--- /dev/null
+++ b/sfx2/inc/sfxbasecontroller_internal.hxx
@@ -0,0 +1,18 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_SFX2_INC_SFXBASECONTROLLER_INTERNAL_HXX
+#define INCLUDED_SFX2_INC_SFXBASECONTROLLER_INTERNAL_HXX
+
+extern sal_uInt32 Get10ThSec();
+
+
+#endif // INCLUDED_SFX2_INC_SFXBASECONTROLLER_INTERNAL_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index 83410b689f1b..e51a1d3fe57f 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -41,7 +41,8 @@
#include <sfx2/sfxresid.hxx>
#include "bastyp.hrc"
#include <sfx2/msg.hxx>
-
+#include "sfxslots.hxx"
+#include "sfxbasecontroller_internal.hxx"
#include <time.h>
using namespace ::com::sun::star::uno;
@@ -72,13 +73,6 @@ struct SfxProgress_Impl
-#include "sfxslots.hxx"
-
-
-extern sal_uInt32 Get10ThSec();
-
-
-
void SfxProgress_Impl::Enable_Impl( bool bEnable )
{
SfxObjectShell* pDoc = bAllDocs ? NULL : (SfxObjectShell*) xObjSh;
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index 34fe8656a537..7939e4246a86 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -72,14 +72,6 @@
#include <com/sun/star/task/InteractionClassification.hpp>
#include <com/sun/star/frame/XModel.hpp>
-using namespace ::com::sun::star;
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::ucb;
-using namespace ::com::sun::star::document;
-using namespace ::com::sun::star::frame;
-using namespace ::com::sun::star::script;
-using namespace ::com::sun::star::script::provider;
-using namespace ::com::sun::star::container;
#include <basic/sbuno.hxx>
#include <basic/sbstar.hxx>
#include <basic/basmgr.hxx>
@@ -130,9 +122,20 @@ using namespace ::com::sun::star::container;
#include <sfx2/sfxdlg.hxx>
#include "appbaslib.hxx"
#include <openflag.hxx>
+#include <objstor.hxx>
+#include <appopen.hxx>
#include <boost/scoped_ptr.hpp>
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::ucb;
+using namespace ::com::sun::star::document;
+using namespace ::com::sun::star::frame;
+using namespace ::com::sun::star::script;
+using namespace ::com::sun::star::script::provider;
+using namespace ::com::sun::star::container;
+
// class SfxHeaderAttributes_Impl ----------------------------------------
class SfxHeaderAttributes_Impl : public SvKeyValueIterator
@@ -1155,7 +1158,6 @@ bool SfxObjectShell::IsLoadingFinished() const
return ( pImp->nLoadedFlags == SFX_LOADED_ALL );
}
-void impl_addToModelCollection(const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& xModel);
void SfxObjectShell::InitOwnModel_Impl()
{
if ( !pImp->bModelInitialized )
@@ -1285,8 +1287,6 @@ void SfxObjectShell::FinishedLoading( sal_uInt16 nFlags )
}
-extern void SetTemplate_Impl( const OUString&, const OUString&, SfxObjectShell* );
-
void SfxObjectShell::TemplateDisconnectionAfterLoad()
{
// document is created from a template
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 377a75804a03..2cd15d0dd4a5 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -127,6 +127,7 @@
#include "graphhelp.hxx"
#include "appbaslib.hxx"
#include "appdata.hxx"
+#include <objstor.hxx>
#include "../appl/app.hrc"
diff --git a/sfx2/source/doc/objstor.hxx b/sfx2/source/doc/objstor.hxx
new file mode 100644
index 000000000000..a32e95867fc6
--- /dev/null
+++ b/sfx2/source/doc/objstor.hxx
@@ -0,0 +1,27 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_SFX2_SOURCE_DOC_OBJSTOR_HXX
+#define INCLUDED_SFX2_SOURCE_DOC_OBJSTOR_HXX
+
+void impl_addToModelCollection(const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& xModel);
+
+#endif // INCLUDED_SFX2_SOURCE_DOC_OBJSTOR_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/inc/appopen.hxx b/sfx2/source/inc/appopen.hxx
index 5e63687dadeb..6360b0a02b56 100644
--- a/sfx2/source/inc/appopen.hxx
+++ b/sfx2/source/inc/appopen.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SFX2_SOURCE_INC_APPOPEN_HXX
#include <sal/config.h>
-
#include <sal/types.h>
class SfxItemPool;
@@ -30,6 +29,9 @@ class SfxObjectShell;
sal_uInt32 CheckPasswd_Impl( SfxObjectShell* pDoc, SfxItemPool &rPool, SfxMedium* pFile );
+void SetTemplate_Impl( const OUString&, const OUString&, SfxObjectShell* );
+
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx
index fb06fe630225..953950afbad5 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -78,6 +78,7 @@
#include <sfx2/event.hxx>
#include <sfx2/viewfac.hxx>
+#include "sfxbasecontroller_internal.hxx"
#define TIMEOUT_START_RESCHEDULE 10L /* 10th s */
diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx
index 63d50fde27c7..de7e64717529 100644
--- a/svx/source/stbctrls/modctrl.cxx
+++ b/svx/source/stbctrls/modctrl.cxx
@@ -28,6 +28,7 @@
#include <svx/dialmgr.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
+#include "modctrl_internal.hxx"
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::beans::PropertyValue;
diff --git a/svx/source/stbctrls/modctrl_internal.hxx b/svx/source/stbctrls/modctrl_internal.hxx
new file mode 100644
index 000000000000..753bf95a6725
--- /dev/null
+++ b/svx/source/stbctrls/modctrl_internal.hxx
@@ -0,0 +1,26 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+#ifndef INCLUDED_SVX_SOURCE_STBCTRLS_MODCTRL_INTERNAL_HXX
+#define INCLUDED_SVX_SOURCE_STBCTRLS_MODCTRL_INTERNAL_HXX
+
+Point centerImage(const Rectangle& rBoundingRect, const Image& rImg);
+
+#endif // INCLUDED_SVX_SOURCE_STBCTRLS_MODCTRL_INTERNAL_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx
index cd711eba9a18..d5af62d7e227 100644
--- a/svx/source/stbctrls/zoomctrl.cxx
+++ b/svx/source/stbctrls/zoomctrl.cxx
@@ -33,6 +33,7 @@
#include <sfx2/zoomitem.hxx>
#include "stbctrls.h"
#include <svx/dialmgr.hxx>
+#include "modctrl_internal.hxx"
SFX_IMPL_STATUSBAR_CONTROL(SvxZoomStatusBarControl,SvxZoomItem);
@@ -188,8 +189,6 @@ SvxZoomPageStatusBarControl::SvxZoomPageStatusBarControl(sal_uInt16 _nSlotId,
GetStatusBar().SetQuickHelpText(GetId(), SVX_RESSTR(RID_SVXSTR_FIT_SLIDE));
}
-extern Point centerImage(const Rectangle& rBoundingRect, const Image& rImg);
-
void SvxZoomPageStatusBarControl::Paint(const UserDrawEvent& rUsrEvt)
{
OutputDevice* pDev = rUsrEvt.GetDevice();
diff --git a/svx/source/svdraw/svdoutlinercache.cxx b/svx/source/svdraw/svdoutlinercache.cxx
index 8f9eba82e52a..e9697988e043 100644
--- a/svx/source/svdraw/svdoutlinercache.cxx
+++ b/svx/source/svdraw/svdoutlinercache.cxx
@@ -20,8 +20,7 @@
#include "svdoutlinercache.hxx"
#include <svx/svdoutl.hxx>
#include <svx/svdmodel.hxx>
-
-extern SdrOutliner* SdrMakeOutliner( sal_uInt16 nOutlinerMode, SdrModel* pModel );
+#include <svx/svdetc.hxx>
SdrOutlinerCache::SdrOutlinerCache( SdrModel* pModel )
: mpModel( pModel ),
diff --git a/sw/Library_swui.mk b/sw/Library_swui.mk
index fe9e5847acc5..f32e182a9c76 100644
--- a/sw/Library_swui.mk
+++ b/sw/Library_swui.mk
@@ -22,6 +22,7 @@ $(eval $(call gb_Library_Library,swui))
$(eval $(call gb_Library_set_include,swui,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/uibase/inc \
+ -I$(SRCDIR)/sw/source/ui/inc \
-I$(WORKDIR)/SdiTarget/sw/sdi \
$$(INCLUDE) \
))
diff --git a/sw/inc/dcontact.hxx b/sw/inc/dcontact.hxx
index fc8b107f5d5d..9f5ef1fc3c01 100644
--- a/sw/inc/dcontact.hxx
+++ b/sw/inc/dcontact.hxx
@@ -56,10 +56,6 @@ bool HasWrap( const SdrObject* pObj );
void setContextWritingMode( SdrObject* pObj, SwFrm* pAnchor );
-/** When changes occur remove object from ContourCache.
- Implementation in TxtFly.cxx. */
-void ClrContourCache( const SdrObject *pObj );
-
/// @return BoundRect plus distance.
SwRect GetBoundRectOfAnchoredObj( const SdrObject* pObj );
diff --git a/sw/source/core/inc/finalthreadmanager.hxx b/sw/inc/finalthreadmanager.hxx
index 17e4c761012b..17e4c761012b 100644
--- a/sw/source/core/inc/finalthreadmanager.hxx
+++ b/sw/inc/finalthreadmanager.hxx
diff --git a/sw/inc/reffld.hxx b/sw/inc/reffld.hxx
index c961bb6266f3..740a561f6ba0 100644
--- a/sw/inc/reffld.hxx
+++ b/sw/inc/reffld.hxx
@@ -26,6 +26,9 @@ class SwDoc;
class SwTxtNode;
class SwTxtFld;
+bool IsFrameBehind( const SwTxtNode& rMyNd, sal_Int32 nMySttPos,
+ const SwTxtNode& rBehindNd, sal_Int32 nSttPos );
+
enum REFERENCESUBTYPE
{
REF_SETREFATTR = 0,
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index 6ac05e0af07e..545ed1db8eee 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -60,6 +60,8 @@ struct SwSaveRowSpan;
struct Parm;
class SwServerObject;
+void sw_GetTblBoxColStr( sal_uInt16 nCol, OUString& rNm );
+
class SwTableLines : public std::vector<SwTableLine*> {
public:
// free's any remaining child objects
diff --git a/sw/inc/unocoll.hxx b/sw/inc/unocoll.hxx
index 975fbbde8b2c..26034303ecd6 100644
--- a/sw/inc/unocoll.hxx
+++ b/sw/inc/unocoll.hxx
@@ -50,6 +50,9 @@ class SwSectionFmt;
class SwFmtRefMark;
class SwXReferenceMark;
class SwXBookmark;
+struct SvEventDescription;
+
+const SvEventDescription* sw_GetSupportedMacroItems();
class SwUnoCollection
{
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index d42659dfdcaf..85691bb7f517 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -630,6 +630,12 @@ int sw_CompareCellRanges(
void sw_NormalizeRange( OUString &rCell1, OUString &rCell2 );
+void sw_GetCellPosition( const OUString &rCellName, sal_Int32 &rColumn, sal_Int32 &rRow);
+
+OUString sw_GetCellName( sal_Int32 nColumn, sal_Int32 nRow );
+
+int sw_CompareCellsByColFirst( const OUString &rCellName1, const OUString &rCellName2 );
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
index b81dde872449..b76702822ab0 100644
--- a/sw/source/core/crsr/viscrs.cxx
+++ b/sw/source/core/crsr/viscrs.cxx
@@ -52,8 +52,7 @@
#include <boost/scoped_ptr.hpp>
#include <touch/touch.h>
-
-extern void SwCalcPixStatics( OutputDevice *pOut );
+#include <paintfrm.hxx>
// Here static members are defined. They will get changed on alteration of the
// MapMode. This is done so that on ShowCrsr the same size does not have to be
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 9d552ef5892f..19bc35a6141b 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -45,6 +45,7 @@
#include <docufld.hxx>
#include <unoflatpara.hxx>
#include <SwGrammarMarkUp.hxx>
+#include <docedt.hxx>
#include <vector>
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 9832b23912f7..df6bc19bafc6 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -63,9 +63,6 @@
using namespace ::com::sun::star::uno;
-extern bool IsFrameBehind( const SwTxtNode& rMyNd, sal_Int32 nMySttPos,
- const SwTxtNode& rBehindNd, sal_Int32 nSttPos );
-
/** Insert field types
*
* @param rFldTyp ???
diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx
index c4c105d8290e..0ca2f70d0c8f 100644
--- a/sw/source/core/doc/htmltbl.cxx
+++ b/sw/source/core/doc/htmltbl.cxx
@@ -40,6 +40,9 @@
#include "ndindex.hxx"
#include "switerator.hxx"
#include <boost/foreach.hpp>
+#ifdef DBG_UTIL
+#include "tblrwcl.hxx"
+#endif
using namespace ::com::sun::star;
@@ -1676,9 +1679,6 @@ void SwHTMLTableLayout::SetWidths( bool bCallPass2, sal_uInt16 nAbsAvail,
#ifdef DBG_UTIL
{
- // is located in tblrwcl.cxx
- extern void _CheckBoxWidth( const SwTableLine&, SwTwips );
-
// check if the tables have correct widths
SwTwips nSize = pSwTable->GetFrmFmt()->GetFrmSize().GetWidth();
const SwTableLines& rLines = pSwTable->GetTabLines();
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index e2cd1fcddca7..0f98c9c11493 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -74,11 +74,10 @@
#include <drawinglayer/primitive2d/graphicprimitive2d.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <drawinglayer/processor2d/processor2dtools.hxx>
+#include <txtfly.hxx>
using namespace com::sun::star;
-extern void ClrContourCache( const SdrObject *pObj ); // TxtFly.Cxx
-
inline bool GetRealURL( const SwGrfNode& rNd, OUString& rTxt )
{
bool bRet = rNd.GetFileFilterNms( &rTxt, 0 );
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index b0043669d943..970a7aac6a2a 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -53,6 +53,7 @@
#include <viewsh.hxx>
#include <txtfrm.hxx>
#include <boost/scoped_ptr.hpp>
+#include <ndsect.hxx>
// #i21457# - new implementation of local method <lcl_IsInSameTblBox(..)>.
// Method now determines the previous/next on its own. Thus, it can be controlled,
diff --git a/sw/source/core/docnode/ndsect.hxx b/sw/source/core/docnode/ndsect.hxx
new file mode 100644
index 000000000000..9ca5f60ddf78
--- /dev/null
+++ b/sw/source/core/docnode/ndsect.hxx
@@ -0,0 +1,28 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_SW_SOURCE_CORE_DOCNODE_NDSECT_HXX
+#define INCLUDED_SW_SOURCE_CORE_DOCNODE_NDSECT_HXX
+
+void sw_DeleteFtn( SwSectionNode *pNd, sal_uLong nStt, sal_uLong nEnd );
+
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index 9bacecaa7ae4..32737f65eefc 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -57,6 +57,7 @@
#include <switerator.hxx>
#include <svl/smplhint.hxx>
#include <algorithm>
+#include <ndsect.hxx>
using namespace ::com::sun::star;
@@ -674,8 +675,6 @@ SwSection * SwSectionFmt::GetSection() const
return SwIterator<SwSection,SwSectionFmt>::FirstElement( *this );
}
-extern void sw_DeleteFtn( SwSectionNode *pNd, sal_uLong nStt, sal_uLong nEnd );
-
// Do not destroy all Frms in aDepend (Frms are recognized with a PTR_CAST).
void SwSectionFmt::DelFrms()
{
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx
index ce33281b7031..fdf2d50a7966 100644
--- a/sw/source/core/draw/dcontact.cxx
+++ b/sw/source/core/draw/dcontact.cxx
@@ -68,6 +68,7 @@
#include <switerator.hxx>
#include <algorithm>
#include <drawdoc.hxx>
+#include <txtfly.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index cb1c552b471e..36f15bf3a38a 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -67,6 +67,7 @@
#include <fmtsrnd.hxx>
#include <ndole.hxx>
#include <editeng/opaqitem.hxx>
+#include <fefly.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/core/inc/docedt.hxx b/sw/source/core/inc/docedt.hxx
new file mode 100644
index 000000000000..0d7513ecd6ed
--- /dev/null
+++ b/sw/source/core/inc/docedt.hxx
@@ -0,0 +1,29 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_SW_SOURCE_CORE_INC_DOCEDT_HXX
+#define INCLUDED_SW_SOURCE_CORE_INC_DOCEDT_HXX
+
+void sw_JoinText( SwPaM& rPam, bool bJoinPrev );
+
+void sw_GetJoinFlags( SwPaM& rPam, bool& rJoinTxt, bool& rJoinPrev );
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/inc/fefly.hxx b/sw/source/core/inc/fefly.hxx
new file mode 100644
index 000000000000..0c51868d6773
--- /dev/null
+++ b/sw/source/core/inc/fefly.hxx
@@ -0,0 +1,28 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_SW_SOURCE_CORE_INC_FEFLY_HXX
+#define INCLUDED_SW_SOURCE_CORE_INC_FEFLY_HXX
+
+bool sw_ChkAndSetNewAnchor( SwEditShell& rEditShell, const SwFlyFrm& rFly, SfxItemSet& rSet );
+
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/inc/fntcap.hxx b/sw/source/core/inc/fntcap.hxx
new file mode 100644
index 000000000000..fe1a564c5996
--- /dev/null
+++ b/sw/source/core/inc/fntcap.hxx
@@ -0,0 +1,32 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_SW_SOURCE_CORE_INC_FNTCAP_HXX
+#define INCLUDED_SW_SOURCE_CORE_INC_FNTCAP_HXX
+
+sal_Int32 sw_CalcCaseMap( const SwFont& rFnt,
+ const OUString& rOrigString,
+ sal_Int32 nOfst,
+ sal_Int32 nLen,
+ sal_Int32 nIdx );
+
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/inc/frmtool.hxx b/sw/source/core/inc/frmtool.hxx
index 00cdf28b43d6..c836247ea786 100644
--- a/sw/source/core/inc/frmtool.hxx
+++ b/sw/source/core/inc/frmtool.hxx
@@ -43,6 +43,7 @@ class OutputDevice;
class Graphic;
class GraphicAttr;
class SwPageDesc;
+class SwFrmFmts;
#define FAR_AWAY LONG_MAX - 20000 // initial position of a Fly
#define BROWSE_HEIGHT 56700L * 10L // 10 Meters
@@ -50,6 +51,9 @@ class SwPageDesc;
#define GRFNUM_YES 1
#define GRFNUM_REPLACE 2
+void AppendObjs( const SwFrmFmts *pTbl, sal_uLong nIndex,
+ SwFrm *pFrm, SwPageFrm *pPage );
+
// draw background with brush or graphics
// The 6th parameter indicates that the method should consider background
// transparency, saved in the color of the brush item.
diff --git a/sw/source/core/inc/ftnfrm.hxx b/sw/source/core/inc/ftnfrm.hxx
index 3f6ef0bdd719..f50ffdc6fdb8 100644
--- a/sw/source/core/inc/ftnfrm.hxx
+++ b/sw/source/core/inc/ftnfrm.hxx
@@ -27,6 +27,8 @@ class SwTxtFtn;
class SwBorderAttrs;
class SwFtnFrm;
+void sw_RemoveFtns( SwFtnBossFrm* pBoss, bool bPageOnly, bool bEndNotes );
+
// There exists a special section on a page for footnotes. It's called
// SwFtnContFrm. Each footnote is separated by a SwFtnFrm which contains
// the paragraphs of a footnote. SwFtnFrm can be splitted and will then
diff --git a/sw/source/core/inc/paintfrm.hxx b/sw/source/core/inc/paintfrm.hxx
new file mode 100644
index 000000000000..941b60c29300
--- /dev/null
+++ b/sw/source/core/inc/paintfrm.hxx
@@ -0,0 +1,27 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_SW_SOURCE_CORE_INC_PAINTFRM_HXX
+#define INCLUDED_SW_SOURCE_CORE_INC_PAINTFRM_HXX
+
+void SwCalcPixStatics( OutputDevice *pOut );
+
+#endif // INCLUDED_SW_SOURCE_CORE_INC_PAINTFRM_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx
index bee664a32ad5..0c1bc28c0fb4 100644
--- a/sw/source/core/inc/swfont.hxx
+++ b/sw/source/core/inc/swfont.hxx
@@ -43,6 +43,8 @@ const sal_Unicode CH_TAB = '\t'; // \t
const sal_Unicode CH_PAR = 0xB6; // paragraph
const sal_Unicode CH_BULLET = 0xB7; // centered dot
+sal_uInt16 UnMapDirection( sal_uInt16 nDir, const bool bVertFormat );
+
class SwSubFont : public SvxFont
{
friend class SwFont;
diff --git a/sw/source/core/text/txtfly.hxx b/sw/source/core/inc/txtfly.hxx
index 77bfe71de137..4ff7c5703573 100644
--- a/sw/source/core/text/txtfly.hxx
+++ b/sw/source/core/inc/txtfly.hxx
@@ -16,11 +16,14 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_TXTFLY_HXX
-#define INCLUDED_SW_SOURCE_CORE_TEXT_TXTFLY_HXX
+#ifndef INCLUDED_SW_SOURCE_CORE_INC_TXTFLY_HXX
+#define INCLUDED_SW_SOURCE_CORE_INC_TXTFLY_HXX
#include "swtypes.hxx"
#include "swrect.hxx"
+#include <fmtsrndenum.hxx>
+#include <txttypes.hxx>
+#include <vector>
class OutputDevice;
class SwCntntFrm;
@@ -31,26 +34,25 @@ class SwTxtPaintInfo;
class SwFmt;
class TextRanger;
class SwAnchoredObject;
+class SwTxtFrm;
+class SwDrawTextInfo;
+class SwContourCache;
-#include <fmtsrndenum.hxx>
-
-#include <vector>
typedef std::vector< SwAnchoredObject* > SwAnchoredObjList;
enum PAGESIDE { LEFT_SIDE, RIGHT_SIDE, DONTKNOW_SIDE };
-class SwDrawTextInfo;
-class SwContourCache;
/** Contour-cache global variable, initialized/destroyed in txtinit.cxx
and needed in txtfly.cxx by text wrapping.
*/
extern SwContourCache *pContourCache;
-class SwTxtFrm;
#define POLY_CNT 20
#define POLY_MIN 5
#define POLY_MAX 4000
+void ClrContourCache( const SdrObject *pObj );
+
class SwContourCache
{
friend void ClrContourCache();
diff --git a/sw/source/core/layout/anchoreddrawobject.cxx b/sw/source/core/layout/anchoreddrawobject.cxx
index 4138f0160104..09451a5a1448 100644
--- a/sw/source/core/layout/anchoreddrawobject.cxx
+++ b/sw/source/core/layout/anchoreddrawobject.cxx
@@ -28,6 +28,7 @@
#include <vector>
#include <svx/svdogrp.hxx>
#include <DocumentSettingManager.hxx>
+#include <txtfly.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 3237455d77ac..0135ee88516d 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -24,6 +24,7 @@
#include <svtools/unoimap.hxx>
#include <svtools/imap.hxx>
#include <svtools/imapobj.hxx>
+#include <unocoll.hxx>
#include <unosett.hxx>
#include <unostyle.hxx>
#include <fmtclds.hxx>
@@ -1691,8 +1692,6 @@ void SwFmtURL::SetMap( const ImageMap *pM )
pMap = pM ? new ImageMap( *pM ) : 0;
}
-extern const SvEventDescription* sw_GetSupportedMacroItems();
-
bool SwFmtURL::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
{
// here we convert always!
diff --git a/sw/source/core/layout/colfrm.cxx b/sw/source/core/layout/colfrm.cxx
index c5c9ebe4654d..c35553baccfc 100644
--- a/sw/source/core/layout/colfrm.cxx
+++ b/sw/source/core/layout/colfrm.cxx
@@ -28,9 +28,7 @@
#include "rootfrm.hxx"
#include "sectfrm.hxx"
#include "switerator.hxx"
-
-// ftnfrm.cxx:
-void sw_RemoveFtns( SwFtnBossFrm* pBoss, bool bPageOnly, bool bEndNotes );
+#include "ftnfrm.hxx"
SwColumnFrm::SwColumnFrm( SwFrmFmt *pFmt, SwFrm* pSib ):
SwFtnBossFrm( pFmt, pSib )
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index c87d0cb67b7b..f4c01f43d1b9 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -61,6 +61,7 @@
#include "switerator.hxx"
#include <IDocumentSettingAccess.hxx>
#include <textboxhelper.hxx>
+#include <txtfly.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 0d0e8cee58a5..f3cd126ba531 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -67,9 +67,6 @@
#include <svx/sdr/attribute/sdrallfillattributeshelper.hxx>
#include <drawdoc.hxx>
-// ftnfrm.cxx:
-void sw_RemoveFtns( SwFtnBossFrm* pBoss, bool bPageOnly, bool bEndNotes );
-
using namespace ::com::sun::star;
bool bObjsDirect = true;
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index 5846f3f56ab4..34b348811609 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -70,6 +70,7 @@
#include <sortedobjs.hxx>
#include <switerator.hxx>
#include <vcl/svapp.hxx>
+#include <txtfly.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 8858b4cdb585..162c7a9a4489 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -84,10 +84,6 @@
#include <ndtxt.hxx>
#include <drawdoc.hxx>
-#define COL_NOTES_SIDEPANE RGB_COLORDATA(230,230,230)
-#define COL_NOTES_SIDEPANE_BORDER RGB_COLORDATA(200,200,200)
-#define COL_NOTES_SIDEPANE_SCROLLAREA RGB_COLORDATA(230,230,220)
-
#include <svtools/borderhelper.hxx>
#include "pagefrm.hrc"
@@ -108,6 +104,11 @@
#include <wrtsh.hxx>
#include <edtwin.hxx>
#include <view.hxx>
+#include <paintfrm.hxx>
+
+#define COL_NOTES_SIDEPANE RGB_COLORDATA(230,230,230)
+#define COL_NOTES_SIDEPANE_BORDER RGB_COLORDATA(200,200,200)
+#define COL_NOTES_SIDEPANE_SCROLLAREA RGB_COLORDATA(230,230,220)
using namespace ::editeng;
using namespace ::com::sun::star;
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 00ac6a280a26..bf81545323c4 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -66,9 +66,6 @@
#include <switerator.hxx>
#include <DocumentSettingManager.hxx>
-extern void AppendObjs( const SwFrmFmts *pTbl, sal_uLong nIndex,
- SwFrm *pFrm, SwPageFrm *pPage );
-
using namespace ::com::sun::star;
SwTabFrm::SwTabFrm( SwTable &rTab, SwFrm* pSib ):
diff --git a/sw/source/core/tox/txmsrt.cxx b/sw/source/core/tox/txmsrt.cxx
index ff7bc61234f4..88814ec3dde4 100644
--- a/sw/source/core/tox/txmsrt.cxx
+++ b/sw/source/core/tox/txmsrt.cxx
@@ -41,9 +41,7 @@
#include <comcore.hrc>
#include <numrule.hxx>
-
-extern bool IsFrameBehind( const SwTxtNode& rMyNd, sal_Int32 nMySttPos,
- const SwTxtNode& rBehindNd, sal_Int32 nSttPos );
+#include <reffld.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 1aec6e54285d..a4584df57668 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -52,6 +52,7 @@
#include <editeng/fhgtitem.hxx>
#include <docsh.hxx>
#include <poolfmt.hrc>
+#include <fntcap.hxx>
using namespace ::com::sun::star;
@@ -69,7 +70,6 @@ long SwFntObj::nPixWidth;
MapMode* SwFntObj::pPixMap = NULL;
OutputDevice* SwFntObj::pPixOut = NULL;
-extern sal_uInt16 UnMapDirection( sal_uInt16 nDir, const bool bVertFormat );
sal_uInt16 GetDefaultFontHeight( SwDrawTextInfo &rInf )
{
SwDocShell* pDocShell = rInf.GetShell()->GetDoc()->GetDocShell();
@@ -2279,12 +2279,6 @@ SwCacheObj *SwFntAccess::NewObj( )
return new SwFntObj( *(SwSubFont *)pOwner, ++pMagicNo, pShell );
}
-extern sal_Int32 sw_CalcCaseMap( const SwFont& rFnt,
- const OUString& rOrigString,
- sal_Int32 nOfst,
- sal_Int32 nLen,
- sal_Int32 nIdx );
-
sal_Int32 SwFont::GetTxtBreak( SwDrawTextInfo& rInf, long nTextWidth )
{
ChgFnt( rInf.GetShell(), rInf.GetOut() );
diff --git a/sw/source/core/txtnode/fntcap.cxx b/sw/source/core/txtnode/fntcap.cxx
index 0a173ed208be..0f6e535a3e2a 100644
--- a/sw/source/core/txtnode/fntcap.cxx
+++ b/sw/source/core/txtnode/fntcap.cxx
@@ -31,6 +31,7 @@
#include <breakit.hxx>
#include <txtfrm.hxx>
#include <scriptinfo.hxx>
+#include <fntcap.hxx>
using namespace ::com::sun::star::i18n;
diff --git a/sw/source/core/undo/unredln.cxx b/sw/source/core/undo/unredln.cxx
index 4c31ca31b2f0..75468c17c32a 100644
--- a/sw/source/core/undo/unredln.cxx
+++ b/sw/source/core/undo/unredln.cxx
@@ -30,9 +30,7 @@
#include <redline.hxx>
#include <docary.hxx>
#include <sortopt.hxx>
-
-extern void sw_JoinText( SwPaM& rPam, bool bJoinPrev );
-extern void sw_GetJoinFlags( SwPaM& rPam, bool& rJoinTxt, bool& rJoinPrev );
+#include <docedt.hxx>
SwUndoRedline::SwUndoRedline( SwUndoId nUsrId, const SwPaM& rRange )
: SwUndo( UNDO_REDLINE ), SwUndRng( rRange ),
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx
index 0a34baf37207..3d520784b9ca 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -49,11 +49,6 @@
using namespace ::com::sun::star;
-// from unotbl.cxx
-extern void sw_GetCellPosition( const OUString &rCellName, sal_Int32 &rColumn, sal_Int32 &rRow);
-extern OUString sw_GetCellName( sal_Int32 nColumn, sal_Int32 nRow );
-extern int sw_CompareCellsByColFirst( const OUString &rCellName1, const OUString &rCellName2 );
-
//static
void SwChartHelper::DoUpdateAllCharts( SwDoc* pDoc )
{
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index f77b8af02cab..b2636827aa26 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -137,9 +137,7 @@
#include <svx/xfltrit.hxx>
#include <swunohelper.hxx>
#include <drawdoc.hxx>
-
-// from fefly1.cxx
-extern bool sw_ChkAndSetNewAnchor( SwEditShell& rEditShell, const SwFlyFrm& rFly, SfxItemSet& rSet );
+#include <fefly.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index c7215a8a4b35..fe5fb6dd106a 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -95,13 +95,11 @@
#include <comphelper/string.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <comphelper/sequenceashashmap.hxx>
+#include <swtable.hxx>
using namespace ::com::sun::star;
using ::editeng::SvxBorderLine;
-// from swtable.cxx
-extern void sw_GetTblBoxColStr( sal_uInt16 nCol, OUString& rNm );
-
#define UNO_TABLE_COLUMN_SUM 10000
static void lcl_SendChartEvent(::cppu::OWeakObject & rSource,
diff --git a/sw/source/core/view/pagepreviewlayout.cxx b/sw/source/core/view/pagepreviewlayout.cxx
index f4d41ff0d9b3..94e98d1aa57a 100644
--- a/sw/source/core/view/pagepreviewlayout.cxx
+++ b/sw/source/core/view/pagepreviewlayout.cxx
@@ -36,13 +36,10 @@
#include <frmtool.hxx>
#include <sfx2/zoomitem.hxx>
#include <printdata.hxx>
+#include <paintfrm.hxx>
#include <IDocumentDeviceAccess.hxx>
-// OD 20.02.2003 #107369# - method to update statics for paint
-// Note: method defined in '/sw/source/core/layout/paintfrm.cxx'
-extern void SwCalcPixStatics( OutputDevice *pOut );
-
// methods to initialize page preview layout
SwPagePreviewLayout::SwPagePreviewLayout( SwViewShell& _rParentViewShell,
diff --git a/sw/source/core/view/viewpg.cxx b/sw/source/core/view/viewpg.cxx
index ba58d63f9e24..601c710b54c1 100644
--- a/sw/source/core/view/viewpg.cxx
+++ b/sw/source/core/view/viewpg.cxx
@@ -42,12 +42,10 @@
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentDeviceAccess.hxx>
+#include <vprint.hxx>
using namespace ::com::sun::star;
-SwPageFrm const*
-sw_getPage(SwRootFrm const& rLayout, sal_Int32 const nPage); // vprint.cxx
-
// OD 12.12.2002 #103492#
SwPagePreviewLayout* SwViewShell::PagePreviewLayout()
{
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx
index 392eec5f6cb5..c58e00a2e6a5 100644
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -70,6 +70,7 @@
#include <fmtpdsc.hxx>
#include <globals.hrc>
#include "PostItMgr.hxx"
+#include <vprint.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/core/view/vprint.hxx b/sw/source/core/view/vprint.hxx
new file mode 100644
index 000000000000..38e1bd98f4bc
--- /dev/null
+++ b/sw/source/core/view/vprint.hxx
@@ -0,0 +1,28 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_SW_SOURCE_CORE_VIEW_VPRINT_HXX
+#define INCLUDED_SW_SOURCE_CORE_VIEW_VPRINT_HXX
+
+SwPageFrm const* sw_getPage(SwRootFrm const& rLayout, sal_Int32 const nPage);
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+
diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx
index 2874ffd26d41..b9cc4c687b4d 100644
--- a/sw/source/filter/html/css1atr.cxx
+++ b/sw/source/filter/html/css1atr.cxx
@@ -86,6 +86,7 @@
#include "css1kywd.hxx"
#include "wrthtml.hxx"
#include "htmlnum.hxx"
+#include "css1atr.hxx"
#include <IDocumentStylePoolAccess.hxx>
#include <numrule.hxx>
diff --git a/sw/source/filter/html/css1atr.hxx b/sw/source/filter/html/css1atr.hxx
new file mode 100644
index 000000000000..ea07dec5cf30
--- /dev/null
+++ b/sw/source/filter/html/css1atr.hxx
@@ -0,0 +1,28 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_SW_SOURCE_FILTER_HTML_CSS1ATR_HXX
+#define INCLUDED_SW_SOURCE_FILTER_HTML_CSS1ATR_HXX
+
+bool swhtml_css1atr_equalFontItems( const SfxPoolItem& r1, const SfxPoolItem& r2 );
+
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index 0631e70846d6..ebdcd0d09e52 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -59,6 +59,7 @@
#include "htmlnum.hxx"
#include "swhtml.hxx"
#include <numrule.hxx>
+#include <css1atr.hxx>
using namespace ::com::sun::star;
@@ -646,8 +647,6 @@ static CSS1SelectorType GetTokenAndClass( const CSS1Selector *pSelector,
return eType;
}
-extern bool swhtml_css1atr_equalFontItems( const SfxPoolItem& r1, const SfxPoolItem& r2 );
-
static void RemoveScriptItems( SfxItemSet& rItemSet, sal_uInt16 nScript,
const SfxItemSet *pParentItemSet = 0 )
{
diff --git a/sw/source/filter/html/htmlfldw.cxx b/sw/source/filter/html/htmlfldw.cxx
index e0d37e3bef54..000b16d7bd58 100644
--- a/sw/source/filter/html/htmlfldw.cxx
+++ b/sw/source/filter/html/htmlfldw.cxx
@@ -33,6 +33,7 @@
#include "htmlfld.hxx"
#include "wrthtml.hxx"
#include <rtl/strbuf.hxx>
+#include <css1atr.hxx>
using namespace nsSwDocInfoSubType;
@@ -59,7 +60,6 @@ const sal_Char *SwHTMLWriter::GetNumFormat( sal_uInt16 nFmt )
return pFmtStr;
}
-extern bool swhtml_css1atr_equalFontItems( const SfxPoolItem& r1, const SfxPoolItem& r2 );
static Writer& OutHTML_SwField( Writer& rWrt, const SwField* pFld,
const SwTxtNode& rTxtNd, sal_Int32 nFldPos )
{
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index f2469a39e2e4..f8226b12664c 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -103,6 +103,7 @@
#include <statstr.hrc>
#include <swerror.h>
+#include <css1atr.hxx>
#define FONTSIZE_MASK 7
@@ -2034,8 +2035,6 @@ void SwHTMLParser::NextToken( int nToken )
aParaAttrs.clear();
}
-extern bool swhtml_css1atr_equalFontItems( const SfxPoolItem& r1, const SfxPoolItem& r2 );
-
static void lcl_swhtml_getItemInfo( const _HTMLAttr& rAttr,
bool& rScriptDependent, bool& rFont,
sal_uInt16& rScriptType )
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx
index 924481cc537e..2065d98cefa5 100644
--- a/sw/source/filter/xml/xmltble.cxx
+++ b/sw/source/filter/xml/xmltble.cxx
@@ -289,7 +289,6 @@ bool SwXMLTableFrmFmtsSort_Impl::AddRow( SwFrmFmt& rFrmFmt,
return bInsert;
}
-void sw_GetTblBoxColStr( sal_uInt16 nCol, OUString& rNm );
static OUString lcl_xmltble_appendBoxPrefix(const OUString& rNamePrefix,
sal_uInt32 nCol, sal_uInt32 nRow, bool bTop )
{
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index e61d7736757d..38df859ee57c 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -92,11 +92,7 @@
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
-
-namespace swui
-{
- SwAbstractDialogFactory * GetFactory();
-}
+#include <swuiexp.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::beans;
diff --git a/sw/source/ui/dialog/swuiexp.cxx b/sw/source/ui/dialog/swuiexp.cxx
index f2139afa2467..f90812fa4681 100644
--- a/sw/source/ui/dialog/swuiexp.cxx
+++ b/sw/source/ui/dialog/swuiexp.cxx
@@ -19,6 +19,7 @@
#include "swdlgfact.hxx"
#include "dialmgr.hxx"
+#include <swuiexp.hxx>
namespace swui
{
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx
index bdc199278157..4025f3703b8f 100644
--- a/sw/source/ui/envelp/envfmt.cxx
+++ b/sw/source/ui/envelp/envfmt.cxx
@@ -49,6 +49,7 @@
#include "swabstdlg.hxx"
#include "chrdlg.hrc"
+#include <swuiexp.hxx>
namespace {
/// Converts a ranges array to a list containing one entry for each
@@ -112,11 +113,6 @@ namespace {
}
-namespace swui
-{
- SwAbstractDialogFactory * GetFactory();
-}
-
static long lUserW = 5669; // 10 cm
static long lUserH = 5669; // 10 cm
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index 784ecdb8c6f9..e09c0141a40e 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -34,9 +34,7 @@
#include <helpid.h>
#include <globals.hrc>
#include <../../uibase/envelp/label.hrc>
-
-//impl in envimg.cxx
-extern SW_DLLPUBLIC OUString MakeSender();
+#include <envimg.hxx>
void SwLabRec::SetFromItem( const SwLabItem& rItem )
{
diff --git a/sw/source/ui/fldui/fldedt.cxx b/sw/source/ui/fldui/fldedt.cxx
index 4e94a7775b82..26a28cfd866e 100644
--- a/sw/source/ui/fldui/fldedt.cxx
+++ b/sw/source/ui/fldui/fldedt.cxx
@@ -47,11 +47,8 @@
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <boost/scoped_ptr.hpp>
+#include <swuiexp.hxx>
-namespace swui
-{
- SwAbstractDialogFactory * GetFactory();
-}
SwFldEditDlg::SwFldEditDlg(SwView& rVw)
: SfxSingleTabDialog(&rVw.GetViewFrame()->GetWindow(), 0,
diff --git a/sw/source/ui/inc/swuiexp.hxx b/sw/source/ui/inc/swuiexp.hxx
new file mode 100644
index 000000000000..6e9993b0717f
--- /dev/null
+++ b/sw/source/ui/inc/swuiexp.hxx
@@ -0,0 +1,29 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+#ifndef INCLUDED_SW_SOURCE_UI_INC_SWUIEXP_HXX
+#define INCLUDED_SW_SOURCE_UI_INC_SWUIEXP_HXX
+
+namespace swui
+{
+ SwAbstractDialogFactory * GetFactory();
+}
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/table/convert.cxx b/sw/source/ui/table/convert.cxx
index 3c52e34cde2e..c0af214b553b 100644
--- a/sw/source/ui/table/convert.cxx
+++ b/sw/source/ui/table/convert.cxx
@@ -35,11 +35,7 @@
#include "table.hrc"
#include "swabstdlg.hxx"
#include <boost/scoped_ptr.hpp>
-
-namespace swui
-{
- SwAbstractDialogFactory * GetFactory();
-}
+#include <swuiexp.hxx>
//keep the state of the buttons on runtime
static int nSaveButtonState = -1; // 0: tab, 1: semicolon, 2: paragraph, 3: other, -1: not yet used
diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx
index 6cfe91602781..c291cd8dd571 100644
--- a/sw/source/ui/table/instable.cxx
+++ b/sw/source/ui/table/instable.cxx
@@ -33,11 +33,7 @@
#include "swabstdlg.hxx"
#include <boost/scoped_ptr.hpp>
-
-namespace swui
-{
- SwAbstractDialogFactory * GetFactory();
-}
+#include <swuiexp.hxx>
#define ROW_COL_PROD 16384
diff --git a/sw/source/uibase/app/appenv.cxx b/sw/source/uibase/app/appenv.cxx
index afce13a19041..23c2e45e449f 100644
--- a/sw/source/uibase/app/appenv.cxx
+++ b/sw/source/uibase/app/appenv.cxx
@@ -67,6 +67,7 @@
#include "swabstdlg.hxx"
#include "envelp.hrc"
#include "envimg.hxx"
+#include <appenv.hxx>
#include <boost/scoped_ptr.hpp>
diff --git a/sw/source/uibase/app/appenv.hxx b/sw/source/uibase/app/appenv.hxx
new file mode 100644
index 000000000000..f319178132f2
--- /dev/null
+++ b/sw/source/uibase/app/appenv.hxx
@@ -0,0 +1,18 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_SW_SOURCE_UIBASE_APP_APPENV_HXX
+#define INCLUDED_SW_SOURCE_UIBASE_APP_APPENV_HXX
+
+OUString InsertLabEnvText( SwWrtShell& , SwFldMgr& , const OUString& );
+
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/app/applab.cxx b/sw/source/uibase/app/applab.cxx
index 7093574fdf16..ab606712eeb8 100644
--- a/sw/source/uibase/app/applab.cxx
+++ b/sw/source/uibase/app/applab.cxx
@@ -75,12 +75,10 @@
#include <IDocumentDeviceAccess.hxx>
#include <boost/scoped_ptr.hpp>
+#include <appenv.hxx>
using namespace ::com::sun::star;
-// is in appenv.cxx
-extern OUString InsertLabEnvText( SwWrtShell& , SwFldMgr& , const OUString& );
-
const char MASTER_LABEL[] = "MasterLabel";
static const SwFrmFmt *lcl_InsertBCText( SwWrtShell& rSh, const SwLabItem& rItem,
diff --git a/sw/source/uibase/app/swdllimpl.hxx b/sw/source/uibase/app/swdllimpl.hxx
index f5d7e2dcc19a..294156f293dd 100644
--- a/sw/source/uibase/app/swdllimpl.hxx
+++ b/sw/source/uibase/app/swdllimpl.hxx
@@ -34,3 +34,5 @@ private:
};
#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/textsh.hxx b/sw/source/uibase/inc/textsh.hxx
index 9e799585f27f..8ac0722f5201 100644
--- a/sw/source/uibase/inc/textsh.hxx
+++ b/sw/source/uibase/inc/textsh.hxx
@@ -83,6 +83,8 @@ public:
virtual ~SwTextShell();
};
+void sw_CharDialog( SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot,const SfxItemSet *pArgs, SfxRequest *pReq );
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx
index 62731cfbf3fb..e67752dec51b 100644
--- a/sw/source/uibase/lingu/olmenu.cxx
+++ b/sw/source/uibase/lingu/olmenu.cxx
@@ -41,6 +41,7 @@
#include "viewopt.hxx"
#include "wrtsh.hxx"
#include "wview.hxx"
+#include "textsh.hxx"
#include <comphelper/anytostring.hxx>
#include <comphelper/processfactory.hxx>
@@ -95,8 +96,6 @@
using namespace ::com::sun::star;
-extern void sw_CharDialog( SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot,const SfxItemSet *pArgs, SfxRequest *pReq );
-
/// @returns : the language for the selected text that is set for the
/// specified attribute (script type).
/// If there are more than one languages used LANGUAGE_DONTKNOW will be returned.
diff --git a/sw/source/uibase/uno/unofreg.cxx b/sw/source/uibase/uno/unofreg.cxx
index 985e3ee1c94e..46d8810ed37c 100644
--- a/sw/source/uibase/uno/unofreg.cxx
+++ b/sw/source/uibase/uno/unofreg.cxx
@@ -33,20 +33,10 @@ using namespace ::com::sun::star::lang;
// #i73788#
#include <cppuhelper/implementationentry.hxx>
-namespace comp_FinalThreadManager {
+#include <finalthreadmanager.hxx>
-// component and service helper functions:
-OUString SAL_CALL _getImplementationName();
-com::sun::star::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames();
-com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL _create(
- com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > const & context );
-
-}
-
-#ifdef __cplusplus
extern "C"
{
-#endif
static ::cppu::ImplementationEntry const entries[] = {
{ &comp_FinalThreadManager::_create,
@@ -280,8 +270,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL sw_component_getFactory(
return pRet;
}
-#ifdef __cplusplus
-}
-#endif
+} // extern "C"
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/awt/vclxspinbutton.cxx b/toolkit/source/awt/vclxspinbutton.cxx
index 1357673bba82..b006b15557f7 100644
--- a/toolkit/source/awt/vclxspinbutton.cxx
+++ b/toolkit/source/awt/vclxspinbutton.cxx
@@ -25,13 +25,7 @@
#include <tools/debug.hxx>
#include <vcl/spin.hxx>
#include <vcl/svapp.hxx>
-
-namespace toolkit
-{
- void setButtonLikeFaceColor( Window* _pWindow, const ::com::sun::star::uno::Any& _rColorValue );
- ::com::sun::star::uno::Any getButtonLikeFaceColor( const Window* _pWindow );
-}
-
+#include "vclxwindows_internal.hxx"
namespace toolkit
{
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 9752b3717c12..00f7cc5042e5 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -61,6 +61,7 @@
#include "helper/accessibilityclient.hxx"
#include "helper/imagealign.hxx"
#include "helper/tkresmgr.hxx"
+#include "vclxwindows_internal.hxx"
using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::Reference;
diff --git a/toolkit/source/awt/vclxwindows_internal.hxx b/toolkit/source/awt/vclxwindows_internal.hxx
new file mode 100644
index 000000000000..6140f2050e51
--- /dev/null
+++ b/toolkit/source/awt/vclxwindows_internal.hxx
@@ -0,0 +1,31 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_TOOLKIT_SOURCE_AWT_VCLXWINDOWS_INTERNAL_HXX
+#define INCLUDED_TOOLKIT_SOURCE_AWT_VCLXWINDOWS_INTERNAL_HXX
+
+namespace toolkit
+{
+ void setButtonLikeFaceColor( Window* _pWindow, const ::com::sun::star::uno::Any& _rColorValue );
+ ::com::sun::star::uno::Any getButtonLikeFaceColor( const Window* _pWindow );
+}
+
+#endif // INCLUDED_TOOLKIT_SOURCE_AWT_VCLXWINDOWS_INTERNAL_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index 327dc7fd88cb..2f0726e72158 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -63,6 +63,7 @@
#include "helper/tkresmgr.hxx"
#include "helper/unopropertyarrayhelper.hxx"
+#include "controlmodelcontainerbase_internal.hxx"
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -75,9 +76,6 @@ using namespace toolkit;
#define PROPERTY_RESOURCERESOLVER OUString( "ResourceResolver" )
-//HELPER
-OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl );
-
struct LanguageDependentProp
{
const char* pPropName;
diff --git a/toolkit/source/controls/controlmodelcontainerbase_internal.hxx b/toolkit/source/controls/controlmodelcontainerbase_internal.hxx
new file mode 100644
index 000000000000..528922d5561d
--- /dev/null
+++ b/toolkit/source/controls/controlmodelcontainerbase_internal.hxx
@@ -0,0 +1,28 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_TOOLKIT_SOURCE_CONTROLS_CONTROLMODELCONTAINERBASE_INTERNAL_HXX
+#define INCLUDED_TOOLKIT_SOURCE_CONTROLS_CONTROLMODELCONTAINERBASE_INTERNAL_HXX
+
+////HELPER
+OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl );
+
+#endif // INCLUDED_TOOLKIT_SOURCE_CONTROLS_CONTROLMODELCONTAINERBASE_INTERNAL_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index 0faf34fb3bfc..0da0984fc12d 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -52,6 +52,7 @@
#include "toolkit/controls/unocontrols.hxx"
#include "helper/unopropertyarrayhelper.hxx"
+#include "controlmodelcontainerbase_internal.hxx"
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -141,9 +142,6 @@ public:
}
};
-////HELPER
-OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl );
-
namespace {
class UnoControlDialogModel : public ControlModelContainerBase
diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx
index b7d199373475..3713c7f7f1fa 100644
--- a/vcl/inc/salinst.hxx
+++ b/vcl/inc/salinst.hxx
@@ -193,8 +193,6 @@ void DeInitSalData(); // called from Application-Dtor
void InitSalMain();
-VCL_DLLPUBLIC int SVMain();
-
#endif // INCLUDED_VCL_INC_SALINST_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index 3104733c0cdc..f88bf7917279 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -30,6 +30,7 @@
#include "vcl/svapp.hxx"
#include "vcl/window.hxx"
#include "vcl/timer.hxx"
+#include "vcl/svmain.hxx"
#include "osx/saldata.hxx"
#include "osx/salinst.h"
@@ -46,7 +47,6 @@
#include "print.h"
#include "impbmp.hxx"
#include "salimestatus.hxx"
-#include "svmain.hxx"
#include <comphelper/processfactory.hxx>
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 0acb009292a5..6c287551da4f 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -57,7 +57,7 @@
#include "salinst.hxx"
#include "salwtype.hxx"
#include "svdata.hxx"
-#include "svmain.hxx"
+#include "vcl/svmain.hxx"
#include "dbggui.hxx"
#include "accmgr.hxx"
#include "idlemgr.hxx"
diff --git a/vcl/source/app/svmainhook.cxx b/vcl/source/app/svmainhook.cxx
index 4974cff72057..a66bbc186f92 100644
--- a/vcl/source/app/svmainhook.cxx
+++ b/vcl/source/app/svmainhook.cxx
@@ -19,7 +19,7 @@
#include <sal/config.h>
-#include <svmain.hxx>
+#include <vcl/svmain.hxx>
#ifndef MACOSX
// MacOSX implementation of ImplSVMainHook is in osx/salinst.cxx
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 951258ebd2f3..9c69d980712a 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -67,6 +67,7 @@
#include <boost/scoped_ptr.hpp>
#include "FilterConfigCache.hxx"
+#include "graphicfilter_internal.hxx"
#define PMGCHUNG_msOG 0x6d734f47 // Microsoft Office Animated GIF
diff --git a/vcl/source/filter/graphicfilter2.cxx b/vcl/source/filter/graphicfilter2.cxx
index 192a07525aca..a2bf39b7a58a 100644
--- a/vcl/source/filter/graphicfilter2.cxx
+++ b/vcl/source/filter/graphicfilter2.cxx
@@ -23,11 +23,10 @@
#include <vcl/outdev.hxx>
#include <vcl/graphicfilter.hxx>
#include <unotools/ucbstreamhelper.hxx>
+#include "graphicfilter_internal.hxx"
#define DATA_SIZE 640
-sal_uInt8* ImplSearchEntry( sal_uInt8* , sal_uInt8* , sal_uLong , sal_uLong );
-
GraphicDescriptor::GraphicDescriptor( const INetURLObject& rPath ) :
pFileStm( ::utl::UcbStreamHelper::CreateStream( rPath.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READ ) ),
aPathExt( rPath.GetFileExtension().toAsciiLowerCase() ),
@@ -941,8 +940,6 @@ bool GraphicDescriptor::ImpDetectMET( SvStream&, bool )
return bRet;
}
-extern bool isPCT(SvStream& rStream, sal_uLong nStreamPos, sal_uLong nStreamLen);
-
bool GraphicDescriptor::ImpDetectPCT( SvStream& rStm, bool )
{
bool bRet = aPathExt.startsWith( "pct" );
diff --git a/vcl/source/filter/graphicfilter_internal.hxx b/vcl/source/filter/graphicfilter_internal.hxx
new file mode 100644
index 000000000000..3e27c30aa62b
--- /dev/null
+++ b/vcl/source/filter/graphicfilter_internal.hxx
@@ -0,0 +1,31 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_VCL_SOURCE_FILTER_GRAPHICFILTER_INTERNAL_HXX
+#define INCLUDED_VCL_SOURCE_FILTER_GRAPHICFILTER_INTERNAL_HXX
+
+#include "tools/solar.h"
+
+sal_uInt8* ImplSearchEntry( sal_uInt8* , sal_uInt8* , sal_uLong , sal_uLong );
+
+extern bool isPCT(SvStream& rStream, sal_uLong nStreamPos, sal_uLong nStreamLen);
+
+#endif // INCLUDED_VCL_SOURCE_FILTER_GRAPHICFILTER_INTERNAL_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/salmain/salmain.cxx b/vcl/source/salmain/salmain.cxx
index 13cd13fe4f99..7f0f90af0515 100644
--- a/vcl/source/salmain/salmain.cxx
+++ b/vcl/source/salmain/salmain.cxx
@@ -24,6 +24,7 @@
#include "sal/main.h"
#include "tools/extendapplicationenvironment.hxx"
#include "vcl/vclmain.hxx"
+#include "vcl/svmain.hxx"
#include "salinst.hxx"
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index b1bc2612bc4b..7b4ca2a6f5a7 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -20,8 +20,8 @@
#include <tools/debug.hxx>
#include <svdata.hxx>
-#include <window.h>
+#include <dlgctrl.hxx>
#include <vcl/event.hxx>
#include <vcl/fixed.hxx>
#include <vcl/layout.hxx>
@@ -379,7 +379,7 @@ Window* ImplFindDlgCtrlWindow( Window* pParent, Window* pWindow, sal_uInt16& rIn
}
Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, sal_Unicode cCharCode,
- sal_uInt16 nFormStart, sal_uInt16 nFormEnd, bool bCheckEnable = true )
+ sal_uInt16 nFormStart, sal_uInt16 nFormEnd, bool bCheckEnable )
{
DBG_ASSERT( (rIndex >= nFormStart) && (rIndex <= nFormEnd),
"Window::ImplFindAccelWindow() - rIndex not in Form" );
diff --git a/vcl/source/window/dlgctrl.hxx b/vcl/source/window/dlgctrl.hxx
new file mode 100644
index 000000000000..06c16b3b8076
--- /dev/null
+++ b/vcl/source/window/dlgctrl.hxx
@@ -0,0 +1,37 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_VCL_SOURCE_WINDOW_DLGCTRL_HXX
+#define INCLUDED_VCL_SOURCE_WINDOW_DLGCTRL_HXX
+
+#include <window.h>
+
+Window* ImplGetChildWindow( Window* pParent, sal_uInt16 n, sal_uInt16& nIndex, bool bTestEnable );
+
+Window* ImplFindDlgCtrlWindow( Window* pParent, Window* pWindow, sal_uInt16& rIndex,
+ sal_uInt16& rFormStart, sal_uInt16& rFormEnd );
+
+Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, sal_Unicode cCharCode,
+ sal_uInt16 nFormStart, sal_uInt16 nFormEnd, bool bCheckEnable = true );
+
+sal_Unicode getAccel( const OUString& rStr );
+
+#endif // INCLUDED_VCL_SOURCE_WINDOW_DLGCTRL_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/legacyaccessibility.cxx b/vcl/source/window/legacyaccessibility.cxx
index 4186d53cef83..5dc37d1846f0 100644
--- a/vcl/source/window/legacyaccessibility.cxx
+++ b/vcl/source/window/legacyaccessibility.cxx
@@ -20,8 +20,8 @@
#include <tools/debug.hxx>
#include <svdata.hxx>
-#include <window.h>
+#include <dlgctrl.hxx>
#include <vcl/event.hxx>
#include <vcl/fixed.hxx>
#include <vcl/layout.hxx>
@@ -38,16 +38,6 @@
using namespace ::com::sun::star;
-Window* ImplGetChildWindow( Window* pParent, sal_uInt16 n, sal_uInt16& nIndex, bool bTestEnable );
-
-Window* ImplFindDlgCtrlWindow( Window* pParent, Window* pWindow, sal_uInt16& rIndex,
- sal_uInt16& rFormStart, sal_uInt16& rFormEnd );
-
-Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, sal_Unicode cCharCode,
- sal_uInt16 nFormStart, sal_uInt16 nFormEnd, bool bCheckEnable = true );
-
-sal_Unicode getAccel( const OUString& rStr );
-
static Window* ImplGetLabelFor( Window* pFrameWindow, WindowType nMyType, Window* pLabel, sal_Unicode nAccel )
{
Window* pWindow = NULL;
diff --git a/vcl/unx/generic/app/i18n_im.cxx b/vcl/unx/generic/app/i18n_im.cxx
index 4137e4b66078..7e1587386546 100644
--- a/vcl/unx/generic/app/i18n_im.cxx
+++ b/vcl/unx/generic/app/i18n_im.cxx
@@ -41,9 +41,10 @@
#include <osl/thread.h>
#include <osl/process.h>
-using namespace vcl;
#include "unx/i18n_cb.hxx"
+using namespace vcl;
+
// kinput2 IME needs special key handling since key release events are filtered in
// preeditmode and XmbResetIC does not work
diff --git a/writerfilter/CppunitTest_writerfilter_misc.mk b/writerfilter/CppunitTest_writerfilter_misc.mk
index ad6bd7f66817..3f4fd80809a5 100644
--- a/writerfilter/CppunitTest_writerfilter_misc.mk
+++ b/writerfilter/CppunitTest_writerfilter_misc.mk
@@ -14,15 +14,30 @@ $(eval $(call gb_CppunitTest_use_api,writerfilter_misc,\
udkapi \
))
+$(eval $(call gb_CppunitTest_use_custom_headers,writerfilter_misc,\
+ writerfilter/source \
+))
+
+$(eval $(call gb_CppunitTest_set_include,writerfilter_misc,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/writerfilter/inc \
+ -I$(SRCDIR)/writerfilter/source \
+))
+
$(eval $(call gb_CppunitTest_use_external,writerfilter_misc,boost_headers))
$(eval $(call gb_CppunitTest_use_libraries,writerfilter_misc, \
writerfilter \
cppu \
sal \
+ salhelper \
$(gb_UWINAPI) \
))
+$(eval $(call gb_CppunitTest_use_externals,writerfilter_misc,\
+ libxml2 \
+))
+
$(eval $(call gb_CppunitTest_add_exception_objects,writerfilter_misc, \
writerfilter/qa/cppunittests/misc/misc \
))
diff --git a/writerfilter/qa/cppunittests/misc/misc.cxx b/writerfilter/qa/cppunittests/misc/misc.cxx
index fc37b146658c..0bc7da493f65 100644
--- a/writerfilter/qa/cppunittests/misc/misc.cxx
+++ b/writerfilter/qa/cppunittests/misc/misc.cxx
@@ -20,24 +20,13 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
+#include <dmapper/ConversionHelper.hxx>
+#include <dmapper/DomainMapper_Impl.hxx>
using namespace std;
-namespace writerfilter { namespace dmapper {
- namespace ConversionHelper{
- SAL_DLLPUBLIC_IMPORT sal_Int32 convertTwipToMM100(sal_Int32 _t);
- SAL_DLLPUBLIC_IMPORT sal_uInt32 convertTwipToMM100Unsigned(sal_Int32 _t);
- }
-
-SAL_DLLPUBLIC_IMPORT // export just for test
-boost::tuple<OUString, vector<OUString>, vector<OUString> >
-lcl_SplitFieldCommand(const OUString& rCommand);
-
-} }
-
-
namespace {
class WriterfilterMiscTest
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.hxx b/writerfilter/source/dmapper/DomainMapperTableManager.hxx
index 29896ae85454..fea928bd10e8 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.hxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.hxx
@@ -20,11 +20,11 @@
#define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_DOMAINMAPPERTABLEMANAGER_HXX
#include "TablePropertiesHandler.hxx"
-#include <TablePositionHandler.hxx>
+#include "TablePositionHandler.hxx"
#include <resourcemodel/TableManager.hxx>
-#include <PropertyMap.hxx>
-#include <StyleSheetTable.hxx>
+#include "PropertyMap.hxx"
+#include "StyleSheetTable.hxx"
#include <com/sun/star/text/XTextRange.hpp>
#include <vector>
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx
index 43bedc8c1efc..e577c86f1e97 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx
@@ -36,17 +36,17 @@
#include <ooxml/resourceids.hxx>
#endif
#include <dmapper/DomainMapper.hxx>
-#include <DomainMapperTableManager.hxx>
-#include <PropertyMap.hxx>
-#include <FontTable.hxx>
-#include <NumberingManager.hxx>
-#include <StyleSheetTable.hxx>
-#include <SettingsTable.hxx>
-#include <ThemeTable.hxx>
-#include <GraphicImport.hxx>
-#include <OLEHandler.hxx>
-#include <FFDataHandler.hxx>
-#include <FormControlHelper.hxx>
+#include "DomainMapperTableManager.hxx"
+#include "PropertyMap.hxx"
+#include "FontTable.hxx"
+#include "NumberingManager.hxx"
+#include "StyleSheetTable.hxx"
+#include "SettingsTable.hxx"
+#include "ThemeTable.hxx"
+#include "GraphicImport.hxx"
+#include "OLEHandler.hxx"
+#include "FFDataHandler.hxx"
+#include "FormControlHelper.hxx"
#include <map>
#include <string.h>
@@ -813,6 +813,11 @@ private:
void PushPageHeaderFooter(bool bHeader, SectionPropertyMap::PageType eType);
std::vector<css::uno::Reference< css::drawing::XShape > > m_vTextFramesForChaining ;
};
+
+// export just for test
+SAL_DLLPUBLIC_EXPORT boost::tuple<OUString, std::vector<OUString>, std::vector<OUString> >
+ lcl_SplitFieldCommand(const OUString& rCommand);
+
} //namespace dmapper
} //namespace writerfilter
#endif
diff --git a/writerfilter/source/dmapper/FormControlHelper.hxx b/writerfilter/source/dmapper/FormControlHelper.hxx
index c05a67615d1b..a3a683f3226d 100644
--- a/writerfilter/source/dmapper/FormControlHelper.hxx
+++ b/writerfilter/source/dmapper/FormControlHelper.hxx
@@ -19,7 +19,7 @@
#ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_FORMCONTROLHELPER_HXX
#define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_FORMCONTROLHELPER_HXX
-#include <FFDataHandler.hxx>
+#include "FFDataHandler.hxx"
#include <com/sun/star/text/XTextDocument.hpp>
#include <com/sun/star/text/XFormField.hpp>
#include <com/sun/star/uno/Reference.hxx>
diff --git a/writerfilter/source/dmapper/StyleSheetTable.hxx b/writerfilter/source/dmapper/StyleSheetTable.hxx
index de75314acf1a..482e15d05452 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.hxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.hxx
@@ -24,8 +24,8 @@
#include <dmapper/DomainMapper.hxx>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/beans/PropertyValues.hpp>
-#include <PropertyMap.hxx>
-#include <FontTable.hxx>
+#include "PropertyMap.hxx"
+#include "FontTable.hxx"
#include <resourcemodel/LoggedResources.hxx>
namespace com{ namespace sun { namespace star { namespace text{
diff --git a/writerfilter/source/dmapper/TablePropertiesHandler.hxx b/writerfilter/source/dmapper/TablePropertiesHandler.hxx
index e08cdbaf871d..6f4b3c762aa4 100644
--- a/writerfilter/source/dmapper/TablePropertiesHandler.hxx
+++ b/writerfilter/source/dmapper/TablePropertiesHandler.hxx
@@ -20,7 +20,7 @@
#ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_TABLEPROPERTIESHANDLER_HXX
#define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_TABLEPROPERTIESHANDLER_HXX
-#include <PropertyMap.hxx>
+#include "PropertyMap.hxx"
#include <resourcemodel/TableManager.hxx>
#include <resourcemodel/WW8ResourceModel.hxx>