Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f5a98e08
Kaydet (Commit)
f5a98e08
authored
Agu 01, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test::BootstrapFixture: make GraphicConverter work
Change-Id: I566448db441eaa324cf619630a2e87cb8cbaeb99
üst
12a35ec8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
Library_test.mk
test/Library_test.mk
+1
-0
bootstrapfixture.hxx
test/inc/test/bootstrapfixture.hxx
+3
-0
bootstrapfixture.cxx
test/source/bootstrapfixture.cxx
+9
-0
No files found.
test/Library_test.mk
Dosyayı görüntüle @
f5a98e08
...
@@ -45,6 +45,7 @@ $(eval $(call gb_Library_use_libraries,test,\
...
@@ -45,6 +45,7 @@ $(eval $(call gb_Library_use_libraries,test,\
cppuhelper \
cppuhelper \
i18nisolang1 \
i18nisolang1 \
sal \
sal \
svt \
tl \
tl \
utl \
utl \
ucbhelper \
ucbhelper \
...
...
test/inc/test/bootstrapfixture.hxx
Dosyayı görüntüle @
f5a98e08
...
@@ -31,6 +31,8 @@
...
@@ -31,6 +31,8 @@
#include <sal/config.h>
#include <sal/config.h>
#include <rtl/string.hxx>
#include <rtl/string.hxx>
#include <tools/link.hxx>
#include <vcl/salctype.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
...
@@ -55,6 +57,7 @@ class OOO_DLLPUBLIC_TEST BootstrapFixture : public BootstrapFixtureBase
...
@@ -55,6 +57,7 @@ class OOO_DLLPUBLIC_TEST BootstrapFixture : public BootstrapFixtureBase
{
{
bool
m_bNeedUCB
;
bool
m_bNeedUCB
;
bool
m_bAssertOnDialog
;
bool
m_bAssertOnDialog
;
DECL_LINK
(
ImplInitFilterHdl
,
ConvertData
*
);
public
:
public
:
BootstrapFixture
(
bool
bAssertOnDialog
=
true
,
bool
bNeedUCB
=
true
);
BootstrapFixture
(
bool
bAssertOnDialog
=
true
,
bool
bNeedUCB
=
true
);
...
...
test/source/bootstrapfixture.cxx
Dosyayı görüntüle @
f5a98e08
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <tools/resmgr.hxx>
#include <tools/resmgr.hxx>
#include <svtools/filter.hxx>
#include <unotools/syslocaleoptions.hxx>
#include <unotools/syslocaleoptions.hxx>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
...
@@ -103,6 +104,9 @@ void test::BootstrapFixture::setUp()
...
@@ -103,6 +104,9 @@ void test::BootstrapFixture::setUp()
if
(
m_bAssertOnDialog
)
if
(
m_bAssertOnDialog
)
ErrorHandler
::
RegisterDisplay
(
aBasicErrorFunc
);
ErrorHandler
::
RegisterDisplay
(
aBasicErrorFunc
);
// Make GraphicConverter work, normally done in desktop::Desktop::Main()
Application
::
SetFilterHdl
(
LINK
(
this
,
test
::
BootstrapFixture
,
ImplInitFilterHdl
)
);
}
}
void
test
::
BootstrapFixture
::
tearDown
()
void
test
::
BootstrapFixture
::
tearDown
()
...
@@ -115,4 +119,9 @@ test::BootstrapFixture::~BootstrapFixture()
...
@@ -115,4 +119,9 @@ test::BootstrapFixture::~BootstrapFixture()
{
{
}
}
IMPL_LINK
(
test
::
BootstrapFixture
,
ImplInitFilterHdl
,
ConvertData
*
,
pData
)
{
return
GraphicFilter
::
GetGraphicFilter
().
GetFilterCallback
().
Call
(
pData
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment