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
86b9e14b
Kaydet (Commit)
86b9e14b
authored
Eki 02, 2012
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String -> OUString
Change-Id: I88873eec738a068152e7d7be0dc4ab86fcfe345a
üst
939d6400
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
14 deletions
+6
-14
edit.hxx
starmath/inc/edit.hxx
+1
-1
cursor.cxx
starmath/source/cursor.cxx
+1
-1
edit.cxx
starmath/source/edit.cxx
+2
-2
view.cxx
starmath/source/view.cxx
+2
-10
No files found.
starmath/inc/edit.hxx
Dosyayı görüntüle @
86b9e14b
...
@@ -113,7 +113,7 @@ public:
...
@@ -113,7 +113,7 @@ public:
void
Paste
();
void
Paste
();
void
Delete
();
void
Delete
();
void
SelectAll
();
void
SelectAll
();
void
InsertText
(
const
String
&
rText
);
void
InsertText
(
const
OU
String
&
rText
);
void
InsertCommand
(
sal_uInt16
nCommand
);
void
InsertCommand
(
sal_uInt16
nCommand
);
void
MarkError
(
const
Point
&
rPos
);
void
MarkError
(
const
Point
&
rPos
);
void
SelNextMark
();
void
SelNextMark
();
...
...
starmath/source/cursor.cxx
Dosyayı görüntüle @
86b9e14b
...
@@ -484,7 +484,7 @@ SmNodeList::iterator SmCursor::TakeSelectedNodesFromList(SmNodeList *pLineList,
...
@@ -484,7 +484,7 @@ SmNodeList::iterator SmCursor::TakeSelectedNodesFromList(SmNodeList *pLineList,
}
}
//If we need to save the selected text
//If we need to save the selected text
if
(
pSelectedNodes
&&
len2
>
0
)
{
if
(
pSelectedNodes
&&
len2
>
0
)
{
String
str
=
aText
.
copy
(
start2
,
len2
);
OU
String
str
=
aText
.
copy
(
start2
,
len2
);
SmTextNode
*
pSeg2
=
new
SmTextNode
(
aToken
,
eFontDesc
);
SmTextNode
*
pSeg2
=
new
SmTextNode
(
aToken
,
eFontDesc
);
pSeg2
->
ChangeText
(
str
);
pSeg2
->
ChangeText
(
str
);
pSelectedNodes
->
push_back
(
pSeg2
);
pSelectedNodes
->
push_back
(
pSeg2
);
...
...
starmath/source/edit.cxx
Dosyayı görüntüle @
86b9e14b
...
@@ -912,12 +912,12 @@ void SmEditWindow::Delete()
...
@@ -912,12 +912,12 @@ void SmEditWindow::Delete()
}
}
}
}
void
SmEditWindow
::
InsertText
(
const
String
&
Text
)
void
SmEditWindow
::
InsertText
(
const
OUString
&
r
Text
)
{
{
OSL_ENSURE
(
pEditView
,
"EditView missing"
);
OSL_ENSURE
(
pEditView
,
"EditView missing"
);
if
(
pEditView
)
if
(
pEditView
)
{
{
pEditView
->
InsertText
(
Text
);
pEditView
->
InsertText
(
r
Text
);
aModifyTimer
.
Start
();
aModifyTimer
.
Start
();
StartCursorMove
();
StartCursorMove
();
}
}
...
...
starmath/source/view.cxx
Dosyayı görüntüle @
86b9e14b
...
@@ -1466,8 +1466,6 @@ bool SmViewShell::Insert( SfxMedium& rMedium )
...
@@ -1466,8 +1466,6 @@ bool SmViewShell::Insert( SfxMedium& rMedium )
RTL_LOGFILE_CONTEXT
(
aLog
,
"starmath: SmViewShell::Insert"
);
RTL_LOGFILE_CONTEXT
(
aLog
,
"starmath: SmViewShell::Insert"
);
SmDocShell
*
pDoc
=
GetDoc
();
SmDocShell
*
pDoc
=
GetDoc
();
String
aText
(
pDoc
->
GetText
()
);
String
aTemp
=
aText
;
bool
bRet
=
false
;
bool
bRet
=
false
;
uno
::
Reference
<
embed
::
XStorage
>
xStorage
=
rMedium
.
GetStorage
();
uno
::
Reference
<
embed
::
XStorage
>
xStorage
=
rMedium
.
GetStorage
();
...
@@ -1485,15 +1483,13 @@ bool SmViewShell::Insert( SfxMedium& rMedium )
...
@@ -1485,15 +1483,13 @@ bool SmViewShell::Insert( SfxMedium& rMedium )
if
(
bRet
)
if
(
bRet
)
{
{
aText
=
pDoc
->
GetText
();
OUString
aText
=
pDoc
->
GetText
();
SmEditWindow
*
pEditWin
=
GetEditWindow
();
SmEditWindow
*
pEditWin
=
GetEditWindow
();
if
(
pEditWin
)
if
(
pEditWin
)
pEditWin
->
InsertText
(
aText
);
pEditWin
->
InsertText
(
aText
);
else
else
{
{
OSL_FAIL
(
"EditWindow missing"
);
OSL_FAIL
(
"EditWindow missing"
);
aTemp
+=
aText
;
aText
=
aTemp
;
}
}
pDoc
->
Parse
();
pDoc
->
Parse
();
...
@@ -1514,8 +1510,6 @@ bool SmViewShell::InsertFrom(SfxMedium &rMedium)
...
@@ -1514,8 +1510,6 @@ bool SmViewShell::InsertFrom(SfxMedium &rMedium)
bool
bSuccess
=
false
;
bool
bSuccess
=
false
;
SmDocShell
*
pDoc
=
GetDoc
();
SmDocShell
*
pDoc
=
GetDoc
();
SvStream
*
pStream
=
rMedium
.
GetInStream
();
SvStream
*
pStream
=
rMedium
.
GetInStream
();
String
aText
(
pDoc
->
GetText
()
);
String
aTemp
=
aText
;
if
(
pStream
)
if
(
pStream
)
{
{
...
@@ -1530,15 +1524,13 @@ bool SmViewShell::InsertFrom(SfxMedium &rMedium)
...
@@ -1530,15 +1524,13 @@ bool SmViewShell::InsertFrom(SfxMedium &rMedium)
if
(
bSuccess
)
if
(
bSuccess
)
{
{
aText
=
pDoc
->
GetText
();
OUString
aText
=
pDoc
->
GetText
();
SmEditWindow
*
pEditWin
=
GetEditWindow
();
SmEditWindow
*
pEditWin
=
GetEditWindow
();
if
(
pEditWin
)
if
(
pEditWin
)
pEditWin
->
InsertText
(
aText
);
pEditWin
->
InsertText
(
aText
);
else
else
{
{
OSL_FAIL
(
"EditWindow missing"
);
OSL_FAIL
(
"EditWindow missing"
);
aTemp
+=
aText
;
aText
=
aTemp
;
}
}
pDoc
->
Parse
();
pDoc
->
Parse
();
...
...
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