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
71bf95db
Kaydet (Commit)
71bf95db
authored
May 07, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
implement RTF_DPFILLBGCR/G/B
Change-Id: I Ie4df6921201b2be4e7d9aa3febd1dcdc1e3eef40
üst
4485ff1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+20
-4
rtfdocumentimpl.hxx
writerfilter/source/rtftok/rtfdocumentimpl.hxx
+2
-0
No files found.
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
71bf95db
...
@@ -2840,6 +2840,15 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
...
@@ -2840,6 +2840,15 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case
RTF_DPLINECOB
:
case
RTF_DPLINECOB
:
m_aStates
.
top
().
aDrawingObject
.
nLineColorB
=
nParam
;
m_aStates
.
top
().
aDrawingObject
.
bHasLineColor
=
true
;
m_aStates
.
top
().
aDrawingObject
.
nLineColorB
=
nParam
;
m_aStates
.
top
().
aDrawingObject
.
bHasLineColor
=
true
;
break
;
break
;
case
RTF_DPFILLBGCR
:
m_aStates
.
top
().
aDrawingObject
.
nFillColorR
=
nParam
;
m_aStates
.
top
().
aDrawingObject
.
bHasFillColor
=
true
;
break
;
case
RTF_DPFILLBGCG
:
m_aStates
.
top
().
aDrawingObject
.
nFillColorG
=
nParam
;
m_aStates
.
top
().
aDrawingObject
.
bHasFillColor
=
true
;
break
;
case
RTF_DPFILLBGCB
:
m_aStates
.
top
().
aDrawingObject
.
nFillColorB
=
nParam
;
m_aStates
.
top
().
aDrawingObject
.
bHasFillColor
=
true
;
break
;
default
:
default
:
SAL_INFO
(
"writerfilter"
,
OSL_THIS_FUNC
<<
": TODO handle value '"
<<
lcl_RtfToString
(
nKeyword
)
<<
"'"
);
SAL_INFO
(
"writerfilter"
,
OSL_THIS_FUNC
<<
": TODO handle value '"
<<
lcl_RtfToString
(
nKeyword
)
<<
"'"
);
aSkip
.
setParsed
(
false
);
aSkip
.
setParsed
(
false
);
...
@@ -3339,12 +3348,15 @@ int RTFDocumentImpl::popState()
...
@@ -3339,12 +3348,15 @@ int RTFDocumentImpl::popState()
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
rDrawing
.
xShape
);
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
rDrawing
.
xShape
);
xShape
->
setPosition
(
awt
::
Point
(
rDrawing
.
nLeft
,
rDrawing
.
nTop
));
xShape
->
setPosition
(
awt
::
Point
(
rDrawing
.
nLeft
,
rDrawing
.
nTop
));
xShape
->
setSize
(
awt
::
Size
(
rDrawing
.
nRight
,
rDrawing
.
nBottom
));
xShape
->
setSize
(
awt
::
Size
(
rDrawing
.
nRight
,
rDrawing
.
nBottom
));
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
rDrawing
.
xPropertySet
);
if
(
rDrawing
.
bHasLineColor
)
if
(
rDrawing
.
bHasLineColor
)
{
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
rDrawing
.
xPropertySet
);
xPropertySet
->
setPropertyValue
(
"LineColor"
,
uno
::
makeAny
(
sal_uInt32
((
rDrawing
.
nLineColorR
<<
16
)
+
(
rDrawing
.
nLineColorG
<<
8
)
+
rDrawing
.
nLineColorB
)));
xPropertySet
->
setPropertyValue
(
"LineColor"
,
uno
::
makeAny
(
sal_uInt32
((
rDrawing
.
nLineColorR
<<
16
)
+
(
rDrawing
.
nLineColorG
<<
8
)
+
rDrawing
.
nLineColorB
)));
}
if
(
rDrawing
.
bHasFillColor
)
xPropertySet
->
setPropertyValue
(
"FillColor"
,
uno
::
makeAny
(
sal_uInt32
((
rDrawing
.
nFillColorR
<<
16
)
+
(
rDrawing
.
nFillColorG
<<
8
)
+
rDrawing
.
nFillColorB
)));
else
// If there is no fill, the Word default is 100% transparency.
xPropertySet
->
setPropertyValue
(
"FillTransparence"
,
uno
::
makeAny
(
sal_Int32
(
100
)));
Mapper
().
startShape
(
xShape
);
Mapper
().
startShape
(
xShape
);
Mapper
().
endShape
();
Mapper
().
endShape
();
...
@@ -3657,7 +3669,11 @@ RTFDrawingObject::RTFDrawingObject()
...
@@ -3657,7 +3669,11 @@ RTFDrawingObject::RTFDrawingObject()
:
nLineColorR
(
0
),
:
nLineColorR
(
0
),
nLineColorG
(
0
),
nLineColorG
(
0
),
nLineColorB
(
0
),
nLineColorB
(
0
),
bHasLineColor
(
false
)
bHasLineColor
(
false
),
nFillColorR
(
0
),
nFillColorG
(
0
),
nFillColorB
(
0
),
bHasFillColor
(
false
)
{
{
}
}
...
...
writerfilter/source/rtftok/rtfdocumentimpl.hxx
Dosyayı görüntüle @
71bf95db
...
@@ -203,6 +203,8 @@ namespace writerfilter {
...
@@ -203,6 +203,8 @@ namespace writerfilter {
std
::
vector
<
beans
::
PropertyValue
>
aPendingProperties
;
std
::
vector
<
beans
::
PropertyValue
>
aPendingProperties
;
sal_uInt8
nLineColorR
,
nLineColorG
,
nLineColorB
;
sal_uInt8
nLineColorR
,
nLineColorG
,
nLineColorB
;
bool
bHasLineColor
;
bool
bHasLineColor
;
sal_uInt8
nFillColorR
,
nFillColorG
,
nFillColorB
;
bool
bHasFillColor
;
};
};
/// Stores the properties of a picture.
/// Stores the properties of a picture.
...
...
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