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
e0d5abb6
Kaydet (Commit)
e0d5abb6
authored
Haz 20, 2012
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i120029# Unregister on dispose.
Patch by: zhang jianfang Review by: Andre Fischer
üst
8735f585
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
84 additions
and
2 deletions
+84
-2
acceleratorconfiguration.cxx
framework/source/accelerators/acceleratorconfiguration.cxx
+25
-2
globalacceleratorconfiguration.cxx
...rk/source/accelerators/globalacceleratorconfiguration.cxx
+19
-0
moduleacceleratorconfiguration.cxx
...rk/source/accelerators/moduleacceleratorconfiguration.cxx
+19
-0
acceleratorconfiguration.hxx
...work/source/inc/accelerators/acceleratorconfiguration.hxx
+6
-0
globalacceleratorconfiguration.hxx
...ource/inc/accelerators/globalacceleratorconfiguration.hxx
+3
-0
moduleacceleratorconfiguration.hxx
...ource/inc/accelerators/moduleacceleratorconfiguration.hxx
+3
-0
moduleuiconfigurationmanager.cxx
...k/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+3
-0
menubarmanager.cxx
framework/source/uielement/menubarmanager.cxx
+3
-0
toolbarmanager.cxx
framework/source/uielement/toolbarmanager.cxx
+3
-0
No files found.
framework/source/accelerators/acceleratorconfiguration.cxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -676,21 +676,23 @@ AcceleratorCache& XMLBasedAcceleratorConfiguration::impl_getCFG(sal_Bool bWriteA
...
@@ -676,21 +676,23 @@ AcceleratorCache& XMLBasedAcceleratorConfiguration::impl_getCFG(sal_Bool bWriteA
//-----------------------------------------------
//-----------------------------------------------
// XInterface, XTypeProvider
// XInterface, XTypeProvider
DEFINE_XINTERFACE_
7
(
XCUBasedAcceleratorConfiguration
,
DEFINE_XINTERFACE_
8
(
XCUBasedAcceleratorConfiguration
,
OWeakObject
,
OWeakObject
,
DIRECT_INTERFACE
(
css
::
lang
::
XTypeProvider
),
DIRECT_INTERFACE
(
css
::
lang
::
XTypeProvider
),
DIRECT_INTERFACE
(
css
::
ui
::
XAcceleratorConfiguration
),
DIRECT_INTERFACE
(
css
::
ui
::
XAcceleratorConfiguration
),
DIRECT_INTERFACE
(
css
::
util
::
XChangesListener
),
DIRECT_INTERFACE
(
css
::
util
::
XChangesListener
),
DIRECT_INTERFACE
(
css
::
form
::
XReset
),
DIRECT_INTERFACE
(
css
::
form
::
XReset
),
DIRECT_INTERFACE
(
css
::
lang
::
XComponent
),
DIRECT_INTERFACE
(
css
::
ui
::
XUIConfigurationPersistence
),
DIRECT_INTERFACE
(
css
::
ui
::
XUIConfigurationPersistence
),
DIRECT_INTERFACE
(
css
::
ui
::
XUIConfigurationStorage
),
DIRECT_INTERFACE
(
css
::
ui
::
XUIConfigurationStorage
),
DIRECT_INTERFACE
(
css
::
ui
::
XUIConfiguration
))
DIRECT_INTERFACE
(
css
::
ui
::
XUIConfiguration
))
DEFINE_XTYPEPROVIDER_
7
(
XCUBasedAcceleratorConfiguration
,
DEFINE_XTYPEPROVIDER_
8
(
XCUBasedAcceleratorConfiguration
,
css
::
lang
::
XTypeProvider
,
css
::
lang
::
XTypeProvider
,
css
::
ui
::
XAcceleratorConfiguration
,
css
::
ui
::
XAcceleratorConfiguration
,
css
::
util
::
XChangesListener
,
css
::
util
::
XChangesListener
,
css
::
form
::
XReset
,
css
::
form
::
XReset
,
css
::
lang
::
XComponent
,
css
::
ui
::
XUIConfigurationPersistence
,
css
::
ui
::
XUIConfigurationPersistence
,
css
::
ui
::
XUIConfigurationStorage
,
css
::
ui
::
XUIConfigurationStorage
,
css
::
ui
::
XUIConfiguration
)
css
::
ui
::
XUIConfiguration
)
...
@@ -1291,6 +1293,27 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::disposing(const css::lang::Event
...
@@ -1291,6 +1293,27 @@ void SAL_CALL XCUBasedAcceleratorConfiguration::disposing(const css::lang::Event
{
{
}
}
//-----------------------------------------------
void
SAL_CALL
XCUBasedAcceleratorConfiguration
::
dispose
()
throw
(
css
::
uno
::
RuntimeException
)
{
// nop
}
//-----------------------------------------------
void
SAL_CALL
XCUBasedAcceleratorConfiguration
::
addEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
xListener
)
throw
(
css
::
uno
::
RuntimeException
)
{
// nop
}
//-----------------------------------------------
void
SAL_CALL
XCUBasedAcceleratorConfiguration
::
removeEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
aListener
)
throw
(
css
::
uno
::
RuntimeException
)
{
// nop
}
//-----------------------------------------------
//-----------------------------------------------
void
XCUBasedAcceleratorConfiguration
::
impl_ts_load
(
sal_Bool
bPreferred
,
const
css
::
uno
::
Reference
<
css
::
container
::
XNameAccess
>&
xCfg
)
void
XCUBasedAcceleratorConfiguration
::
impl_ts_load
(
sal_Bool
bPreferred
,
const
css
::
uno
::
Reference
<
css
::
container
::
XNameAccess
>&
xCfg
)
{
{
...
...
framework/source/accelerators/globalacceleratorconfiguration.cxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -120,4 +120,23 @@ void GlobalAcceleratorConfiguration::impl_ts_fillCache()
...
@@ -120,4 +120,23 @@ void GlobalAcceleratorConfiguration::impl_ts_fillCache()
{}
{}
}
}
//-----------------------------------------------
//
// XComponent.dispose(), #120029#, to release the cyclic reference
//
void
SAL_CALL
GlobalAcceleratorConfiguration
::
dispose
()
throw
(
css
::
uno
::
RuntimeException
)
{
try
{
css
::
uno
::
Reference
<
css
::
util
::
XChangesNotifier
>
xBroadcaster
(
m_xCfg
,
css
::
uno
::
UNO_QUERY_THROW
);
if
(
xBroadcaster
.
is
()
)
xBroadcaster
->
removeChangesListener
(
static_cast
<
css
::
util
::
XChangesListener
*
>
(
this
));
}
catch
(
const
css
::
uno
::
RuntimeException
&
exRun
)
{
throw
exRun
;
}
catch
(
const
css
::
uno
::
Exception
&
)
{}
}
}
// namespace framework
}
// namespace framework
framework/source/accelerators/moduleacceleratorconfiguration.cxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -167,5 +167,24 @@ void ModuleAcceleratorConfiguration::impl_ts_fillCache()
...
@@ -167,5 +167,24 @@ void ModuleAcceleratorConfiguration::impl_ts_fillCache()
{}
{}
}
}
//-----------------------------------------------
//
// XComponent.dispose(), #120029#, to release the cyclic reference
//
void
SAL_CALL
ModuleAcceleratorConfiguration
::
dispose
()
throw
(
css
::
uno
::
RuntimeException
)
{
try
{
css
::
uno
::
Reference
<
css
::
util
::
XChangesNotifier
>
xBroadcaster
(
m_xCfg
,
css
::
uno
::
UNO_QUERY_THROW
);
if
(
xBroadcaster
.
is
()
)
xBroadcaster
->
removeChangesListener
(
static_cast
<
css
::
util
::
XChangesListener
*
>
(
this
));
}
catch
(
const
css
::
uno
::
RuntimeException
&
exRun
)
{
throw
exRun
;
}
catch
(
const
css
::
uno
::
Exception
&
)
{}
}
}
// namespace framework
}
// namespace framework
framework/source/inc/accelerators/acceleratorconfiguration.hxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -309,6 +309,7 @@ class XCUBasedAcceleratorConfiguration : protected ThreadHelpBase
...
@@ -309,6 +309,7 @@ class XCUBasedAcceleratorConfiguration : protected ThreadHelpBase
,
public
::
cppu
::
OWeakObject
,
public
::
cppu
::
OWeakObject
,
public
css
::
lang
::
XTypeProvider
,
public
css
::
lang
::
XTypeProvider
,
public
css
::
util
::
XChangesListener
,
public
css
::
util
::
XChangesListener
,
public
css
::
lang
::
XComponent
,
public
css
::
form
::
XReset
// TODO use XPresetHandler instead if available
,
public
css
::
form
::
XReset
// TODO use XPresetHandler instead if available
,
public
css
::
ui
::
XAcceleratorConfiguration
// => css::ui::XUIConfigurationPersistence
,
public
css
::
ui
::
XAcceleratorConfiguration
// => css::ui::XUIConfigurationPersistence
// css::ui::XUIConfigurationStorage
// css::ui::XUIConfigurationStorage
...
@@ -435,6 +436,11 @@ class XCUBasedAcceleratorConfiguration : protected ThreadHelpBase
...
@@ -435,6 +436,11 @@ class XCUBasedAcceleratorConfiguration : protected ThreadHelpBase
virtual
void
SAL_CALL
disposing
(
const
css
::
lang
::
EventObject
&
aEvent
)
virtual
void
SAL_CALL
disposing
(
const
css
::
lang
::
EventObject
&
aEvent
)
throw
(
css
::
uno
::
RuntimeException
);
throw
(
css
::
uno
::
RuntimeException
);
// XComponent
virtual
void
SAL_CALL
dispose
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
xListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
//______________________________________
//______________________________________
// helper for derived classes
// helper for derived classes
...
...
framework/source/inc/accelerators/globalacceleratorconfiguration.hxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -88,6 +88,9 @@ class GlobalAcceleratorConfiguration : public XCUBasedAcceleratorConfiguration
...
@@ -88,6 +88,9 @@ class GlobalAcceleratorConfiguration : public XCUBasedAcceleratorConfiguration
throw
(
css
::
uno
::
Exception
,
throw
(
css
::
uno
::
Exception
,
css
::
uno
::
RuntimeException
);
css
::
uno
::
RuntimeException
);
// XComponent
virtual
void
SAL_CALL
dispose
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
//______________________________________
//______________________________________
// helper
// helper
...
...
framework/source/inc/accelerators/moduleacceleratorconfiguration.hxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -96,6 +96,9 @@ class ModuleAcceleratorConfiguration : public XCUBasedAcceleratorConfiguration
...
@@ -96,6 +96,9 @@ class ModuleAcceleratorConfiguration : public XCUBasedAcceleratorConfiguration
throw
(
css
::
uno
::
Exception
,
throw
(
css
::
uno
::
Exception
,
css
::
uno
::
RuntimeException
);
css
::
uno
::
RuntimeException
);
// XComponent
virtual
void
SAL_CALL
dispose
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
//______________________________________
//______________________________________
// helper
// helper
...
...
framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -777,6 +777,9 @@ void SAL_CALL ModuleUIConfigurationManager::dispose() throw (::com::sun::star::u
...
@@ -777,6 +777,9 @@ void SAL_CALL ModuleUIConfigurationManager::dispose() throw (::com::sun::star::u
ResetableGuard
aGuard
(
m_aLock
);
ResetableGuard
aGuard
(
m_aLock
);
Reference
<
XComponent
>
xModuleImageManager
(
m_xModuleImageManager
);
Reference
<
XComponent
>
xModuleImageManager
(
m_xModuleImageManager
);
m_xModuleImageManager
.
clear
();
m_xModuleImageManager
.
clear
();
Reference
<
XComponent
>
xCompMAM
(
m_xModuleAcceleratorManager
,
UNO_QUERY
);
if
(
xCompMAM
.
is
()
)
xCompMAM
->
dispose
();
m_xModuleAcceleratorManager
.
clear
();
m_xModuleAcceleratorManager
.
clear
();
m_aUIElements
[
LAYER_USERDEFINED
].
clear
();
m_aUIElements
[
LAYER_USERDEFINED
].
clear
();
m_aUIElements
[
LAYER_DEFAULT
].
clear
();
m_aUIElements
[
LAYER_DEFAULT
].
clear
();
...
...
framework/source/uielement/menubarmanager.cxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -422,6 +422,9 @@ void SAL_CALL MenuBarManager::dispose() throw( RuntimeException )
...
@@ -422,6 +422,9 @@ void SAL_CALL MenuBarManager::dispose() throw( RuntimeException )
}
}
m_xDocImageManager
.
clear
();
m_xDocImageManager
.
clear
();
m_xModuleImageManager
.
clear
();
m_xModuleImageManager
.
clear
();
Reference
<
XComponent
>
xCompGAM
(
m_xGlobalAcceleratorManager
,
UNO_QUERY
);
if
(
xCompGAM
.
is
()
)
xCompGAM
->
dispose
();
m_xGlobalAcceleratorManager
.
clear
();
m_xGlobalAcceleratorManager
.
clear
();
m_xModuleAcceleratorManager
.
clear
();
m_xModuleAcceleratorManager
.
clear
();
m_xDocAcceleratorManager
.
clear
();
m_xDocAcceleratorManager
.
clear
();
...
...
framework/source/uielement/toolbarmanager.cxx
Dosyayı görüntüle @
e0d5abb6
...
@@ -706,6 +706,9 @@ void SAL_CALL ToolBarManager::dispose() throw( RuntimeException )
...
@@ -706,6 +706,9 @@ void SAL_CALL ToolBarManager::dispose() throw( RuntimeException )
m_xFrame
.
clear
();
m_xFrame
.
clear
();
m_xServiceManager
.
clear
();
m_xServiceManager
.
clear
();
Reference
<
XComponent
>
xCompGAM
(
m_xGlobalAcceleratorManager
,
UNO_QUERY
);
if
(
xCompGAM
.
is
()
)
xCompGAM
->
dispose
();
m_xGlobalAcceleratorManager
.
clear
();
m_xGlobalAcceleratorManager
.
clear
();
m_xModuleAcceleratorManager
.
clear
();
m_xModuleAcceleratorManager
.
clear
();
m_xDocAcceleratorManager
.
clear
();
m_xDocAcceleratorManager
.
clear
();
...
...
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