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
72ea9568
Kaydet (Commit)
72ea9568
authored
Ara 05, 2010
tarafından
Luke Dixon
Kaydeden (comit)
Jonas Finnemann Jensen
Ara 08, 2010
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add the percent sign as a symbol that is inserted when % is pressed
üst
11af030d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
+16
-2
cursor.hxx
starmath/inc/cursor.hxx
+2
-1
types.hxx
starmath/inc/types.hxx
+3
-1
cursor.cxx
starmath/source/cursor.cxx
+9
-0
view.cxx
starmath/source/view.cxx
+2
-0
No files found.
starmath/inc/cursor.hxx
Dosyayı görüntüle @
72ea9568
...
...
@@ -52,7 +52,8 @@ enum SmFormulaElement{
CDotElement
,
EqualElement
,
LessThanElement
,
GreaterThanElement
GreaterThanElement
,
PercentElement
};
/** Bracket types that can be inserted */
...
...
starmath/inc/types.hxx
Dosyayı görüntüle @
72ea9568
...
...
@@ -198,7 +198,9 @@ enum MathSymbol
MS_SETZ
=
(
sal_Unicode
)
0x2124
,
MS_SETQ
=
(
sal_Unicode
)
0x211A
,
MS_SETR
=
(
sal_Unicode
)
0x211D
,
MS_SETC
=
(
sal_Unicode
)
0x2102
MS_SETC
=
(
sal_Unicode
)
0x2102
,
MS_PERCENT
=
(
sal_Unicode
)
0x0025
};
#endif
...
...
starmath/source/cursor.cxx
Dosyayı görüntüle @
72ea9568
...
...
@@ -1058,6 +1058,15 @@ void SmCursor::InsertElement(SmFormulaElement element){
token
.
aText
.
AssignAscii
(
">"
);
pNewNode
=
new
SmMathSymbolNode
(
token
);
}
break
;
case
PercentElement
:
{
SmToken
token
;
token
.
eType
=
TTEXT
;
token
.
cMathChar
=
MS_PERCENT
;
token
.
nGroup
=
0
;
token
.
aText
.
AssignAscii
(
"
\"
%
\"
"
);
pNewNode
=
new
SmMathSymbolNode
(
token
);
}
break
;
default
:
j_assert
(
false
,
"Element unknown!"
);
}
...
...
starmath/source/view.cxx
Dosyayı görüntüle @
72ea9568
...
...
@@ -513,6 +513,8 @@ void SmGraphicWindow::KeyInput(const KeyEvent& rKEvt)
rCursor
.
InsertBrackets
(
CurlyBrackets
);
}
else
if
(
code
==
'!'
)
{
rCursor
.
InsertElement
(
FactorialElement
);
}
else
if
(
code
==
'%'
)
{
rCursor
.
InsertElement
(
PercentElement
);
}
else
{
if
(
code
!=
0
){
rCursor
.
InsertText
(
code
);
...
...
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