summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/CppunitTest_svx_unit.mk1
-rw-r--r--svx/Executable_gengal.mk1
-rw-r--r--svx/qa/unit/xoutdev.cxx7
-rw-r--r--svx/source/gengal/gengal.cxx4
4 files changed, 13 insertions, 0 deletions
diff --git a/svx/CppunitTest_svx_unit.mk b/svx/CppunitTest_svx_unit.mk
index 6563d60e4eaf..0bac905a9dc9 100644
--- a/svx/CppunitTest_svx_unit.mk
+++ b/svx/CppunitTest_svx_unit.mk
@@ -20,6 +20,7 @@ $(eval $(call gb_CppunitTest_add_exception_objects,svx_unit, \
$(eval $(call gb_CppunitTest_use_libraries,svx_unit, \
sal \
+ sfx \
svxcore \
tl \
unotest \
diff --git a/svx/Executable_gengal.mk b/svx/Executable_gengal.mk
index 49b3b34df987..0cecfa02357c 100644
--- a/svx/Executable_gengal.mk
+++ b/svx/Executable_gengal.mk
@@ -33,6 +33,7 @@ $(eval $(call gb_Executable_use_libraries,gengal,\
basegfx \
sal \
tl \
+ sfx \
svl \
svt \
comphelper \
diff --git a/svx/qa/unit/xoutdev.cxx b/svx/qa/unit/xoutdev.cxx
index 7be8c4749992..22c92d5ff291 100644
--- a/svx/qa/unit/xoutdev.cxx
+++ b/svx/qa/unit/xoutdev.cxx
@@ -13,6 +13,7 @@
#include <cppunit/plugin/TestPlugIn.h>
#include <sal/types.h>
+#include <sfx2/app.hxx>
#include <tools/stream.hxx>
#include <unotest/directories.hxx>
#include <unotools/tempfile.hxx>
@@ -25,6 +26,12 @@ class XOutdevTest : public CppUnit::TestFixture
public:
void testPdfGraphicExport();
+ virtual void setUp() override
+ {
+ CppUnit::TestFixture::setUp();
+ SfxApplication::GetOrCreate();
+ }
+
CPPUNIT_TEST_SUITE(XOutdevTest);
CPPUNIT_TEST(testPdfGraphicExport);
CPPUNIT_TEST_SUITE_END();
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx
index f8b5385203a8..7c7fc24dff64 100644
--- a/svx/source/gengal/gengal.cxx
+++ b/svx/source/gengal/gengal.cxx
@@ -36,6 +36,8 @@
#include <osl/file.hxx>
#include <osl/process.h>
#include <rtl/bootstrap.hxx>
+#include <sfx2/app.hxx>
+#include <sal/types.h>
#include <vcl/svapp.hxx>
#include <svx/galtheme.hxx>
@@ -276,6 +278,8 @@ int GalApp::Main()
{
try
{
+ SfxApplication::GetOrCreate();
+
OUString aPath, aDestDir;
OUString aName( "Default name" );
std::vector<INetURLObject> aFiles;