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
ec84bbb2
Kaydet (Commit)
ec84bbb2
authored
Şub 09, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String to rtl::OUString.
üst
57fce1ee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
28 deletions
+25
-28
inputhdl.cxx
sc/source/ui/app/inputhdl.cxx
+19
-21
inputwin.cxx
sc/source/ui/app/inputwin.cxx
+1
-1
scmod.cxx
sc/source/ui/app/scmod.cxx
+1
-1
inputhdl.hxx
sc/source/ui/inc/inputhdl.hxx
+4
-5
No files found.
sc/source/ui/app/inputhdl.cxx
Dosyayı görüntüle @
ec84bbb2
...
@@ -794,7 +794,7 @@ void ScInputHandler::HideTip()
...
@@ -794,7 +794,7 @@ void ScInputHandler::HideTip()
nTipVisible
=
0
;
nTipVisible
=
0
;
pTipVisibleParent
=
NULL
;
pTipVisibleParent
=
NULL
;
}
}
aManualTip
.
Erase
();
aManualTip
=
rtl
::
OUString
();
}
}
void
ScInputHandler
::
HideTipBelow
()
void
ScInputHandler
::
HideTipBelow
()
{
{
...
@@ -806,7 +806,7 @@ void ScInputHandler::HideTipBelow()
...
@@ -806,7 +806,7 @@ void ScInputHandler::HideTipBelow()
nTipVisibleSec
=
0
;
nTipVisibleSec
=
0
;
pTipVisibleSecParent
=
NULL
;
pTipVisibleSecParent
=
NULL
;
}
}
aManualTip
.
Erase
();
aManualTip
=
rtl
::
OUString
();
}
}
void
ScInputHandler
::
ShowTipCursor
()
void
ScInputHandler
::
ShowTipCursor
()
...
@@ -1377,7 +1377,7 @@ String lcl_Calculate( const String& rFormula, ScDocument* pDoc, const ScAddress
...
@@ -1377,7 +1377,7 @@ String lcl_Calculate( const String& rFormula, ScDocument* pDoc, const ScAddress
void
ScInputHandler
::
FormulaPreview
()
void
ScInputHandler
::
FormulaPreview
()
{
{
String
aValue
;
rtl
::
OU
String
aValue
;
EditView
*
pActiveView
=
pTopView
?
pTopView
:
pTableView
;
EditView
*
pActiveView
=
pTopView
?
pTopView
:
pTableView
;
if
(
pActiveView
&&
pActiveViewSh
)
if
(
pActiveView
&&
pActiveViewSh
)
{
{
...
@@ -1388,7 +1388,7 @@ void ScInputHandler::FormulaPreview()
...
@@ -1388,7 +1388,7 @@ void ScInputHandler::FormulaPreview()
aValue
=
lcl_Calculate
(
aPart
,
pDoc
,
aCursorPos
);
aValue
=
lcl_Calculate
(
aPart
,
pDoc
,
aCursorPos
);
}
}
if
(
aValue
.
Len
())
if
(
!
aValue
.
isEmpty
())
{
{
ShowTip
(
aValue
);
// als QuickHelp anzeigen
ShowTip
(
aValue
);
// als QuickHelp anzeigen
aManualTip
=
aValue
;
// nach ShowTip setzen
aManualTip
=
aValue
;
// nach ShowTip setzen
...
@@ -1404,8 +1404,8 @@ void ScInputHandler::PasteManualTip()
...
@@ -1404,8 +1404,8 @@ void ScInputHandler::PasteManualTip()
// drei Punkte am Ende -> Bereichsreferenz -> nicht einfuegen
// drei Punkte am Ende -> Bereichsreferenz -> nicht einfuegen
// (wenn wir mal Matrix-Konstanten haben, kann das geaendert werden)
// (wenn wir mal Matrix-Konstanten haben, kann das geaendert werden)
xub_StrLen
nTipLen
=
aManualTip
.
Len
();
sal_Int32
nTipLen
=
aManualTip
.
getLength
();
if
(
nTipLen
&&
(
nTipLen
<
3
||
!
aManualTip
.
Copy
(
nTipLen
-
3
).
E
qualsAscii
(
"..."
)
)
)
if
(
nTipLen
&&
(
nTipLen
<
3
||
!
aManualTip
.
copy
(
nTipLen
-
3
).
e
qualsAscii
(
"..."
)
)
)
{
{
DataChanging
();
// kann nicht neu sein
DataChanging
();
// kann nicht neu sein
...
@@ -2817,7 +2817,7 @@ void ScInputHandler::EnterHandler( sal_uInt8 nBlockMode )
...
@@ -2817,7 +2817,7 @@ void ScInputHandler::EnterHandler( sal_uInt8 nBlockMode )
HideTipBelow
();
HideTipBelow
();
nFormSelStart
=
nFormSelEnd
=
0
;
nFormSelStart
=
nFormSelEnd
=
0
;
aFormText
.
Erase
();
aFormText
=
rtl
::
OUString
();
bInOwnChange
=
false
;
bInOwnChange
=
false
;
bInEnterHandler
=
false
;
bInEnterHandler
=
false
;
...
@@ -2869,7 +2869,7 @@ void ScInputHandler::CancelHandler()
...
@@ -2869,7 +2869,7 @@ void ScInputHandler::CancelHandler()
NotifyChange
(
pLastState
,
true
);
NotifyChange
(
pLastState
,
true
);
nFormSelStart
=
nFormSelEnd
=
0
;
nFormSelStart
=
nFormSelEnd
=
0
;
aFormText
.
Erase
();
aFormText
=
rtl
::
OUString
();
bInOwnChange
=
false
;
bInOwnChange
=
false
;
}
}
...
@@ -3116,7 +3116,7 @@ bool ScInputHandler::KeyInput( const KeyEvent& rKEvt, bool bStartEdit /* = false
...
@@ -3116,7 +3116,7 @@ bool ScInputHandler::KeyInput( const KeyEvent& rKEvt, bool bStartEdit /* = false
PasteFunctionData
();
PasteFunctionData
();
bUsed
=
true
;
bUsed
=
true
;
}
}
else
if
(
nModi
==
0
&&
nTipVisible
&&
aManualTip
.
Len
()
)
else
if
(
nModi
==
0
&&
nTipVisible
&&
!
aManualTip
.
isEmpty
()
)
{
{
PasteManualTip
();
PasteManualTip
();
bUsed
=
true
;
bUsed
=
true
;
...
@@ -3840,19 +3840,24 @@ void ScInputHandler::InputSetSelection( xub_StrLen nStart, xub_StrLen nEnd )
...
@@ -3840,19 +3840,24 @@ void ScInputHandler::InputSetSelection( xub_StrLen nStart, xub_StrLen nEnd )
//------------------------------------------------------------------------
//------------------------------------------------------------------------
void
ScInputHandler
::
InputReplaceSelection
(
const
String
&
rStr
)
void
ScInputHandler
::
InputReplaceSelection
(
const
rtl
::
OU
String
&
rStr
)
{
{
if
(
!
pRefViewSh
)
if
(
!
pRefViewSh
)
pRefViewSh
=
pActiveViewSh
;
pRefViewSh
=
pActiveViewSh
;
OSL_ENSURE
(
nFormSelEnd
>=
nFormSelStart
,
"Selektion kaputt..."
);
OSL_ENSURE
(
nFormSelEnd
>=
nFormSelStart
,
"Selektion kaputt..."
);
xub_StrLen
nOldLen
=
nFormSelEnd
-
nFormSelStart
;
sal_Int32
nOldLen
=
nFormSelEnd
-
nFormSelStart
;
xub_StrLen
nNewLen
=
rStr
.
Len
();
sal_Int32
nNewLen
=
rStr
.
getLength
();
rtl
::
OUStringBuffer
aBuf
(
aFormText
);
if
(
nOldLen
)
if
(
nOldLen
)
a
FormText
.
Erase
(
nFormSelStart
,
nOldLen
);
a
Buf
.
remove
(
nFormSelStart
,
nOldLen
);
if
(
nNewLen
)
if
(
nNewLen
)
aFormText
.
Insert
(
rStr
,
nFormSelStart
);
aBuf
.
insert
(
nFormSelStart
,
rStr
);
aFormText
=
aBuf
.
makeStringAndClear
();
nFormSelEnd
=
nFormSelStart
+
nNewLen
;
nFormSelEnd
=
nFormSelStart
+
nNewLen
;
EditView
*
pView
=
GetFuncEditView
();
EditView
*
pView
=
GetFuncEditView
();
...
@@ -3866,13 +3871,6 @@ void ScInputHandler::InputReplaceSelection( const String& rStr )
...
@@ -3866,13 +3871,6 @@ void ScInputHandler::InputReplaceSelection( const String& rStr )
bModified
=
true
;
bModified
=
true
;
}
}
//------------------------------------------------------------------------
String
ScInputHandler
::
InputGetFormulaStr
()
{
return
aFormText
;
//! eigene Membervariable?
}
//========================================================================
//========================================================================
// ScInputHdlState
// ScInputHdlState
//========================================================================
//========================================================================
...
...
sc/source/ui/app/inputwin.cxx
Dosyayı görüntüle @
ec84bbb2
...
@@ -242,7 +242,7 @@ ScInputWindow::ScInputWindow( Window* pParent, SfxBindings* pBind ) :
...
@@ -242,7 +242,7 @@ ScInputWindow::ScInputWindow( Window* pParent, SfxBindings* pBind ) :
if
(
pInputHdl
)
if
(
pInputHdl
)
pInputHdl
->
SetInputWindow
(
this
);
pInputHdl
->
SetInputWindow
(
this
);
if
(
pInputHdl
&&
pInputHdl
->
GetFormString
().
Len
()
)
if
(
pInputHdl
&&
!
pInputHdl
->
GetFormString
().
isEmpty
()
)
{
{
// Umschalten waehrend der Funktionsautopilot aktiv ist
// Umschalten waehrend der Funktionsautopilot aktiv ist
// -> Inhalt des Funktionsautopiloten wieder anzeigen
// -> Inhalt des Funktionsautopiloten wieder anzeigen
...
...
sc/source/ui/app/scmod.cxx
Dosyayı görüntüle @
ec84bbb2
...
@@ -1482,7 +1482,7 @@ String ScModule::InputGetFormulaStr()
...
@@ -1482,7 +1482,7 @@ String ScModule::InputGetFormulaStr()
ScInputHandler
*
pHdl
=
GetInputHdl
();
ScInputHandler
*
pHdl
=
GetInputHdl
();
String
aStr
;
String
aStr
;
if
(
pHdl
)
if
(
pHdl
)
aStr
=
pHdl
->
InputGetFormulaStr
();
aStr
=
pHdl
->
GetFormString
();
return
aStr
;
return
aStr
;
}
}
...
...
sc/source/ui/inc/inputhdl.hxx
Dosyayı görüntüle @
ec84bbb2
...
@@ -80,12 +80,12 @@ private:
...
@@ -80,12 +80,12 @@ private:
sal_uLong
nTipVisible
;
sal_uLong
nTipVisible
;
Window
*
pTipVisibleSecParent
;
Window
*
pTipVisibleSecParent
;
sal_uLong
nTipVisibleSec
;
sal_uLong
nTipVisibleSec
;
String
aManualTip
;
rtl
::
OUString
aManualTip
;
rtl
::
OUString
aAutoSearch
;
rtl
::
OUString
aAutoSearch
;
rtl
::
OUString
aCurrentText
;
rtl
::
OUString
aCurrentText
;
String
aFormText
;
// fuer Funktions-Autopilot
rtl
::
OUString
aFormText
;
// fuer Funktions-Autopilot
xub_StrLen
nFormSelStart
;
// Selektion fuer Funktions-Autopilot
xub_StrLen
nFormSelStart
;
// Selektion fuer Funktions-Autopilot
xub_StrLen
nFormSelEnd
;
xub_StrLen
nFormSelEnd
;
...
@@ -180,7 +180,7 @@ public:
...
@@ -180,7 +180,7 @@ public:
bool
IsTopMode
()
const
{
return
(
eMode
==
SC_INPUT_TOP
);
}
bool
IsTopMode
()
const
{
return
(
eMode
==
SC_INPUT_TOP
);
}
const
rtl
::
OUString
&
GetEditString
();
const
rtl
::
OUString
&
GetEditString
();
const
String
&
GetFormString
()
const
{
return
aFormText
;
}
const
rtl
::
OUString
&
GetFormString
()
const
{
return
aFormText
;
}
const
ScAddress
&
GetCursorPos
()
const
{
return
aCursorPos
;
}
const
ScAddress
&
GetCursorPos
()
const
{
return
aCursorPos
;
}
...
@@ -242,8 +242,7 @@ public:
...
@@ -242,8 +242,7 @@ public:
// Kommunikation mit Funktionsautopilot
// Kommunikation mit Funktionsautopilot
void
InputGetSelection
(
xub_StrLen
&
rStart
,
xub_StrLen
&
rEnd
);
void
InputGetSelection
(
xub_StrLen
&
rStart
,
xub_StrLen
&
rEnd
);
void
InputSetSelection
(
xub_StrLen
nStart
,
xub_StrLen
nEnd
);
void
InputSetSelection
(
xub_StrLen
nStart
,
xub_StrLen
nEnd
);
void
InputReplaceSelection
(
const
String
&
rStr
);
void
InputReplaceSelection
(
const
rtl
::
OUString
&
rStr
);
String
InputGetFormulaStr
();
bool
IsFormulaMode
()
const
{
return
bFormulaMode
;
}
bool
IsFormulaMode
()
const
{
return
bFormulaMode
;
}
ScInputWindow
*
GetInputWindow
()
{
return
pInputWin
;
}
ScInputWindow
*
GetInputWindow
()
{
return
pInputWin
;
}
...
...
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