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
c62708c3
Kaydet (Commit)
c62708c3
authored
Haz 15, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#325936 testcase
Change-Id: I35d2ef784cbdcefe4c9bb18e1017d773202c1a9a
üst
a7bd0355
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
190 additions
and
0 deletions
+190
-0
CppunitTest_sw_subsequent_ww8export.mk
sw/CppunitTest_sw_subsequent_ww8export.mk
+101
-0
Module_sw.mk
sw/Module_sw.mk
+1
-0
n325936.doc
sw/qa/extras/ww8export/data/n325936.doc
+0
-0
ww8export.cxx
sw/qa/extras/ww8export/ww8export.cxx
+88
-0
No files found.
sw/CppunitTest_sw_subsequent_ww8export.mk
0 → 100644
Dosyayı görüntüle @
c62708c3
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Miklos Vajna <vmiklos@suse.cz> (SUSE, Inc.)
# Portions created by the Initial Developer are Copyright (C) 2012 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,sw_subsequent_ww8export))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_subsequent_ww8export, \
sw/qa/extras/ww8export/ww8export \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_subsequent_ww8export, \
cppu \
cppuhelper \
sal \
test \
unotest \
utl \
sw \
tl \
$(gb_STDLIBS) \
))
$(eval $(call gb_CppunitTest_use_externals,sw_subsequent_ww8export,\
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sw_subsequent_ww8export,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_subsequent_ww8export,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_subsequent_ww8export))
$(eval $(call gb_CppunitTest_use_components,sw_subsequent_ww8export,\
basic/util/sb \
comphelper/util/comphelp \
configmgr/source/configmgr \
dbaccess/util/dba \
fileaccess/source/fileacc \
filter/source/config/cache/filterconfig1 \
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
package/source/xstor/xstor \
package/util/package2 \
sw/util/msword \
sw/util/sw \
sw/util/swd \
sfx2/util/sfx \
svl/source/fsstor/fsstorage \
svtools/util/svt \
toolkit/util/tk \
ucb/source/core/ucb1 \
ucb/source/ucp/file/ucpfile1 \
unotools/util/utl \
unoxml/source/service/unoxml \
$(if $(filter DESKTOP,$(BUILD_TYPE)), \
xmlhelp/util/ucpchelp1) \
))
$(eval $(call gb_CppunitTest_use_configuration,sw_subsequent_ww8export))
$(eval $(call gb_CppunitTest_use_filter_configuration,sw_subsequent_ww8export))
$(eval $(call gb_CppunitTest_use_extra_configuration,sw_subsequent_ww8export,\
$(OUTDIR)/unittest/registry \
))
# vim: set noet sw=4 ts=4:
sw/Module_sw.mk
Dosyayı görüntüle @
c62708c3
...
...
@@ -56,6 +56,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sw,\
CppunitTest_sw_macros_test \
CppunitTest_sw_subsequent_ooxmlexport \
CppunitTest_sw_subsequent_ooxmltok \
CppunitTest_sw_subsequent_ww8export \
CppunitTest_sw_subsequent_ww8tok \
CppunitTest_sw_subsequent_rtfexport \
CppunitTest_sw_subsequent_rtftok \
...
...
sw/qa/extras/ww8export/data/n325936.doc
0 → 100644
Dosyayı görüntüle @
c62708c3
This diff was suppressed by a .gitattributes entry.
sw/qa/extras/ww8export/ww8export.cxx
0 → 100644
Dosyayı görüntüle @
c62708c3
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Initial Developer of the Original Code is
* Miklos Vajna <vmiklos@suse.cz> (SUSE, Inc.)
* Portions created by the Initial Developer are Copyright (C) 2012 the
* Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 3 or later (the "GPLv3+"), or
* the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
* in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
* instead of those above.
*/
#include "../swmodeltestbase.hxx"
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <unotools/tempfile.hxx>
using
rtl
::
OUString
;
class
Test
:
public
SwModelTestBase
{
public
:
void
testN325936
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
CPPUNIT_TEST
(
testN325936
);
#endif
CPPUNIT_TEST_SUITE_END
();
private
:
void
roundtrip
(
const
OUString
&
rURL
);
};
void
Test
::
roundtrip
(
const
OUString
&
rFilename
)
{
uno
::
Reference
<
lang
::
XComponent
>
xImported
=
loadFromDesktop
(
getURLFromSrc
(
"/sw/qa/extras/ww8export/data/"
)
+
rFilename
);
uno
::
Reference
<
frame
::
XStorable
>
xStorable
(
xImported
,
uno
::
UNO_QUERY
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aArgs
(
1
);
aArgs
[
0
].
Name
=
"FilterName"
;
aArgs
[
0
].
Value
<<=
OUString
(
"MS Word 97"
);
utl
::
TempFile
aTempFile
;
aTempFile
.
EnableKillingFile
();
xStorable
->
storeToURL
(
aTempFile
.
GetURL
(),
aArgs
);
mxComponent
=
loadFromDesktop
(
aTempFile
.
GetURL
());
}
void
Test
::
testN325936
()
{
/*
* The problem was that the transparent background of the drawing in the
* header was exported as non-transparent.
*
* xray ThisComponent.DrawPage(0).BackColorTransparency
*/
roundtrip
(
"n325936.doc"
);
uno
::
Reference
<
drawing
::
XDrawPageSupplier
>
xDrawPageSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xDraws
(
xDrawPageSupplier
->
getDrawPage
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xDraws
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
sal_Int32
nValue
=
0
;
xPropertySet
->
getPropertyValue
(
"BackColorTransparency"
)
>>=
nValue
;
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
100
),
nValue
);
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
/* 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