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
9c7dbd9e
Kaydet (Commit)
9c7dbd9e
authored
Mar 06, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#60722 RTF import: fix line color default
Change-Id: Ic100837dd69498e97d940e5dfb4053c02fc7daa0
üst
e4f492ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
rtfsdrimport.cxx
writerfilter/source/rtftok/rtfsdrimport.cxx
+7
-5
No files found.
writerfilter/source/rtftok/rtfsdrimport.cxx
Dosyayı görüntüle @
9c7dbd9e
...
...
@@ -100,6 +100,8 @@ void RTFSdrImport::resolve(RTFShape& rShape)
beans
::
PropertyValue
aPropertyValue
;
awt
::
Rectangle
aViewBox
;
std
::
vector
<
beans
::
PropertyValue
>
aPathPropVec
;
// Default line color is black in Word, blue in Writer.
uno
::
Any
aLineColor
=
uno
::
makeAny
(
COL_BLACK
);
for
(
std
::
vector
<
std
::
pair
<
rtl
::
OUString
,
rtl
::
OUString
>
>::
iterator
i
=
rShape
.
aProperties
.
begin
();
i
!=
rShape
.
aProperties
.
end
();
++
i
)
...
...
@@ -138,11 +140,8 @@ void RTFSdrImport::resolve(RTFShape& rShape)
}
else
if
(
i
->
first
==
"fillBackColor"
)
;
// Ignore: complementer of fillColor
else
if
(
i
->
first
==
"lineColor"
&&
xPropertySet
.
is
())
{
aAny
<<=
msfilter
::
util
::
BGRToRGB
(
i
->
second
.
toInt32
());
xPropertySet
->
setPropertyValue
(
"LineColor"
,
aAny
);
}
else
if
(
i
->
first
==
"lineColor"
)
aLineColor
<<=
msfilter
::
util
::
BGRToRGB
(
i
->
second
.
toInt32
());
else
if
(
i
->
first
==
"lineBackColor"
)
;
// Ignore: complementer of lineColor
else
if
(
i
->
first
==
"txflTextFlow"
&&
xPropertySet
.
is
())
...
...
@@ -297,6 +296,9 @@ void RTFSdrImport::resolve(RTFShape& rShape)
OUStringToOString
(
i
->
second
,
RTL_TEXTENCODING_UTF8
).
getStr
()
<<
"'"
);
}
if
(
xPropertySet
.
is
())
xPropertySet
->
setPropertyValue
(
"LineColor"
,
aLineColor
);
if
(
nType
==
ESCHER_ShpInst_PictureFrame
)
// picture frame
{
if
(
bPib
)
...
...
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