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
e6f69c3c
Kaydet (Commit)
e6f69c3c
authored
Kas 23, 2010
tarafından
Luke Dixon
Kaydeden (comit)
Jonas Finnemann Jensen
Kas 24, 2010
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix Greek characters, stacks and subs/sups for operators.
üst
3a71b8d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
visitors.cxx
starmath/source/visitors.cxx
+20
-10
No files found.
starmath/source/visitors.cxx
Dosyayı görüntüle @
e6f69c3c
...
@@ -2174,7 +2174,7 @@ void SmNodeToTextVisitor::Visit( SmTableNode* pNode )
...
@@ -2174,7 +2174,7 @@ void SmNodeToTextVisitor::Visit( SmTableNode* pNode )
LineToText
(
it
.
Current
(
)
);
LineToText
(
it
.
Current
(
)
);
if
(
it
.
Next
(
)
)
{
if
(
it
.
Next
(
)
)
{
Separate
(
);
Separate
(
);
Append
(
"#
#
"
);
Append
(
"# "
);
}
else
}
else
break
;
break
;
}
}
...
@@ -2242,33 +2242,39 @@ void SmNodeToTextVisitor::Visit( SmOperNode* pNode )
...
@@ -2242,33 +2242,39 @@ void SmNodeToTextVisitor::Visit( SmOperNode* pNode )
SmNode
*
pChild
;
SmNode
*
pChild
;
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
LSUP
)
)
)
{
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
LSUP
)
)
)
{
Separate
(
);
Separate
(
);
Append
(
"lsup "
);
Append
(
"lsup
{
"
);
LineToText
(
pChild
);
LineToText
(
pChild
);
Append
(
"} "
);
}
}
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
LSUB
)
)
)
{
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
LSUB
)
)
)
{
Separate
(
);
Separate
(
);
Append
(
"lsub "
);
Append
(
"lsub
{
"
);
LineToText
(
pChild
);
LineToText
(
pChild
);
Append
(
"} "
);
}
}
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
RSUP
)
)
)
{
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
RSUP
)
)
)
{
Separate
(
);
Separate
(
);
Append
(
"rsup "
);
Append
(
"rsup
{
"
);
LineToText
(
pChild
);
LineToText
(
pChild
);
Append
(
"} "
);
}
}
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
RSUB
)
)
)
{
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
RSUB
)
)
)
{
Separate
(
);
Separate
(
);
Append
(
"rsub "
);
Append
(
"rsub
{
"
);
LineToText
(
pChild
);
LineToText
(
pChild
);
Append
(
"} "
);
}
}
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
CSUP
)
)
)
{
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
CSUP
)
)
)
{
Separate
(
);
Separate
(
);
Append
(
"csup "
);
Append
(
"csup
{
"
);
LineToText
(
pChild
);
LineToText
(
pChild
);
Append
(
"} "
);
}
}
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
CSUB
)
)
)
{
if
(
(
pChild
=
pSubSup
->
GetSubSup
(
CSUB
)
)
)
{
Separate
(
);
Separate
(
);
Append
(
"csub "
);
Append
(
"csub
{
"
);
LineToText
(
pChild
);
LineToText
(
pChild
);
Append
(
"} "
);
}
}
}
}
LineToText
(
pNode
->
GetSubNode
(
1
)
);
LineToText
(
pNode
->
GetSubNode
(
1
)
);
...
@@ -2492,7 +2498,6 @@ void SmNodeToTextVisitor::Visit( SmTextNode* pNode )
...
@@ -2492,7 +2498,6 @@ void SmNodeToTextVisitor::Visit( SmTextNode* pNode )
void
SmNodeToTextVisitor
::
Visit
(
SmSpecialNode
*
pNode
)
void
SmNodeToTextVisitor
::
Visit
(
SmSpecialNode
*
pNode
)
{
{
Append
(
"%"
);
Append
(
pNode
->
GetToken
(
).
aText
);
Append
(
pNode
->
GetToken
(
).
aText
);
}
}
...
@@ -2530,13 +2535,18 @@ void SmNodeToTextVisitor::Visit( SmLineNode* pNode )
...
@@ -2530,13 +2535,18 @@ void SmNodeToTextVisitor::Visit( SmLineNode* pNode )
void
SmNodeToTextVisitor
::
Visit
(
SmExpressionNode
*
pNode
)
void
SmNodeToTextVisitor
::
Visit
(
SmExpressionNode
*
pNode
)
{
{
Append
(
"{ "
);
USHORT
nSize
=
pNode
->
GetNumSubNodes
();
if
(
nSize
>
1
)
{
Append
(
"{ "
);
}
SmNodeIterator
it
(
pNode
);
SmNodeIterator
it
(
pNode
);
while
(
it
.
Next
(
)
)
{
while
(
it
.
Next
(
)
)
{
it
->
Accept
(
this
);
it
->
Accept
(
this
);
Separate
(
);
Separate
(
);
}
}
Append
(
"}"
);
if
(
nSize
>
1
)
{
Append
(
"} "
);
}
}
}
void
SmNodeToTextVisitor
::
Visit
(
SmPolyLineNode
*
)
void
SmNodeToTextVisitor
::
Visit
(
SmPolyLineNode
*
)
...
...
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