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
2b54af3b
Kaydet (Commit)
2b54af3b
authored
Eki 28, 2014
tarafından
Maxim Monastirsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
colorwindow: Unify SelectHdl and SelectRecentHdl
Change-Id: I680517bc7d91ef15593d235a7ff72588c7513b15
üst
a48145a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
24 deletions
+7
-24
colorwindow.hxx
svx/source/tbxctrls/colorwindow.hxx
+1
-2
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+6
-22
No files found.
svx/source/tbxctrls/colorwindow.hxx
Dosyayı görüntüle @
2b54af3b
...
...
@@ -49,8 +49,7 @@ private:
const
sal_uInt16
mnColorSetCols
;
DECL_LINK
(
SelectHdl
,
void
*
);
DECL_LINK
(
SelectRecentHdl
,
void
*
);
DECL_LINK
(
SelectHdl
,
SvxColorValueSet
*
);
DECL_LINK
(
SelectPaletteHdl
,
void
*
);
DECL_LINK
(
AutoColorClickHdl
,
void
*
);
DECL_LINK
(
OpenPickerClickHdl
,
void
*
);
...
...
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
2b54af3b
...
...
@@ -1209,7 +1209,7 @@ SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand,
mpButtonPicker
->
SetClickHdl
(
LINK
(
this
,
SvxColorWindow_Impl
,
OpenPickerClickHdl
)
);
mpColorSet
->
SetSelectHdl
(
LINK
(
this
,
SvxColorWindow_Impl
,
SelectHdl
)
);
mpRecentColorSet
->
SetSelectHdl
(
LINK
(
this
,
SvxColorWindow_Impl
,
Select
Recent
Hdl
)
);
mpRecentColorSet
->
SetSelectHdl
(
LINK
(
this
,
SvxColorWindow_Impl
,
SelectHdl
)
);
SetHelpId
(
HID_POPUP_COLOR
);
mpColorSet
->
SetHelpId
(
HID_POPUP_COLOR_CTRL
);
SetText
(
rWndTitle
);
...
...
@@ -1234,35 +1234,19 @@ SfxPopupWindow* SvxColorWindow_Impl::Clone() const
return
new
SvxColorWindow_Impl
(
maCommand
,
mrPaletteManager
,
theSlotId
,
GetFrame
(),
GetText
(),
GetParent
()
);
}
IMPL_LINK
_NOARG
(
SvxColorWindow_Impl
,
SelectHdl
)
IMPL_LINK
(
SvxColorWindow_Impl
,
SelectHdl
,
SvxColorValueSet
*
,
pColorSet
)
{
Color
aColor
=
mpColorSet
->
GetItemColor
(
m
pColorSet
->
GetSelectItemId
()
);
Color
aColor
=
pColorSet
->
GetItemColor
(
pColorSet
->
GetSelectItemId
()
);
/* #i33380# DR 2004-09-03 Moved the following line above the Dispatch() calls.
This instance may be deleted in the meantime (i.e. when a dialog is opened
while in Dispatch()), accessing members will crash in this case. */
m
pColorSet
->
SetNoSelection
();
pColorSet
->
SetNoSelection
();
if
(
IsInPopupMode
()
)
EndPopupMode
();
if
(
maSelectedLink
.
IsSet
()
)
maSelectedLink
.
Call
(
&
aColor
);
PaletteManager
::
DispatchColorCommand
(
maCommand
,
aColor
);
mrPaletteManager
.
AddRecentColor
(
aColor
);
return
0
;
}
IMPL_LINK_NOARG
(
SvxColorWindow_Impl
,
SelectRecentHdl
)
{
Color
aColor
=
mpRecentColorSet
->
GetItemColor
(
mpRecentColorSet
->
GetSelectItemId
()
);
/* #i33380# DR 2004-09-03 Moved the following line above the Dispatch() calls.
This instance may be deleted in the meantime (i.e. when a dialog is opened
while in Dispatch()), accessing members will crash in this case. */
mpRecentColorSet
->
SetNoSelection
();
if
(
IsInPopupMode
()
)
EndPopupMode
();
if
(
pColorSet
!=
mpRecentColorSet
)
mrPaletteManager
.
AddRecentColor
(
aColor
);
if
(
maSelectedLink
.
IsSet
()
)
maSelectedLink
.
Call
(
&
aColor
);
...
...
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