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
5c57c9b6
Kaydet (Commit)
5c57c9b6
authored
Şub 24, 2014
tarafından
Zolnai Tamás
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: remove code duplication
Change-Id: I55dfeb9b0505bb5f46d5bcf98b10bd2ba7b187f9
üst
f2cdf884
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
17 deletions
+1
-17
ConversionHelper.cxx
writerfilter/source/dmapper/ConversionHelper.cxx
+0
-14
ConversionHelper.hxx
writerfilter/source/dmapper/ConversionHelper.hxx
+0
-1
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+1
-2
No files found.
writerfilter/source/dmapper/ConversionHelper.cxx
Dosyayı görüntüle @
5c57c9b6
...
...
@@ -240,20 +240,6 @@ sal_Int32 convertEMUToMM100(sal_Int32 _t)
return
_t
/
360
;
}
/*-------------------------------------------------------------------------
contains a color from 0xTTRRGGBB to 0xTTRRGGBB
-----------------------------------------------------------------------*/
sal_Int32
ConvertColor
(
sal_Int32
nWordColor
)
{
sal_uInt8
r
(
static_cast
<
sal_uInt8
>
(
nWordColor
&
0xFF
)),
g
(
static_cast
<
sal_uInt8
>
(((
nWordColor
)
>>
8
)
&
0xFF
)),
b
(
static_cast
<
sal_uInt8
>
((
nWordColor
>>
16
)
&
0xFF
)),
t
(
static_cast
<
sal_uInt8
>
((
nWordColor
>>
24
)
&
0xFF
));
sal_Int32
nRet
=
(
t
<<
24
)
+
(
r
<<
16
)
+
(
g
<<
8
)
+
b
;
return
nRet
;
}
sal_Int16
convertTableJustification
(
sal_Int32
nIntValue
)
{
sal_Int16
nOrient
=
text
::
HoriOrientation
::
LEFT_AND_WIDTH
;
...
...
writerfilter/source/dmapper/ConversionHelper.hxx
Dosyayı görüntüle @
5c57c9b6
...
...
@@ -46,7 +46,6 @@ namespace ConversionHelper{
sal_Int32
convertTwipToMM100
(
sal_Int32
_t
);
// probably the most useless unit in the world - English Metric Units (EMU) 360 000 EMU == 1cm
sal_Int32
convertEMUToMM100
(
sal_Int32
_t
);
sal_Int32
ConvertColor
(
sal_Int32
nWordColor
);
sal_Int16
convertTableJustification
(
sal_Int32
nIntValue
);
sal_Int16
ConvertNumberingType
(
sal_Int32
nFmt
);
...
...
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
5c57c9b6
...
...
@@ -1709,8 +1709,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
// the following are not part of the official documentation
case
0x6870
:
//TxtForeColor
{
//contains a color as 0xTTRRGGBB while SO uses 0xTTRRGGBB
sal_Int32
nColor
=
ConversionHelper
::
ConvertColor
(
nIntValue
);
sal_Int32
nColor
=
msfilter
::
util
::
BGRToRGB
(
nIntValue
);
rContext
->
Insert
(
PROP_CHAR_COLOR
,
uno
::
makeAny
(
nColor
)
);
}
break
;
...
...
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