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
7f4ccc47
Kaydet (Commit)
7f4ccc47
authored
Agu 17, 2011
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add more accessors to Sm*Node classes
üst
b9aa0c02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
1 deletion
+83
-1
node.hxx
starmath/inc/node.hxx
+83
-1
No files found.
starmath/inc/node.hxx
Dosyayı görüntüle @
7f4ccc47
...
@@ -750,6 +750,11 @@ public:
...
@@ -750,6 +750,11 @@ public:
virtual
void
Arrange
(
const
OutputDevice
&
rDev
,
const
SmFormat
&
rFormat
);
virtual
void
Arrange
(
const
OutputDevice
&
rDev
,
const
SmFormat
&
rFormat
);
void
Accept
(
SmVisitor
*
pVisitor
);
void
Accept
(
SmVisitor
*
pVisitor
);
SmMathSymbolNode
*
Symbol
();
const
SmMathSymbolNode
*
Symbol
()
const
;
SmNode
*
Operand
();
const
SmNode
*
Operand
()
const
;
};
};
...
@@ -817,6 +822,13 @@ public:
...
@@ -817,6 +822,13 @@ public:
virtual
void
Arrange
(
const
OutputDevice
&
rDev
,
const
SmFormat
&
rFormat
);
virtual
void
Arrange
(
const
OutputDevice
&
rDev
,
const
SmFormat
&
rFormat
);
void
Accept
(
SmVisitor
*
pVisitor
);
void
Accept
(
SmVisitor
*
pVisitor
);
SmMathSymbolNode
*
Symbol
();
const
SmMathSymbolNode
*
Symbol
()
const
;
SmNode
*
LeftOperand
();
const
SmNode
*
LeftOperand
()
const
;
SmNode
*
RightOperand
();
const
SmNode
*
RightOperand
()
const
;
};
};
...
@@ -1133,6 +1145,11 @@ public:
...
@@ -1133,6 +1145,11 @@ public:
virtual
void
Arrange
(
const
OutputDevice
&
rDev
,
const
SmFormat
&
rFormat
);
virtual
void
Arrange
(
const
OutputDevice
&
rDev
,
const
SmFormat
&
rFormat
);
void
CreateTextFromNode
(
String
&
rText
);
void
CreateTextFromNode
(
String
&
rText
);
void
Accept
(
SmVisitor
*
pVisitor
);
void
Accept
(
SmVisitor
*
pVisitor
);
SmNode
*
Attribute
();
const
SmNode
*
Attribute
()
const
;
SmNode
*
Body
();
const
SmNode
*
Body
()
const
;
};
};
...
@@ -1240,7 +1257,7 @@ inline const SmNode* SmRootNode::Argument() const
...
@@ -1240,7 +1257,7 @@ inline const SmNode* SmRootNode::Argument() const
}
}
inline
SmRootSymbolNode
*
SmRootNode
::
Symbol
()
inline
SmRootSymbolNode
*
SmRootNode
::
Symbol
()
{
{
OSL_ASSERT
(
Get
SubNode
(
0
)
->
GetType
()
==
NROOTSYMBOL
);
OSL_ASSERT
(
Get
NumSubNodes
()
>
1
&&
GetSubNode
(
1
)
->
GetType
()
==
NROOTSYMBOL
);
return
static_cast
<
SmRootSymbolNode
*
>
(
GetSubNode
(
1
));
return
static_cast
<
SmRootSymbolNode
*
>
(
GetSubNode
(
1
));
}
}
inline
const
SmRootSymbolNode
*
SmRootNode
::
Symbol
()
const
inline
const
SmRootSymbolNode
*
SmRootNode
::
Symbol
()
const
...
@@ -1257,6 +1274,71 @@ inline const SmNode* SmRootNode::Body() const
...
@@ -1257,6 +1274,71 @@ inline const SmNode* SmRootNode::Body() const
return
const_cast
<
SmRootNode
*
>
(
this
)
->
Body
();
return
const_cast
<
SmRootNode
*
>
(
this
)
->
Body
();
}
}
inline
SmMathSymbolNode
*
SmUnHorNode
::
Symbol
()
{
OSL_ASSERT
(
GetNumSubNodes
()
>
0
&&
GetSubNode
(
0
)
->
GetType
()
==
NMATH
);
return
static_cast
<
SmMathSymbolNode
*
>
(
GetSubNode
(
0
));
}
inline
const
SmMathSymbolNode
*
SmUnHorNode
::
Symbol
()
const
{
return
const_cast
<
SmUnHorNode
*
>
(
this
)
->
Symbol
();
}
inline
SmNode
*
SmUnHorNode
::
Operand
()
{
OSL_ASSERT
(
GetNumSubNodes
()
>
1
);
return
GetSubNode
(
1
);
}
inline
const
SmNode
*
SmUnHorNode
::
Operand
()
const
{
return
const_cast
<
SmUnHorNode
*
>
(
this
)
->
Operand
();
}
inline
SmMathSymbolNode
*
SmBinHorNode
::
Symbol
()
{
OSL_ASSERT
(
GetNumSubNodes
()
>
1
&&
GetSubNode
(
1
)
->
GetType
()
==
NMATH
);
return
static_cast
<
SmMathSymbolNode
*
>
(
GetSubNode
(
1
));
}
inline
const
SmMathSymbolNode
*
SmBinHorNode
::
Symbol
()
const
{
return
const_cast
<
SmBinHorNode
*
>
(
this
)
->
Symbol
();
}
inline
SmNode
*
SmBinHorNode
::
LeftOperand
()
{
OSL_ASSERT
(
GetNumSubNodes
()
>
0
);
return
GetSubNode
(
0
);
}
inline
const
SmNode
*
SmBinHorNode
::
LeftOperand
()
const
{
return
const_cast
<
SmBinHorNode
*
>
(
this
)
->
LeftOperand
();
}
inline
SmNode
*
SmBinHorNode
::
RightOperand
()
{
OSL_ASSERT
(
GetNumSubNodes
()
>
2
);
return
GetSubNode
(
2
);
}
inline
const
SmNode
*
SmBinHorNode
::
RightOperand
()
const
{
return
const_cast
<
SmBinHorNode
*
>
(
this
)
->
RightOperand
();
}
inline
SmNode
*
SmAttributNode
::
Attribute
()
{
OSL_ASSERT
(
GetNumSubNodes
()
>
0
);
return
GetSubNode
(
0
);
}
inline
const
SmNode
*
SmAttributNode
::
Attribute
()
const
{
return
const_cast
<
SmAttributNode
*
>
(
this
)
->
Attribute
();
}
inline
SmNode
*
SmAttributNode
::
Body
()
{
OSL_ASSERT
(
GetNumSubNodes
()
>
1
);
return
GetSubNode
(
1
);
}
inline
const
SmNode
*
SmAttributNode
::
Body
()
const
{
return
const_cast
<
SmAttributNode
*
>
(
this
)
->
Body
();
}
#endif
#endif
...
...
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