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
ac6a2038
Kaydet (Commit)
ac6a2038
authored
Agu 24, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ODF filter: handle draw:shadow-opacity for Writer frames
Change-Id: I3ad39e5de5b6999d6c2182c1ec622ae7f873cafe
üst
2a01c49f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
textframe-transparent-shadow.odt
sw/qa/extras/odfexport/data/textframe-transparent-shadow.odt
+0
-0
odfexport.cxx
sw/qa/extras/odfexport/odfexport.cxx
+11
-0
txtprmap.cxx
xmloff/source/text/txtprmap.cxx
+1
-0
No files found.
sw/qa/extras/odfexport/data/textframe-transparent-shadow.odt
0 → 100644
Dosyayı görüntüle @
ac6a2038
File added
sw/qa/extras/odfexport/odfexport.cxx
Dosyayı görüntüle @
ac6a2038
...
...
@@ -22,6 +22,7 @@ public:
void
testFdo58949
();
void
testCharacterBorder
();
void
testFdo43807
();
void
testTextframeTransparentShadow
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -43,6 +44,7 @@ void Test::run()
{
"fdo58949.docx"
,
&
Test
::
testFdo58949
},
{
"charborder.odt"
,
&
Test
::
testCharacterBorder
},
{
"fdo43807.odt"
,
&
Test
::
testFdo43807
},
{
"textframe-transparent-shadow.odt"
,
&
Test
::
testTextframeTransparentShadow
},
};
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
...
@@ -371,6 +373,15 @@ void Test::testFdo43807()
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"User Defined Drop Caps"
),
getProperty
<
OUString
>
(
xSet
,
"DropCapCharStyleName"
));
}
void
Test
::
testTextframeTransparentShadow
()
{
uno
::
Reference
<
drawing
::
XDrawPageSupplier
>
xDrawPageSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XDrawPage
>
xDrawPage
=
xDrawPageSupplier
->
getDrawPage
();
uno
::
Reference
<
drawing
::
XShape
>
xPicture
(
xDrawPage
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
// ODF stores opacity of 75%, that means 25% transparency.
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
25
),
getProperty
<
sal_Int32
>
(
xPicture
,
"ShadowTransparence"
));
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
xmloff/source/text/txtprmap.cxx
Dosyayı görüntüle @
ac6a2038
...
...
@@ -708,6 +708,7 @@ XMLPropertyMapEntry aXMLFramePropMap[] =
MG_ED
(
"BottomBorder"
,
FO
,
BORDER_BOTTOM
,
XML_TYPE_BORDER
,
CTF_BOTTOMBORDER
),
// RES_SHADOW
MG_E
(
"ShadowFormat"
,
STYLE
,
SHADOW
,
XML_TYPE_TEXT_SHADOW
,
0
),
MG_E
(
"ShadowTransparence"
,
DRAW
,
SHADOW_OPACITY
,
XML_TYPE_NEG_PERCENT
,
0
),
// RES_FRMMACRO
// TODO
// RES_COL
...
...
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