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
982d71f3
Kaydet (Commit)
982d71f3
authored
Tem 24, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
implement import of RTF_{MFUNC,MFUNCPR,MFNAME,MLIMLOW,MLIMLOWPR,MLIM}
Change-Id: Ibdecafae7942a0c79804176aa24e448dc505a5bb
üst
fbee23de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
1 deletion
+45
-1
rtfcontrolwords.cxx
writerfilter/source/rtftok/rtfcontrolwords.cxx
+2
-0
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+36
-0
rtfdocumentimpl.hxx
writerfilter/source/rtftok/rtfdocumentimpl.hxx
+7
-1
No files found.
writerfilter/source/rtftok/rtfcontrolwords.cxx
Dosyayı görüntüle @
982d71f3
...
@@ -887,7 +887,9 @@ RTFSymbol aRTFControlWords[] = {
...
@@ -887,7 +887,9 @@ RTFSymbol aRTFControlWords[] = {
{
"mlim"
,
CONTROL_DESTINATION
,
RTF_MLIM
},
{
"mlim"
,
CONTROL_DESTINATION
,
RTF_MLIM
},
{
"mlimloc"
,
CONTROL_DESTINATION
,
RTF_MLIMLOC
},
{
"mlimloc"
,
CONTROL_DESTINATION
,
RTF_MLIMLOC
},
{
"mlimlow"
,
CONTROL_DESTINATION
,
RTF_MLIMLOW
},
{
"mlimlow"
,
CONTROL_DESTINATION
,
RTF_MLIMLOW
},
{
"mlimLow"
,
CONTROL_DESTINATION
,
RTF_MLIMLOW
},
{
"mlimlowPr"
,
CONTROL_DESTINATION
,
RTF_MLIMLOWPR
},
{
"mlimlowPr"
,
CONTROL_DESTINATION
,
RTF_MLIMLOWPR
},
{
"mlimLowPr"
,
CONTROL_DESTINATION
,
RTF_MLIMLOWPR
},
{
"mlimupp"
,
CONTROL_DESTINATION
,
RTF_MLIMUPP
},
{
"mlimupp"
,
CONTROL_DESTINATION
,
RTF_MLIMUPP
},
{
"mlimuppPr"
,
CONTROL_DESTINATION
,
RTF_MLIMUPPPR
},
{
"mlimuppPr"
,
CONTROL_DESTINATION
,
RTF_MLIMUPPPR
},
{
"mlit"
,
CONTROL_FLAG
,
RTF_MLIT
},
{
"mlit"
,
CONTROL_FLAG
,
RTF_MLIT
},
...
...
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
982d71f3
...
@@ -1469,6 +1469,30 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
...
@@ -1469,6 +1469,30 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
m_aMathBuffer
.
appendOpeningTag
(
M_TOKEN
(
dPr
));
m_aMathBuffer
.
appendOpeningTag
(
M_TOKEN
(
dPr
));
m_aStates
.
top
().
nDestinationState
=
DESTINATION_MDPR
;
m_aStates
.
top
().
nDestinationState
=
DESTINATION_MDPR
;
break
;
break
;
case
RTF_MFUNC
:
m_aMathBuffer
.
appendOpeningTag
(
M_TOKEN
(
func
));
m_aStates
.
top
().
nDestinationState
=
DESTINATION_MFUNC
;
break
;
case
RTF_MFUNCPR
:
m_aMathBuffer
.
appendOpeningTag
(
M_TOKEN
(
funcPr
));
m_aStates
.
top
().
nDestinationState
=
DESTINATION_MFUNCPR
;
break
;
case
RTF_MFNAME
:
m_aMathBuffer
.
appendOpeningTag
(
M_TOKEN
(
fName
));
m_aStates
.
top
().
nDestinationState
=
DESTINATION_MFNAME
;
break
;
case
RTF_MLIMLOW
:
m_aMathBuffer
.
appendOpeningTag
(
M_TOKEN
(
limLow
));
m_aStates
.
top
().
nDestinationState
=
DESTINATION_MLIMLOW
;
break
;
case
RTF_MLIMLOWPR
:
m_aMathBuffer
.
appendOpeningTag
(
M_TOKEN
(
limLowPr
));
m_aStates
.
top
().
nDestinationState
=
DESTINATION_MLIMLOWPR
;
break
;
case
RTF_MLIM
:
m_aMathBuffer
.
appendOpeningTag
(
M_TOKEN
(
lim
));
m_aStates
.
top
().
nDestinationState
=
DESTINATION_MLIM
;
break
;
default
:
default
:
SAL_INFO
(
"writerfilter"
,
OSL_THIS_FUNC
<<
": TODO handle destination '"
<<
lcl_RtfToString
(
nKeyword
)
<<
"'"
);
SAL_INFO
(
"writerfilter"
,
OSL_THIS_FUNC
<<
": TODO handle destination '"
<<
lcl_RtfToString
(
nKeyword
)
<<
"'"
);
// Make sure we skip destinations (even without \*) till we don't handle them
// Make sure we skip destinations (even without \*) till we don't handle them
...
@@ -3601,6 +3625,18 @@ int RTFDocumentImpl::popState()
...
@@ -3601,6 +3625,18 @@ int RTFDocumentImpl::popState()
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
d
));
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
d
));
else
if
(
m_aStates
.
top
().
nDestinationState
==
DESTINATION_MDPR
)
else
if
(
m_aStates
.
top
().
nDestinationState
==
DESTINATION_MDPR
)
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
dPr
));
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
dPr
));
else
if
(
m_aStates
.
top
().
nDestinationState
==
DESTINATION_MFUNC
)
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
func
));
else
if
(
m_aStates
.
top
().
nDestinationState
==
DESTINATION_MFUNCPR
)
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
funcPr
));
else
if
(
m_aStates
.
top
().
nDestinationState
==
DESTINATION_MFNAME
)
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
fName
));
else
if
(
m_aStates
.
top
().
nDestinationState
==
DESTINATION_MLIMLOW
)
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
limLow
));
else
if
(
m_aStates
.
top
().
nDestinationState
==
DESTINATION_MLIMLOWPR
)
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
limLowPr
));
else
if
(
m_aStates
.
top
().
nDestinationState
==
DESTINATION_MLIM
)
m_aMathBuffer
.
appendClosingTag
(
M_TOKEN
(
lim
));
// See if we need to end a track change
// See if we need to end a track change
RTFValue
::
Pointer_t
pTrackchange
=
m_aStates
.
top
().
aCharacterSprms
.
find
(
NS_ooxml
::
LN_trackchange
);
RTFValue
::
Pointer_t
pTrackchange
=
m_aStates
.
top
().
aCharacterSprms
.
find
(
NS_ooxml
::
LN_trackchange
);
...
...
writerfilter/source/rtftok/rtfdocumentimpl.hxx
Dosyayı görüntüle @
982d71f3
...
@@ -136,7 +136,13 @@ namespace writerfilter {
...
@@ -136,7 +136,13 @@ namespace writerfilter {
DESTINATION_MD
,
DESTINATION_MD
,
DESTINATION_MDPR
,
DESTINATION_MDPR
,
DESTINATION_MBEGCHR
,
DESTINATION_MBEGCHR
,
DESTINATION_MENDCHR
DESTINATION_MENDCHR
,
DESTINATION_MFUNC
,
DESTINATION_MFUNCPR
,
DESTINATION_MFNAME
,
DESTINATION_MLIMLOW
,
DESTINATION_MLIMLOWPR
,
DESTINATION_MLIM
};
};
enum
RTFBorderState
enum
RTFBorderState
...
...
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