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
29072b50
Kaydet (Commit)
29072b50
authored
Tem 03, 2014
tarafından
Steve Yin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 119044 - Highlighter from DOCX file not imported correctly
üst
63f53dbd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
6 deletions
+31
-6
CellColorHandler.cxx
writerfilter/source/dmapper/CellColorHandler.cxx
+17
-3
CellColorHandler.hxx
writerfilter/source/dmapper/CellColorHandler.hxx
+3
-2
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+11
-1
No files found.
writerfilter/source/dmapper/CellColorHandler.cxx
Dosyayı görüntüle @
29072b50
...
...
@@ -44,7 +44,7 @@ LoggedProperties(dmapper_logger, "CellColorHandler"),
m_nShadowType
(
0
),
m_nColor
(
0xffffffff
),
m_nFillColor
(
0xffffffff
),
m_
bParagraph
(
false
)
m_
eType
(
Others
)
{
}
/*-- 24.04.2007 09:06:35---------------------------------------------------
...
...
@@ -225,8 +225,22 @@ TablePropertyMapPtr CellColorHandler::getProperties()
nApplyColor
=
(
(
nRed
/
1000
)
<<
0x10
)
+
((
nGreen
/
1000
)
<<
8
)
+
nBlue
/
1000
;
}
pPropertyMap
->
Insert
(
m_bParagraph
?
PROP_PARA_BACK_COLOR
:
PROP_BACK_COLOR
,
false
,
uno
::
makeAny
(
nApplyColor
));
sal_Int32
objType
=
PROP_CHAR_BACK_COLOR
;
switch
(
m_eType
)
{
case
P
:
pPropertyMap
->
Insert
(
PROP_PARA_BACK_COLOR
,
false
,
uno
::
makeAny
(
nApplyColor
));
break
;
case
C
:
pPropertyMap
->
Insert
(
PROP_CHAR_BACK_COLOR
,
false
,
uno
::
makeAny
(
nApplyColor
));
break
;
case
Others
:
default
:
pPropertyMap
->
Insert
(
PROP_BACK_COLOR
,
false
,
uno
::
makeAny
(
nApplyColor
));
break
;
}
return
pPropertyMap
;
}
}
//namespace dmapper
...
...
writerfilter/source/dmapper/CellColorHandler.hxx
Dosyayı görüntüle @
29072b50
...
...
@@ -39,7 +39,8 @@ public:
sal_Int32
m_nShadowType
;
sal_Int32
m_nColor
;
sal_Int32
m_nFillColor
;
bool
m_bParagraph
;
enum
Type
{
P
,
C
,
Others
};
Type
m_eType
;
private
:
// Properties
...
...
@@ -52,7 +53,7 @@ public:
::
boost
::
shared_ptr
<
TablePropertyMap
>
getProperties
();
void
set
Paragraph
()
{
m_bParagraph
=
tru
e
;
}
void
set
Type
(
Type
type
)
{
m_eType
=
typ
e
;
}
};
typedef
boost
::
shared_ptr
<
CellColorHandler
>
CellColorHandlerPtr
;
}}
...
...
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
29072b50
...
...
@@ -2617,7 +2617,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
if
(
pProperties
.
get
())
{
CellColorHandlerPtr
pCellColorHandler
(
new
CellColorHandler
);
pCellColorHandler
->
set
Paragraph
(
);
pCellColorHandler
->
set
Type
(
CellColorHandler
::
P
);
pProperties
->
resolve
(
*
pCellColorHandler
);
rContext
->
insert
(
pCellColorHandler
->
getProperties
(),
true
);
}
...
...
@@ -3186,6 +3186,16 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
break
;
// sprmCBrc
case
NS_sprm
:
:
LN_CShd
:
/* WRITERFILTERSTATUS: done: 0, planned: 0, spent: 0 */
{
writerfilter
::
Reference
<
Properties
>::
Pointer_t
pProperties
=
rSprm
.
getProps
();
if
(
pProperties
.
get
())
{
CellColorHandlerPtr
pCellColorHandler
(
new
CellColorHandler
);
pCellColorHandler
->
setType
(
CellColorHandler
::
C
);
pProperties
->
resolve
(
*
pCellColorHandler
);
rContext
->
insert
(
pCellColorHandler
->
getProperties
(),
true
);
}
}
break
;
// sprmCShd
case
NS_sprm
:
:
LN_CIdslRMarkDel
:
/* WRITERFILTERSTATUS: done: 0, planned: 2, spent: 0 */
...
...
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