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
2b5ebcc4
Kaydet (Commit)
2b5ebcc4
authored
Haz 28, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
chart2: typed Link<>
Change-Id: I98c882d64cb4d6430390ac705f3f2208dd523598
üst
3c4da0f6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
32 deletions
+27
-32
DataBrowser.cxx
chart2/source/controller/dialogs/DataBrowser.cxx
+8
-9
DataBrowser.hxx
chart2/source/controller/dialogs/DataBrowser.hxx
+7
-7
dlg_DataEditor.cxx
chart2/source/controller/dialogs/dlg_DataEditor.cxx
+3
-5
tp_3D_SceneIllumination.cxx
chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
+2
-4
tp_3D_SceneIllumination.hxx
chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx
+1
-1
dlg_DataEditor.hxx
chart2/source/controller/inc/dlg_DataEditor.hxx
+1
-1
ModifyListenerCallBack.hxx
chart2/source/inc/ModifyListenerCallBack.hxx
+1
-1
ModifyListenerCallBack.cxx
chart2/source/tools/ModifyListenerCallBack.cxx
+4
-4
No files found.
chart2/source/controller/dialogs/DataBrowser.cxx
Dosyayı görüntüle @
2b5ebcc4
...
...
@@ -174,7 +174,7 @@ public:
void
SetGetFocusHdl
(
const
Link
<>&
rLink
);
void
SetEditChangedHdl
(
const
Link
<>
&
rLink
);
void
SetEditChangedHdl
(
const
Link
<
SeriesHeaderEdit
*
,
void
>
&
rLink
);
bool
HasFocus
()
const
;
...
...
@@ -183,7 +183,7 @@ private:
VclPtr
<
SeriesHeaderEdit
>
m_spSeriesName
;
VclPtr
<
FixedText
>
m_spColorBar
;
VclPtr
<
OutputDevice
>
m_pDevice
;
Link
<
>
m_aChangeLink
;
Link
<
SeriesHeaderEdit
*
,
void
>
m_aChangeLink
;
void
notifyChanges
();
DECL_LINK
(
SeriesNameChanged
,
void
*
);
...
...
@@ -324,7 +324,7 @@ void SeriesHeader::Hide()
m_spColorBar
->
Hide
();
}
void
SeriesHeader
::
SetEditChangedHdl
(
const
Link
<>
&
rLink
)
void
SeriesHeader
::
SetEditChangedHdl
(
const
Link
<
SeriesHeaderEdit
*
,
void
>
&
rLink
)
{
m_aChangeLink
=
rLink
;
}
...
...
@@ -593,7 +593,7 @@ void DataBrowser::RenewTable()
clearHeaders
();
const
DataBrowserModel
::
tDataHeaderVector
&
aHeaders
(
m_apDataBrowserModel
->
getDataHeaders
());
Link
<>
aFocusLink
(
LINK
(
this
,
DataBrowser
,
SeriesHeaderGotFocus
));
Link
<>
aSeriesHeaderChangedLink
(
LINK
(
this
,
DataBrowser
,
SeriesHeaderChanged
));
Link
<
impl
::
SeriesHeaderEdit
*
,
void
>
aSeriesHeaderChangedLink
(
LINK
(
this
,
DataBrowser
,
SeriesHeaderChanged
));
for
(
DataBrowserModel
::
tDataHeaderVector
::
const_iterator
aIt
(
aHeaders
.
begin
());
aIt
!=
aHeaders
.
end
();
++
aIt
)
...
...
@@ -752,7 +752,7 @@ void DataBrowser::CursorMoved()
m_aCursorMovedHdlLink
.
Call
(
this
);
}
void
DataBrowser
::
SetCellModifiedHdl
(
const
Link
<>&
rLink
)
void
DataBrowser
::
SetCellModifiedHdl
(
const
Link
<
DataBrowser
*
,
void
>&
rLink
)
{
m_aCellModifiedLink
=
rLink
;
}
...
...
@@ -972,7 +972,7 @@ void DataBrowser::SwapRow()
}
}
void
DataBrowser
::
SetCursorMovedHdl
(
const
Link
<>&
rLink
)
void
DataBrowser
::
SetCursorMovedHdl
(
const
Link
<
DataBrowser
*
,
void
>&
rLink
)
{
m_aCursorMovedHdlLink
=
rLink
;
}
...
...
@@ -1231,7 +1231,7 @@ void DataBrowser::RenewSeriesHeaders()
clearHeaders
();
DataBrowserModel
::
tDataHeaderVector
aHeaders
(
m_apDataBrowserModel
->
getDataHeaders
());
Link
<>
aFocusLink
(
LINK
(
this
,
DataBrowser
,
SeriesHeaderGotFocus
));
Link
<>
aSeriesHeaderChangedLink
(
LINK
(
this
,
DataBrowser
,
SeriesHeaderChanged
));
Link
<
impl
::
SeriesHeaderEdit
*
,
void
>
aSeriesHeaderChangedLink
(
LINK
(
this
,
DataBrowser
,
SeriesHeaderChanged
));
for
(
DataBrowserModel
::
tDataHeaderVector
::
const_iterator
aIt
(
aHeaders
.
begin
());
aIt
!=
aHeaders
.
end
();
++
aIt
)
...
...
@@ -1328,7 +1328,7 @@ IMPL_LINK( DataBrowser, SeriesHeaderGotFocus, impl::SeriesHeaderEdit*, pEdit )
return
0
;
}
IMPL_LINK
(
DataBrowser
,
SeriesHeaderChanged
,
impl
::
SeriesHeaderEdit
*
,
pEdit
)
IMPL_LINK
_TYPED
(
DataBrowser
,
SeriesHeaderChanged
,
impl
::
SeriesHeaderEdit
*
,
pEdit
,
void
)
{
if
(
pEdit
)
{
...
...
@@ -1353,7 +1353,6 @@ IMPL_LINK( DataBrowser, SeriesHeaderChanged, impl::SeriesHeaderEdit*, pEdit )
}
}
}
return
0
;
}
}
// namespace chart
...
...
chart2/source/controller/dialogs/DataBrowser.hxx
Dosyayı görüntüle @
2b5ebcc4
...
...
@@ -127,9 +127,9 @@ public:
void
SwapRow
();
void
SwapColumn
();
void
SetCursorMovedHdl
(
const
Link
<>&
rLink
);
void
SetCursorMovedHdl
(
const
Link
<
DataBrowser
*
,
void
>&
rLink
);
void
SetCellModifiedHdl
(
const
Link
<>&
rLink
);
void
SetCellModifiedHdl
(
const
Link
<
DataBrowser
*
,
void
>&
rLink
);
/// confirms all pending changes to be ready to be closed
bool
EndEditing
();
...
...
@@ -169,12 +169,12 @@ private:
VclPtr
<
Edit
>
m_aTextEditField
;
/// note: m_aNumberEditField must precede this member!
::
svt
::
CellControllerRef
m_rNumberEditController
;
::
svt
::
CellControllerRef
m_rNumberEditController
;
/// note: m_aTextEditField must precede this member!
::
svt
::
CellControllerRef
m_rTextEditController
;
::
svt
::
CellControllerRef
m_rTextEditController
;
Link
<
>
m_aCursorMovedHdlLink
;
Link
<
>
m_aCellModifiedLink
;
Link
<
DataBrowser
*
,
void
>
m_aCursorMovedHdlLink
;
Link
<
DataBrowser
*
,
void
>
m_aCellModifiedLink
;
void
clearHeaders
();
void
RenewTable
();
...
...
@@ -184,7 +184,7 @@ private:
static
OUString
GetRowString
(
sal_Int32
nRow
);
DECL_LINK
(
SeriesHeaderGotFocus
,
impl
::
SeriesHeaderEdit
*
);
DECL_LINK
(
SeriesHeaderChanged
,
impl
::
SeriesHeaderEdit
*
);
DECL_LINK
_TYPED
(
SeriesHeaderChanged
,
impl
::
SeriesHeaderEdit
*
,
void
);
DataBrowser
(
const
DataBrowser
&
)
SAL_DELETED_FUNCTION
;
};
...
...
chart2/source/controller/dialogs/dlg_DataEditor.cxx
Dosyayı görüntüle @
2b5ebcc4
...
...
@@ -69,7 +69,7 @@ DataEditor::DataEditor(vcl::Window* pParent,
m_pTbxData
->
SetSelectHdl
(
LINK
(
this
,
DataEditor
,
ToolboxHdl
));
m_xBrwData
->
SetCursorMovedHdl
(
LINK
(
this
,
DataEditor
,
BrowserCursorMovedHdl
));
m_xBrwData
->
SetCursorMovedHdl
(
LINK
(
this
,
DataEditor
,
BrowserCursorMovedHdl
));
UpdateData
();
GrabFocus
();
...
...
@@ -132,10 +132,10 @@ IMPL_LINK_NOARG_TYPED(DataEditor, ToolboxHdl, ToolBox *, void)
}
// refresh toolbar icons according to currently selected cell in browse box
IMPL_LINK_NOARG
(
DataEditor
,
BrowserCursorMovedHdl
)
IMPL_LINK_NOARG
_TYPED
(
DataEditor
,
BrowserCursorMovedHdl
,
DataBrowser
*
,
void
)
{
if
(
m_bReadOnly
)
return
0
;
return
;
bool
bIsDataValid
=
m_xBrwData
->
IsEnableItem
();
...
...
@@ -147,8 +147,6 @@ IMPL_LINK_NOARG(DataEditor, BrowserCursorMovedHdl)
m_pTbxData
->
EnableItem
(
TBI_DATA_SWAP_COL
,
bIsDataValid
&&
m_xBrwData
->
MaySwapColumns
()
);
m_pTbxData
->
EnableItem
(
TBI_DATA_SWAP_ROW
,
bIsDataValid
&&
m_xBrwData
->
MaySwapRows
()
);
return
0
;
}
// disable all modifying controls
...
...
chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
Dosyayı görüntüle @
2b5ebcc4
...
...
@@ -315,10 +315,10 @@ void ThreeD_SceneIllumination_TabPage::dispose()
TabPage
::
dispose
();
}
IMPL_LINK_NOARG
(
ThreeD_SceneIllumination_TabPage
,
fillControlsFromModel
)
IMPL_LINK_NOARG
_TYPED
(
ThreeD_SceneIllumination_TabPage
,
fillControlsFromModel
,
void
*
,
void
)
{
if
(
m_bInCommitToModel
)
//don't read own changes
return
0
;
return
;
sal_Int32
nL
=
0
;
for
(
nL
=
0
;
nL
<
8
;
nL
++
)
...
...
@@ -329,8 +329,6 @@ IMPL_LINK_NOARG(ThreeD_SceneIllumination_TabPage, fillControlsFromModel)
lcl_selectColor
(
*
m_pLB_AmbientLight
,
lcl_getAmbientColor
(
m_xSceneProperties
));
this
->
updatePreview
();
return
0
;
}
void
ThreeD_SceneIllumination_TabPage
::
applyLightSourceToModel
(
sal_uInt32
nLightNumber
)
...
...
chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx
Dosyayı görüntüle @
2b5ebcc4
...
...
@@ -69,7 +69,7 @@ private:
void
updatePreview
();
private
:
DECL_LINK
(
fillControlsFromModel
,
void
*
);
DECL_LINK
_TYPED
(
fillControlsFromModel
,
void
*
,
void
);
void
applyLightSourceToModel
(
sal_uInt32
nLightNumber
);
void
applyLightSourcesToModel
();
...
...
chart2/source/controller/inc/dlg_DataEditor.hxx
Dosyayı görüntüle @
2b5ebcc4
...
...
@@ -76,7 +76,7 @@ private:
/// handles actions of the toolbox
DECL_LINK_TYPED
(
ToolboxHdl
,
ToolBox
*
,
void
);
/// is called, if the cursor of the table has moved
DECL_LINK
(
BrowserCursorMovedHdl
,
void
*
);
DECL_LINK
_TYPED
(
BrowserCursorMovedHdl
,
DataBrowser
*
,
void
);
/// this is called if MiscOptions change, esp. High-Contrast mode
DECL_LINK
(
MiscHdl
,
void
*
);
/// is called when the width of any column in the edit browsebox has changed
...
...
chart2/source/inc/ModifyListenerCallBack.hxx
Dosyayı görüntüle @
2b5ebcc4
...
...
@@ -36,7 +36,7 @@ class ModifyListenerCallBack_impl;
class
OOO_DLLPUBLIC_CHARTTOOLS
ModifyListenerCallBack
{
public
:
explicit
ModifyListenerCallBack
(
const
Link
<>&
rCallBack
);
explicit
ModifyListenerCallBack
(
const
Link
<
void
*
,
void
>&
rCallBack
);
virtual
~
ModifyListenerCallBack
();
...
...
chart2/source/tools/ModifyListenerCallBack.cxx
Dosyayı görüntüle @
2b5ebcc4
...
...
@@ -35,7 +35,7 @@ class ModifyListenerCallBack_impl
,
public
ModifyListenerCallBack_Base
{
public
:
explicit
ModifyListenerCallBack_impl
(
const
Link
<>&
rCallBack
);
explicit
ModifyListenerCallBack_impl
(
const
Link
<
void
*
,
void
>&
rCallBack
);
virtual
~
ModifyListenerCallBack_impl
();
void
stopListening
();
...
...
@@ -49,11 +49,11 @@ public:
using
::
cppu
::
WeakComponentImplHelperBase
::
disposing
;
private
:
Link
<>
m_aLink
;
//will be called on modify
Link
<
void
*
,
void
>
m_aLink
;
//will be called on modify
Reference
<
util
::
XModifyBroadcaster
>
m_xBroadcaster
;
//broadcaster to listen at
};
ModifyListenerCallBack_impl
::
ModifyListenerCallBack_impl
(
const
Link
<>&
rCallBack
)
ModifyListenerCallBack_impl
::
ModifyListenerCallBack_impl
(
const
Link
<
void
*
,
void
>&
rCallBack
)
:
ModifyListenerCallBack_Base
(
m_aMutex
)
,
m_aLink
(
rCallBack
)
,
m_xBroadcaster
(
0
)
...
...
@@ -85,7 +85,7 @@ void ModifyListenerCallBack_impl::stopListening()
}
}
ModifyListenerCallBack
::
ModifyListenerCallBack
(
const
Link
<>&
rCallBack
)
ModifyListenerCallBack
::
ModifyListenerCallBack
(
const
Link
<
void
*
,
void
>&
rCallBack
)
:
pModifyListener_impl
(
new
ModifyListenerCallBack_impl
(
rCallBack
)
)
,
m_xModifyListener
(
pModifyListener_impl
)
{
...
...
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