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
a08471fe
Kaydet (Commit)
a08471fe
authored
Eyl 17, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I70fab365886ef1c6ed755ec86ebd7952ca613ea7
üst
06193462
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
ControlHelper.hxx
formula/source/ui/dlg/ControlHelper.hxx
+4
-4
formula.cxx
formula/source/ui/dlg/formula.cxx
+5
-6
funcutl.cxx
formula/source/ui/dlg/funcutl.cxx
+1
-1
No files found.
formula/source/ui/dlg/ControlHelper.hxx
Dosyayı görüntüle @
a08471fe
...
@@ -30,9 +30,9 @@ class EditBox : public Control
...
@@ -30,9 +30,9 @@ class EditBox : public Control
private
:
private
:
VclPtr
<
MultiLineEdit
>
pMEdit
;
VclPtr
<
MultiLineEdit
>
pMEdit
;
Link
<
>
aSelChangedLink
;
Link
<
EditBox
&
,
void
>
aSelChangedLink
;
Selection
aOldSel
;
Selection
aOldSel
;
bool
bMouseFlag
;
bool
bMouseFlag
;
DECL_LINK_TYPED
(
ChangedHdl
,
void
*
,
void
);
DECL_LINK_TYPED
(
ChangedHdl
,
void
*
,
void
);
...
@@ -52,7 +52,7 @@ public:
...
@@ -52,7 +52,7 @@ public:
MultiLineEdit
*
GetEdit
()
{
return
pMEdit
;}
MultiLineEdit
*
GetEdit
()
{
return
pMEdit
;}
void
SetSelChangedHdl
(
const
Link
<>&
rLink
)
{
aSelChangedLink
=
rLink
;
}
void
SetSelChangedHdl
(
const
Link
<
EditBox
&
,
void
>&
rLink
)
{
aSelChangedLink
=
rLink
;
}
void
UpdateOldSel
();
void
UpdateOldSel
();
};
};
...
...
formula/source/ui/dlg/formula.cxx
Dosyayı görüntüle @
a08471fe
...
@@ -124,9 +124,9 @@ public:
...
@@ -124,9 +124,9 @@ public:
DECL_LINK
(
ModifyHdl
,
ParaWin
*
);
DECL_LINK
(
ModifyHdl
,
ParaWin
*
);
DECL_LINK
(
FxHdl
,
ParaWin
*
);
DECL_LINK
(
FxHdl
,
ParaWin
*
);
DECL_LINK_TYPED
(
MatrixHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
MatrixHdl
,
Button
*
,
void
);
DECL_LINK
(
FormulaHdl
,
void
*
);
DECL_LINK
(
FormulaHdl
,
void
*
);
DECL_LINK
(
FormulaCursorHdl
,
void
*
);
DECL_LINK
_TYPED
(
FormulaCursorHdl
,
EditBox
&
,
void
);
DECL_LINK_TYPED
(
BtnHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
BtnHdl
,
Button
*
,
void
);
DECL_LINK
(
DblClkHdl
,
void
*
);
DECL_LINK
(
DblClkHdl
,
void
*
);
DECL_LINK
(
FuncSelHdl
,
void
*
);
DECL_LINK
(
FuncSelHdl
,
void
*
);
...
@@ -1354,10 +1354,10 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaHdl)
...
@@ -1354,10 +1354,10 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaHdl)
return
0
;
return
0
;
}
}
IMPL_LINK_NOARG
(
FormulaDlg_Impl
,
FormulaCursorHdl
)
IMPL_LINK_NOARG
_TYPED
(
FormulaDlg_Impl
,
FormulaCursorHdl
,
EditBox
&
,
void
)
{
{
FormEditData
*
pData
=
m_pHelper
->
getFormEditData
();
FormEditData
*
pData
=
m_pHelper
->
getFormEditData
();
if
(
!
pData
)
return
0
;
if
(
!
pData
)
return
;
sal_Int32
nFStart
=
pData
->
GetFStart
();
sal_Int32
nFStart
=
pData
->
GetFStart
();
bEditFlag
=
true
;
bEditFlag
=
true
;
...
@@ -1419,7 +1419,6 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaCursorHdl)
...
@@ -1419,7 +1419,6 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaCursorHdl)
m_pHelper
->
setSelection
(
aSel
.
Min
(),
aSel
.
Max
());
m_pHelper
->
setSelection
(
aSel
.
Min
(),
aSel
.
Max
());
bEditFlag
=
false
;
bEditFlag
=
false
;
return
0
;
}
}
void
FormulaDlg_Impl
::
UpdateSelection
()
void
FormulaDlg_Impl
::
UpdateSelection
()
...
@@ -1527,7 +1526,7 @@ void FormulaDlg_Impl::Update()
...
@@ -1527,7 +1526,7 @@ void FormulaDlg_Impl::Update()
const
OUString
sExpression
=
pMEdit
->
GetText
();
const
OUString
sExpression
=
pMEdit
->
GetText
();
aOldFormula
.
clear
();
aOldFormula
.
clear
();
UpdateTokenArray
(
sExpression
);
UpdateTokenArray
(
sExpression
);
FormulaCursorHdl
(
m_pMEFormula
);
FormulaCursorHdl
(
*
m_pMEFormula
);
CalcStruct
(
sExpression
);
CalcStruct
(
sExpression
);
if
(
pData
->
GetMode
()
==
FORMULA_FORMDLG_FORMULA
)
if
(
pData
->
GetMode
()
==
FORMULA_FORMDLG_FORMULA
)
m_pTabCtrl
->
SetCurPageId
(
TP_FUNCTION
);
m_pTabCtrl
->
SetCurPageId
(
TP_FUNCTION
);
...
...
formula/source/ui/dlg/funcutl.cxx
Dosyayı görüntüle @
a08471fe
...
@@ -378,7 +378,7 @@ void EditBox::dispose()
...
@@ -378,7 +378,7 @@ void EditBox::dispose()
// When the selection is changed this function will be called
// When the selection is changed this function will be called
void
EditBox
::
SelectionChanged
()
void
EditBox
::
SelectionChanged
()
{
{
aSelChangedLink
.
Call
(
this
);
aSelChangedLink
.
Call
(
*
this
);
}
}
// When the size is changed, MultiLineEdit must be adapted..
// When the size is changed, MultiLineEdit must be adapted..
...
...
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