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
1367e4b2
Kaydet (Commit)
1367e4b2
authored
Kas 13, 2014
tarafından
Jennifer Liebel
Kaydeden (comit)
Tobias Madl
Ara 09, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
changed timers to idle
Change-Id: I05ccb8bd73070462edcc911956859aa7967b5901
üst
7357dec9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
layoutmanager.hxx
framework/inc/services/layoutmanager.hxx
+1
-1
toolbarmanager.hxx
framework/inc/uielement/toolbarmanager.hxx
+1
-1
layoutmanager.cxx
framework/source/layoutmanager/layoutmanager.cxx
+11
-11
toolbarmanager.cxx
framework/source/uielement/toolbarmanager.cxx
+9
-9
No files found.
framework/inc/services/layoutmanager.hxx
Dosyayı görüntüle @
1367e4b2
...
@@ -310,7 +310,7 @@ namespace framework
...
@@ -310,7 +310,7 @@ namespace framework
css
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameAccess
>
m_xPersistentWindowStateSupplier
;
css
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameAccess
>
m_xPersistentWindowStateSupplier
;
GlobalSettings
*
m_pGlobalSettings
;
GlobalSettings
*
m_pGlobalSettings
;
OUString
m_aModuleIdentifier
;
OUString
m_aModuleIdentifier
;
Idle
m_aAsyncLayoutIdle
;
Timer
m_aAsyncLayoutTimer
;
::
cppu
::
OMultiTypeInterfaceContainerHelper
m_aListenerContainer
;
// container for ALL Listener
::
cppu
::
OMultiTypeInterfaceContainerHelper
m_aListenerContainer
;
// container for ALL Listener
ToolbarLayoutManager
*
m_pToolbarManager
;
ToolbarLayoutManager
*
m_pToolbarManager
;
css
::
uno
::
Reference
<
::
com
::
sun
::
star
::
ui
::
XUIConfigurationListener
>
m_xToolbarManager
;
css
::
uno
::
Reference
<
::
com
::
sun
::
star
::
ui
::
XUIConfigurationListener
>
m_xToolbarManager
;
...
...
framework/inc/uielement/toolbarmanager.hxx
Dosyayı görüntüle @
1367e4b2
...
@@ -208,7 +208,7 @@ class ToolBarManager : public ToolbarManager_Base
...
@@ -208,7 +208,7 @@ class ToolBarManager : public ToolbarManager_Base
CommandToInfoMap
m_aCommandMap
;
CommandToInfoMap
m_aCommandMap
;
SubToolBarToSubToolBarControllerMap
m_aSubToolBarControllerMap
;
SubToolBarToSubToolBarControllerMap
m_aSubToolBarControllerMap
;
Idle
m_aAsyncUpdateControllersIdle
;
Timer
m_aAsyncUpdateControllersTimer
;
OUString
m_sIconTheme
;
OUString
m_sIconTheme
;
MenuDescriptionMap
m_aMenuMap
;
MenuDescriptionMap
m_aMenuMap
;
bool
m_bAcceleratorCfg
;
bool
m_bAcceleratorCfg
;
...
...
framework/source/layoutmanager/layoutmanager.cxx
Dosyayı görüntüle @
1367e4b2
...
@@ -144,8 +144,8 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) :
...
@@ -144,8 +144,8 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) :
Application
::
AddEventListener
(
LINK
(
this
,
LayoutManager
,
SettingsChanged
)
);
Application
::
AddEventListener
(
LINK
(
this
,
LayoutManager
,
SettingsChanged
)
);
m_aAsyncLayout
Idle
.
SetPriority
(
VCL_IDLE_PRIORITY_RESIZE
);
m_aAsyncLayout
Timer
.
SetTimeout
(
50
);
m_aAsyncLayout
Idle
.
SetIdle
Hdl
(
LINK
(
this
,
LayoutManager
,
AsyncLayoutHdl
)
);
m_aAsyncLayout
Timer
.
SetTimeout
Hdl
(
LINK
(
this
,
LayoutManager
,
AsyncLayoutHdl
)
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_AUTOMATICTOOLBARS
,
LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS
,
css
::
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bAutomaticToolbars
,
::
getCppuType
(
&
m_bAutomaticToolbars
)
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_AUTOMATICTOOLBARS
,
LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS
,
css
::
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bAutomaticToolbars
,
::
getCppuType
(
&
m_bAutomaticToolbars
)
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_HIDECURRENTUI
,
LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI
,
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bHideCurrentUI
,
::
getCppuType
(
&
m_bHideCurrentUI
)
);
registerProperty
(
LAYOUTMANAGER_PROPNAME_HIDECURRENTUI
,
LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI
,
beans
::
PropertyAttribute
::
TRANSIENT
,
&
m_bHideCurrentUI
,
::
getCppuType
(
&
m_bHideCurrentUI
)
);
...
@@ -158,7 +158,7 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) :
...
@@ -158,7 +158,7 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) :
LayoutManager
::~
LayoutManager
()
LayoutManager
::~
LayoutManager
()
{
{
Application
::
RemoveEventListener
(
LINK
(
this
,
LayoutManager
,
SettingsChanged
)
);
Application
::
RemoveEventListener
(
LINK
(
this
,
LayoutManager
,
SettingsChanged
)
);
m_aAsyncLayout
Idle
.
Stop
();
m_aAsyncLayout
Timer
.
Stop
();
setDockingAreaAcceptor
(
NULL
);
setDockingAreaAcceptor
(
NULL
);
delete
m_pGlobalSettings
;
delete
m_pGlobalSettings
;
}
}
...
@@ -1256,7 +1256,7 @@ throw ( RuntimeException, std::exception )
...
@@ -1256,7 +1256,7 @@ throw ( RuntimeException, std::exception )
// IMPORTANT: Be sure to stop layout timer if don't have a docking area acceptor!
// IMPORTANT: Be sure to stop layout timer if don't have a docking area acceptor!
if
(
!
xDockingAreaAcceptor
.
is
()
)
if
(
!
xDockingAreaAcceptor
.
is
()
)
m_aAsyncLayout
Idle
.
Stop
();
m_aAsyncLayout
Timer
.
Stop
();
bool
bAutomaticToolbars
(
m_bAutomaticToolbars
);
bool
bAutomaticToolbars
(
m_bAutomaticToolbars
);
std
::
vector
<
Reference
<
awt
::
XWindow
>
>
oldDockingAreaWindows
;
std
::
vector
<
Reference
<
awt
::
XWindow
>
>
oldDockingAreaWindows
;
...
@@ -1264,7 +1264,7 @@ throw ( RuntimeException, std::exception )
...
@@ -1264,7 +1264,7 @@ throw ( RuntimeException, std::exception )
ToolbarLayoutManager
*
pToolbarManager
=
m_pToolbarManager
;
ToolbarLayoutManager
*
pToolbarManager
=
m_pToolbarManager
;
if
(
!
xDockingAreaAcceptor
.
is
()
)
if
(
!
xDockingAreaAcceptor
.
is
()
)
m_aAsyncLayout
Idle
.
Stop
();
m_aAsyncLayout
Timer
.
Stop
();
// Remove listener from old docking area acceptor
// Remove listener from old docking area acceptor
if
(
m_xDockingAreaAcceptor
.
is
()
)
if
(
m_xDockingAreaAcceptor
.
is
()
)
...
@@ -2265,7 +2265,7 @@ throw (RuntimeException, std::exception)
...
@@ -2265,7 +2265,7 @@ throw (RuntimeException, std::exception)
SolarMutexClearableGuard
aWriteLock
;
SolarMutexClearableGuard
aWriteLock
;
if
(
bDoLayout
)
if
(
bDoLayout
)
m_aAsyncLayout
Idle
.
Stop
();
m_aAsyncLayout
Timer
.
Stop
();
aWriteLock
.
clear
();
aWriteLock
.
clear
();
Any
a
(
nLockCount
);
Any
a
(
nLockCount
);
...
@@ -2664,14 +2664,14 @@ throw( uno::RuntimeException, std::exception )
...
@@ -2664,14 +2664,14 @@ throw( uno::RuntimeException, std::exception )
// application modules need this. So we have to check if this is the first
// application modules need this. So we have to check if this is the first
// call after the async layout time expired.
// call after the async layout time expired.
m_bMustDoLayout
=
true
;
m_bMustDoLayout
=
true
;
if
(
!
m_aAsyncLayout
Idle
.
IsActive
()
)
if
(
!
m_aAsyncLayout
Timer
.
IsActive
()
)
{
{
const
Link
&
aLink
=
m_aAsyncLayout
Idle
.
GetTimeoutHdl
();
const
Link
&
aLink
=
m_aAsyncLayout
Timer
.
GetTimeoutHdl
();
if
(
aLink
.
IsSet
()
)
if
(
aLink
.
IsSet
()
)
aLink
.
Call
(
&
m_aAsyncLayout
Idle
);
aLink
.
Call
(
&
m_aAsyncLayout
Timer
);
}
}
if
(
m_nLockCount
==
0
)
if
(
m_nLockCount
==
0
)
m_aAsyncLayout
Idle
.
Start
();
m_aAsyncLayout
Timer
.
Start
();
}
}
else
if
(
m_xFrame
.
is
()
&&
aEvent
.
Source
==
m_xFrame
->
getContainerWindow
()
)
else
if
(
m_xFrame
.
is
()
&&
aEvent
.
Source
==
m_xFrame
->
getContainerWindow
()
)
{
{
...
@@ -2741,7 +2741,7 @@ void SAL_CALL LayoutManager::windowHidden( const lang::EventObject& aEvent ) thr
...
@@ -2741,7 +2741,7 @@ void SAL_CALL LayoutManager::windowHidden( const lang::EventObject& aEvent ) thr
IMPL_LINK_NOARG
(
LayoutManager
,
AsyncLayoutHdl
)
IMPL_LINK_NOARG
(
LayoutManager
,
AsyncLayoutHdl
)
{
{
SolarMutexClearableGuard
aReadLock
;
SolarMutexClearableGuard
aReadLock
;
m_aAsyncLayout
Idle
.
Stop
();
m_aAsyncLayout
Timer
.
Stop
();
if
(
!
m_xContainerWindow
.
is
()
)
if
(
!
m_xContainerWindow
.
is
()
)
return
0
;
return
0
;
...
...
framework/source/uielement/toolbarmanager.cxx
Dosyayı görüntüle @
1367e4b2
...
@@ -235,15 +235,15 @@ ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext,
...
@@ -235,15 +235,15 @@ ToolBarManager::ToolBarManager( const Reference< XComponentContext >& rxContext,
aHelpIdAsString
+=
OUStringToOString
(
aToolbarName
,
RTL_TEXTENCODING_UTF8
);;
aHelpIdAsString
+=
OUStringToOString
(
aToolbarName
,
RTL_TEXTENCODING_UTF8
);;
m_pToolBar
->
SetHelpId
(
aHelpIdAsString
);
m_pToolBar
->
SetHelpId
(
aHelpIdAsString
);
m_aAsyncUpdateControllers
Idle
.
SetPriority
(
VCL_IDLE_PRIORITY_MEDIUM
);
m_aAsyncUpdateControllers
Timer
.
SetTimeout
(
50
);
m_aAsyncUpdateControllers
Idle
.
SetIdle
Hdl
(
LINK
(
this
,
ToolBarManager
,
AsyncUpdateControllersHdl
)
);
m_aAsyncUpdateControllers
Timer
.
SetTimeout
Hdl
(
LINK
(
this
,
ToolBarManager
,
AsyncUpdateControllersHdl
)
);
SvtMiscOptions
().
AddListenerLink
(
LINK
(
this
,
ToolBarManager
,
MiscOptionsChanged
)
);
SvtMiscOptions
().
AddListenerLink
(
LINK
(
this
,
ToolBarManager
,
MiscOptionsChanged
)
);
}
}
ToolBarManager
::~
ToolBarManager
()
ToolBarManager
::~
ToolBarManager
()
{
{
assert
(
!
m_aAsyncUpdateControllers
Idle
.
IsActive
());
assert
(
!
m_aAsyncUpdateControllers
Timer
.
IsActive
());
OSL_ASSERT
(
m_pToolBar
==
0
);
OSL_ASSERT
(
m_pToolBar
==
0
);
OSL_ASSERT
(
!
m_bAddedToTaskPaneList
);
OSL_ASSERT
(
!
m_bAddedToTaskPaneList
);
}
}
...
@@ -477,7 +477,7 @@ throw ( RuntimeException, std::exception )
...
@@ -477,7 +477,7 @@ throw ( RuntimeException, std::exception )
SolarMutexGuard
g
;
SolarMutexGuard
g
;
if
(
Action
.
Action
==
FrameAction_CONTEXT_CHANGED
)
if
(
Action
.
Action
==
FrameAction_CONTEXT_CHANGED
)
{
{
m_aAsyncUpdateControllers
Idle
.
Start
();
m_aAsyncUpdateControllers
Timer
.
Start
();
}
}
}
}
...
@@ -631,7 +631,7 @@ void SAL_CALL ToolBarManager::dispose() throw( RuntimeException, std::exception
...
@@ -631,7 +631,7 @@ void SAL_CALL ToolBarManager::dispose() throw( RuntimeException, std::exception
// stop timer to prevent timer events after dispose
// stop timer to prevent timer events after dispose
// do it last because other calls could restart timer in StateChanged()
// do it last because other calls could restart timer in StateChanged()
m_aAsyncUpdateControllers
Idle
.
Stop
();
m_aAsyncUpdateControllers
Timer
.
Stop
();
m_bDisposed
=
true
;
m_bDisposed
=
true
;
}
}
...
@@ -1417,7 +1417,7 @@ void ToolBarManager::FillToolbar( const Reference< XIndexAccess >& rItemContaine
...
@@ -1417,7 +1417,7 @@ void ToolBarManager::FillToolbar( const Reference< XIndexAccess >& rItemContaine
UpdateControllers
();
UpdateControllers
();
else
if
(
m_pToolBar
->
IsReallyVisible
()
)
else
if
(
m_pToolBar
->
IsReallyVisible
()
)
{
{
m_aAsyncUpdateControllers
Idle
.
Start
();
m_aAsyncUpdateControllers
Timer
.
Start
();
}
}
// Try to retrieve UIName from the container property set and set it as the title
// Try to retrieve UIName from the container property set and set it as the title
...
@@ -2053,12 +2053,12 @@ IMPL_LINK( ToolBarManager, StateChanged, StateChangedType*, pStateChangedType )
...
@@ -2053,12 +2053,12 @@ IMPL_LINK( ToolBarManager, StateChanged, StateChangedType*, pStateChangedType )
{
{
if
(
m_pToolBar
->
IsReallyVisible
()
)
if
(
m_pToolBar
->
IsReallyVisible
()
)
{
{
m_aAsyncUpdateControllers
Idle
.
Start
();
m_aAsyncUpdateControllers
Timer
.
Start
();
}
}
}
}
else
if
(
*
pStateChangedType
==
StateChangedType
::
INITSHOW
)
else
if
(
*
pStateChangedType
==
StateChangedType
::
INITSHOW
)
{
{
m_aAsyncUpdateControllers
Idle
.
Start
();
m_aAsyncUpdateControllers
Timer
.
Start
();
}
}
return
1
;
return
1
;
}
}
...
@@ -2113,7 +2113,7 @@ IMPL_LINK_NOARG(ToolBarManager, AsyncUpdateControllersHdl)
...
@@ -2113,7 +2113,7 @@ IMPL_LINK_NOARG(ToolBarManager, AsyncUpdateControllersHdl)
return
1
;
return
1
;
// Request to update our controllers
// Request to update our controllers
m_aAsyncUpdateControllers
Idle
.
Stop
();
m_aAsyncUpdateControllers
Timer
.
Stop
();
UpdateControllers
();
UpdateControllers
();
return
0
;
return
0
;
...
...
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