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
6d6605dc
Kaydet (Commit)
6d6605dc
authored
Agu 18, 2011
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
no debug output
üst
1a4c6931
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
ooxml.cxx
starmath/source/ooxml.cxx
+8
-5
No files found.
starmath/source/ooxml.cxx
Dosyayı görüntüle @
6d6605dc
...
@@ -90,9 +90,12 @@ bool SmOoxml::ConvertFromStarMath( ::sax_fastparser::FSHelperPtr serializer )
...
@@ -90,9 +90,12 @@ bool SmOoxml::ConvertFromStarMath( ::sax_fastparser::FSHelperPtr serializer )
return
true
;
return
true
;
}
}
// NOTE: This is still work in progress and unfinished, but it already covers a good
// part of the ooxml math stuff.
void
SmOoxml
::
HandleNode
(
const
SmNode
*
pNode
,
int
nLevel
)
void
SmOoxml
::
HandleNode
(
const
SmNode
*
pNode
,
int
nLevel
)
{
{
fprintf
(
stderr
,
"XX %d %d %d
\n
"
,
nLevel
,
pNode
->
GetType
(),
pNode
->
GetNumSubNodes
());
//
fprintf(stderr,"XX %d %d %d\n", nLevel, pNode->GetType(), pNode->GetNumSubNodes());
switch
(
pNode
->
GetType
())
switch
(
pNode
->
GetType
())
{
{
case
NATTRIBUT
:
case
NATTRIBUT
:
...
@@ -253,7 +256,7 @@ void SmOoxml::HandleText( const SmNode* pNode, int /*nLevel*/)
...
@@ -253,7 +256,7 @@ void SmOoxml::HandleText( const SmNode* pNode, int /*nLevel*/)
}
}
m_pSerializer
->
startElementNS
(
XML_m
,
XML_t
,
FSEND
);
m_pSerializer
->
startElementNS
(
XML_m
,
XML_t
,
FSEND
);
SmTextNode
*
pTemp
=
(
SmTextNode
*
)
pNode
;
SmTextNode
*
pTemp
=
(
SmTextNode
*
)
pNode
;
fprintf
(
stderr
,
"T %s
\n
"
,
rtl
::
OUStringToOString
(
pTemp
->
GetText
(),
RTL_TEXTENCODING_UTF8
).
getStr
());
//
fprintf(stderr, "T %s\n", rtl::OUStringToOString( pTemp->GetText(), RTL_TEXTENCODING_UTF8 ).getStr());
for
(
xub_StrLen
i
=
0
;
i
<
pTemp
->
GetText
().
Len
();
i
++
)
for
(
xub_StrLen
i
=
0
;
i
<
pTemp
->
GetText
().
Len
();
i
++
)
{
{
#if 0
#if 0
...
@@ -332,7 +335,7 @@ void SmOoxml::HandleFractions( const SmNode* pNode, int nLevel, const char* type
...
@@ -332,7 +335,7 @@ void SmOoxml::HandleFractions( const SmNode* pNode, int nLevel, const char* type
void
SmOoxml
::
HandleUnaryOperation
(
const
SmUnHorNode
*
pNode
,
int
nLevel
)
void
SmOoxml
::
HandleUnaryOperation
(
const
SmUnHorNode
*
pNode
,
int
nLevel
)
{
{
// update HandleMath() when adding new items
// update HandleMath() when adding new items
fprintf
(
stderr
,
"UNARY %d
\n
"
,
pNode
->
Symbol
()
->
GetToken
().
eType
);
//
fprintf(stderr,"UNARY %d\n", pNode->Symbol()->GetToken().eType );
switch
(
pNode
->
Symbol
()
->
GetToken
().
eType
)
switch
(
pNode
->
Symbol
()
->
GetToken
().
eType
)
{
{
default
:
default
:
...
@@ -343,7 +346,7 @@ void SmOoxml::HandleUnaryOperation( const SmUnHorNode* pNode, int nLevel )
...
@@ -343,7 +346,7 @@ void SmOoxml::HandleUnaryOperation( const SmUnHorNode* pNode, int nLevel )
void
SmOoxml
::
HandleBinaryOperation
(
const
SmBinHorNode
*
pNode
,
int
nLevel
)
void
SmOoxml
::
HandleBinaryOperation
(
const
SmBinHorNode
*
pNode
,
int
nLevel
)
{
{
fprintf
(
stderr
,
"BINARY %d
\n
"
,
pNode
->
Symbol
()
->
GetToken
().
eType
);
//
fprintf(stderr,"BINARY %d\n", pNode->Symbol()->GetToken().eType );
// update HandleMath() when adding new items
// update HandleMath() when adding new items
switch
(
pNode
->
Symbol
()
->
GetToken
().
eType
)
switch
(
pNode
->
Symbol
()
->
GetToken
().
eType
)
{
{
...
@@ -386,7 +389,7 @@ void SmOoxml::HandleAttribute( const SmAttributNode* pNode, int nLevel )
...
@@ -386,7 +389,7 @@ void SmOoxml::HandleAttribute( const SmAttributNode* pNode, int nLevel )
void
SmOoxml
::
HandleMath
(
const
SmNode
*
pNode
,
int
nLevel
)
void
SmOoxml
::
HandleMath
(
const
SmNode
*
pNode
,
int
nLevel
)
{
{
fprintf
(
stderr
,
"MATH %d
\n
"
,
pNode
->
GetToken
().
eType
);
//
fprintf(stderr,"MATH %d\n", pNode->GetToken().eType);
switch
(
pNode
->
GetToken
().
eType
)
switch
(
pNode
->
GetToken
().
eType
)
{
{
case
TDIVIDEBY
:
case
TDIVIDEBY
:
...
...
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