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
61b1fb0f
Kaydet (Commit)
61b1fb0f
authored
Agu 29, 2011
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more generic m:nary implementation
üst
3c923d98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
34 deletions
+5
-34
ooxml.cxx
starmath/source/ooxml.cxx
+5
-33
ooxml.hxx
starmath/source/ooxml.hxx
+0
-1
No files found.
starmath/source/ooxml.cxx
Dosyayı görüntüle @
61b1fb0f
...
...
@@ -427,43 +427,15 @@ void SmOoxml::HandleRoot( const SmRootNode* pNode, int nLevel )
void
SmOoxml
::
HandleOperator
(
const
SmOperNode
*
pNode
,
int
nLevel
)
{
fprintf
(
stderr
,
"OPER %d
\n
"
,
pNode
->
GetToken
().
eType
);
switch
(
pNode
->
GetToken
().
eType
)
{
case
TINT
:
HandleOperatorNary
(
pNode
,
nLevel
,
sal_Unicode
(
0x222b
));
break
;
case
TIINT
:
HandleOperatorNary
(
pNode
,
nLevel
,
sal_Unicode
(
0x222c
));
break
;
case
TIIINT
:
HandleOperatorNary
(
pNode
,
nLevel
,
sal_Unicode
(
0x222d
));
break
;
case
TLINT
:
HandleOperatorNary
(
pNode
,
nLevel
,
sal_Unicode
(
0x222e
));
break
;
case
TLLINT
:
HandleOperatorNary
(
pNode
,
nLevel
,
sal_Unicode
(
0x222f
));
break
;
case
TLLLINT
:
HandleOperatorNary
(
pNode
,
nLevel
,
sal_Unicode
(
0x2230
));
break
;
default
:
OSL_FAIL
(
"Operator not handled explicitly"
);
HandleAllSubNodes
(
pNode
,
nLevel
);
break
;
}
}
void
SmOoxml
::
HandleOperatorNary
(
const
SmOperNode
*
pNode
,
int
nLevel
,
sal_Unicode
chr
)
{
const
SmSubSupNode
*
subsup
=
pNode
->
GetSubNode
(
0
)
->
GetType
()
==
NSUBSUP
?
static_cast
<
const
SmSubSupNode
*
>
(
pNode
->
GetSubNode
(
0
))
:
NULL
;
const
SmNode
*
operation
=
subsup
!=
NULL
?
subsup
->
GetBody
()
:
pNode
->
GetSubNode
(
0
);
OSL_ASSERT
(
operation
->
GetType
()
==
NMATH
&&
static_cast
<
const
SmTextNode
*
>
(
operation
)
->
GetText
().
Len
()
==
1
);
sal_Unicode
chr
=
Convert
(
static_cast
<
const
SmTextNode
*
>
(
operation
)
->
GetText
().
GetChar
(
0
));
m_pSerializer
->
startElementNS
(
XML_m
,
XML_nary
,
FSEND
);
m_pSerializer
->
startElementNS
(
XML_m
,
XML_naryPr
,
FSEND
);
rtl
::
OString
chrValue
=
rtl
::
OUStringToOString
(
rtl
::
OUString
(
chr
),
RTL_TEXTENCODING_UTF8
);
m_pSerializer
->
singleElementNS
(
XML_m
,
XML_char
,
FSNS
(
XML_m
,
XML_val
),
chrValue
.
getStr
(),
FSEND
);
const
SmSubSupNode
*
subsup
=
pNode
->
GetSubNode
(
0
)
->
GetType
()
==
NSUBSUP
?
static_cast
<
const
SmSubSupNode
*
>
(
pNode
->
GetSubNode
(
0
))
:
NULL
;
// GetSubNode( 0 ) is otherwise generally ignored, as it should be just SmMathSymbolNode for the operation,
// and we have 'chr' already
if
(
subsup
==
NULL
||
subsup
->
GetSubSup
(
CSUB
)
==
NULL
)
m_pSerializer
->
singleElementNS
(
XML_m
,
XML_subHide
,
FSNS
(
XML_m
,
XML_val
),
"1"
,
FSEND
);
if
(
subsup
==
NULL
||
subsup
->
GetSubSup
(
CSUP
)
==
NULL
)
...
...
starmath/source/ooxml.hxx
Dosyayı görüntüle @
61b1fb0f
...
...
@@ -55,7 +55,6 @@ private:
void
HandleRoot
(
const
SmRootNode
*
pNode
,
int
nLevel
);
void
HandleAttribute
(
const
SmAttributNode
*
pNode
,
int
nLevel
);
void
HandleOperator
(
const
SmOperNode
*
pNode
,
int
nLevel
);
void
HandleOperatorNary
(
const
SmOperNode
*
pNode
,
int
nLevel
,
sal_Unicode
chr
);
void
HandleSubSupScript
(
const
SmSubSupNode
*
pNode
,
int
nLevel
);
void
HandleSubSupScriptInternal
(
const
SmSubSupNode
*
pNode
,
int
nLevel
,
int
flags
);
String
str
;
...
...
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