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
30350f72
Kaydet (Commit)
30350f72
authored
Eyl 14, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I99ae0ff43a25dbaf8f6f5f03ec0f8751f0893ccb
üst
dccd68ad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
25 deletions
+16
-25
menuoptions.hxx
include/svtools/menuoptions.hxx
+2
-2
virtmenu.hxx
sfx2/source/inc/virtmenu.hxx
+1
-1
virtmenu.cxx
sfx2/source/menu/virtmenu.cxx
+1
-3
menuoptions.cxx
svtools/source/config/menuoptions.cxx
+12
-19
No files found.
include/svtools/menuoptions.hxx
Dosyayı görüntüle @
30350f72
...
@@ -58,8 +58,8 @@ class SVT_DLLPUBLIC SAL_WARN_UNUSED SvtMenuOptions: public utl::detail::Options
...
@@ -58,8 +58,8 @@ class SVT_DLLPUBLIC SAL_WARN_UNUSED SvtMenuOptions: public utl::detail::Options
SvtMenuOptions
();
SvtMenuOptions
();
virtual
~
SvtMenuOptions
();
virtual
~
SvtMenuOptions
();
void
AddListenerLink
(
const
Link
<>&
rLink
);
void
AddListenerLink
(
const
Link
<
LinkParamNone
*
,
void
>&
rLink
);
void
RemoveListenerLink
(
const
Link
<>&
rLink
);
void
RemoveListenerLink
(
const
Link
<
LinkParamNone
*
,
void
>&
rLink
);
/*-****************************************************************************************************
/*-****************************************************************************************************
@short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Menu/..."
@short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Menu/..."
...
...
sfx2/source/inc/virtmenu.hxx
Dosyayı görüntüle @
30350f72
...
@@ -72,7 +72,7 @@ protected:
...
@@ -72,7 +72,7 @@ protected:
DECL_STATIC_LINK_TYPED
(
SfxVirtualMenu
,
Highlight
,
Menu
*
,
bool
);
DECL_STATIC_LINK_TYPED
(
SfxVirtualMenu
,
Highlight
,
Menu
*
,
bool
);
DECL_LINK_TYPED
(
Activate
,
Menu
*
,
bool
);
DECL_LINK_TYPED
(
Activate
,
Menu
*
,
bool
);
DECL_LINK_TYPED
(
Deactivate
,
Menu
*
,
bool
);
DECL_LINK_TYPED
(
Deactivate
,
Menu
*
,
bool
);
DECL_LINK
(
SettingsChanged
,
void
*
);
DECL_LINK
_TYPED
(
SettingsChanged
,
LinkParamNone
*
,
void
);
// Used for runtime popup menus
// Used for runtime popup menus
void
UpdateImages
(
Menu
*
pMenu
);
void
UpdateImages
(
Menu
*
pMenu
);
...
...
sfx2/source/menu/virtmenu.cxx
Dosyayı görüntüle @
30350f72
...
@@ -490,7 +490,7 @@ IMPL_STATIC_LINK_NOARG_TYPED(
...
@@ -490,7 +490,7 @@ IMPL_STATIC_LINK_NOARG_TYPED(
return
true
;
return
true
;
}
}
IMPL_LINK_NOARG
(
SfxVirtualMenu
,
SettingsChange
d
)
IMPL_LINK_NOARG
_TYPED
(
SfxVirtualMenu
,
SettingsChanged
,
LinkParamNone
*
,
voi
d
)
{
{
sal_uInt16
nItemCount
=
pSVMenu
->
GetItemCount
();
sal_uInt16
nItemCount
=
pSVMenu
->
GetItemCount
();
SfxViewFrame
*
pViewFrame
=
pBindings
->
GetDispatcher
()
->
GetFrame
();
SfxViewFrame
*
pViewFrame
=
pBindings
->
GetDispatcher
()
->
GetFrame
();
...
@@ -552,8 +552,6 @@ IMPL_LINK_NOARG(SfxVirtualMenu, SettingsChanged)
...
@@ -552,8 +552,6 @@ IMPL_LINK_NOARG(SfxVirtualMenu, SettingsChanged)
if
(
pImageControl
)
if
(
pImageControl
)
pImageControl
->
Update
();
pImageControl
->
Update
();
return
0
;
}
}
...
...
svtools/source/config/menuoptions.cxx
Dosyayı görüntüle @
30350f72
...
@@ -69,7 +69,7 @@ class SvtMenuOptions_Impl : public ConfigItem
...
@@ -69,7 +69,7 @@ class SvtMenuOptions_Impl : public ConfigItem
private
:
private
:
::
std
::
list
<
Link
<>>
aList
;
::
std
::
list
<
Link
<
LinkParamNone
*
,
void
>>
aList
;
bool
m_bDontHideDisabledEntries
;
/// cache "DontHideDisabledEntries" of Menu section
bool
m_bDontHideDisabledEntries
;
/// cache "DontHideDisabledEntries" of Menu section
bool
m_bFollowMouse
;
/// cache "FollowMouse" of Menu section
bool
m_bFollowMouse
;
/// cache "FollowMouse" of Menu section
TriState
m_eMenuIcons
;
/// cache "MenuIcons" of Menu section
TriState
m_eMenuIcons
;
/// cache "MenuIcons" of Menu section
...
@@ -87,8 +87,8 @@ class SvtMenuOptions_Impl : public ConfigItem
...
@@ -87,8 +87,8 @@ class SvtMenuOptions_Impl : public ConfigItem
SvtMenuOptions_Impl
();
SvtMenuOptions_Impl
();
virtual
~
SvtMenuOptions_Impl
();
virtual
~
SvtMenuOptions_Impl
();
void
AddListenerLink
(
const
Link
<>&
rLink
);
void
AddListenerLink
(
const
Link
<
LinkParamNone
*
,
void
>&
rLink
);
void
RemoveListenerLink
(
const
Link
<>&
rLink
);
void
RemoveListenerLink
(
const
Link
<
LinkParamNone
*
,
void
>&
rLink
);
// override methods of baseclass
// override methods of baseclass
...
@@ -126,8 +126,8 @@ class SvtMenuOptions_Impl : public ConfigItem
...
@@ -126,8 +126,8 @@ class SvtMenuOptions_Impl : public ConfigItem
{
{
m_eMenuIcons
=
eState
;
m_eMenuIcons
=
eState
;
SetModified
();
SetModified
();
for
(
::
std
::
list
<
Link
<>>::
const_iterator
iter
=
aList
.
begin
();
iter
!=
aList
.
end
();
++
iter
)
for
(
::
std
::
list
<
Link
<
LinkParamNone
*
,
void
>>::
const_iterator
iter
=
aList
.
begin
();
iter
!=
aList
.
end
();
++
iter
)
iter
->
Call
(
this
);
iter
->
Call
(
nullptr
);
// tdf#93451: don't Commit() here, it's too early
// tdf#93451: don't Commit() here, it's too early
}
}
...
@@ -285,8 +285,8 @@ void SvtMenuOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
...
@@ -285,8 +285,8 @@ void SvtMenuOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
if
(
bMenuSettingsChanged
)
if
(
bMenuSettingsChanged
)
m_eMenuIcons
=
bSystemMenuIcons
?
TRISTATE_INDET
:
static_cast
<
TriState
>
(
bMenuIcons
);
m_eMenuIcons
=
bSystemMenuIcons
?
TRISTATE_INDET
:
static_cast
<
TriState
>
(
bMenuIcons
);
for
(
::
std
::
list
<
Link
<>>::
const_iterator
iter
=
aList
.
begin
();
iter
!=
aList
.
end
();
++
iter
)
for
(
::
std
::
list
<
Link
<
LinkParamNone
*
,
void
>>::
const_iterator
iter
=
aList
.
begin
();
iter
!=
aList
.
end
();
++
iter
)
iter
->
Call
(
this
);
iter
->
Call
(
nullptr
);
}
}
...
@@ -347,21 +347,14 @@ Sequence< OUString > SvtMenuOptions_Impl::impl_GetPropertyNames()
...
@@ -347,21 +347,14 @@ Sequence< OUString > SvtMenuOptions_Impl::impl_GetPropertyNames()
return
seqPropertyNames
;
return
seqPropertyNames
;
}
}
void
SvtMenuOptions_Impl
::
AddListenerLink
(
const
Link
<>&
rLink
)
void
SvtMenuOptions_Impl
::
AddListenerLink
(
const
Link
<
LinkParamNone
*
,
void
>&
rLink
)
{
{
aList
.
push_back
(
rLink
);
aList
.
push_back
(
rLink
);
}
}
void
SvtMenuOptions_Impl
::
RemoveListenerLink
(
const
Link
<>&
rLink
)
void
SvtMenuOptions_Impl
::
RemoveListenerLink
(
const
Link
<
LinkParamNone
*
,
void
>&
rLink
)
{
{
for
(
::
std
::
list
<
Link
<>>::
iterator
iter
=
aList
.
begin
();
iter
!=
aList
.
end
();
++
iter
)
aList
.
erase
(
std
::
remove
(
aList
.
begin
(),
aList
.
end
(),
rLink
),
aList
.
end
());
{
if
(
*
iter
==
rLink
)
{
aList
.
erase
(
iter
);
break
;
}
}
}
}
...
@@ -460,12 +453,12 @@ Mutex& SvtMenuOptions::GetOwnStaticMutex()
...
@@ -460,12 +453,12 @@ Mutex& SvtMenuOptions::GetOwnStaticMutex()
return
*
pMutex
;
return
*
pMutex
;
}
}
void
SvtMenuOptions
::
AddListenerLink
(
const
Link
<>&
rLink
)
void
SvtMenuOptions
::
AddListenerLink
(
const
Link
<
LinkParamNone
*
,
void
>&
rLink
)
{
{
m_pDataContainer
->
AddListenerLink
(
rLink
);
m_pDataContainer
->
AddListenerLink
(
rLink
);
}
}
void
SvtMenuOptions
::
RemoveListenerLink
(
const
Link
<>&
rLink
)
void
SvtMenuOptions
::
RemoveListenerLink
(
const
Link
<
LinkParamNone
*
,
void
>&
rLink
)
{
{
m_pDataContainer
->
RemoveListenerLink
(
rLink
);
m_pDataContainer
->
RemoveListenerLink
(
rLink
);
}
}
...
...
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