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
aa960ab7
Kaydet (Commit)
aa960ab7
authored
Nis 19, 2011
tarafından
Kayo Hamid
Kaydeden (comit)
Caolán McNamara
Nis 19, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
prefer prefix ++/-- operators
üst
2296ac5a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
toolbarlayoutmanager.cxx
framework/source/layoutmanager/toolbarlayoutmanager.cxx
+19
-19
No files found.
framework/source/layoutmanager/toolbarlayoutmanager.cxx
Dosyayı görüntüle @
aa960ab7
...
@@ -295,7 +295,7 @@ Rectangle ToolbarLayoutManager::implts_calcDockingArea()
...
@@ -295,7 +295,7 @@ Rectangle ToolbarLayoutManager::implts_calcDockingArea()
aRowColumnSizes
[
nCurrDockingArea
].
clear
();
aRowColumnSizes
[
nCurrDockingArea
].
clear
();
aRowColumnSizes
[
nCurrDockingArea
].
push_back
(
0
);
aRowColumnSizes
[
nCurrDockingArea
].
push_back
(
0
);
for
(
pConstIter
=
aWindowVector
.
begin
();
pConstIter
!=
aWindowVector
.
end
();
pConstIter
++
)
for
(
pConstIter
=
aWindowVector
.
begin
();
pConstIter
!=
aWindowVector
.
end
();
++
pConstIter
)
{
{
uno
::
Reference
<
ui
::
XUIElement
>
xUIElement
(
pConstIter
->
m_xUIElement
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
ui
::
XUIElement
>
xUIElement
(
pConstIter
->
m_xUIElement
,
uno
::
UNO_QUERY
);
if
(
xUIElement
.
is
()
)
if
(
xUIElement
.
is
()
)
...
@@ -469,7 +469,7 @@ bool ToolbarLayoutManager::destroyToolbar( const ::rtl::OUString& rResourceURL )
...
@@ -469,7 +469,7 @@ bool ToolbarLayoutManager::destroyToolbar( const ::rtl::OUString& rResourceURL )
bool
bMustBeDestroyed
(
rResourceURL
.
indexOf
(
aAddonTbResourceName
)
!=
0
);
bool
bMustBeDestroyed
(
rResourceURL
.
indexOf
(
aAddonTbResourceName
)
!=
0
);
WriteGuard
aWriteLock
(
m_aLock
);
WriteGuard
aWriteLock
(
m_aLock
);
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_aName
==
rResourceURL
)
if
(
pIter
->
m_aName
==
rResourceURL
)
{
{
...
@@ -546,7 +546,7 @@ void ToolbarLayoutManager::destroyToolbars()
...
@@ -546,7 +546,7 @@ void ToolbarLayoutManager::destroyToolbars()
aWriteLock
.
unlock
();
aWriteLock
.
unlock
();
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
pIter
++
)
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
++
pIter
)
{
{
uno
::
Reference
<
lang
::
XComponent
>
xComponent
(
pIter
->
m_xUIElement
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
lang
::
XComponent
>
xComponent
(
pIter
->
m_xUIElement
,
uno
::
UNO_QUERY
);
if
(
xComponent
.
is
()
)
if
(
xComponent
.
is
()
)
...
@@ -613,7 +613,7 @@ void ToolbarLayoutManager::refreshToolbarsVisibility( bool bAutomaticToolbars )
...
@@ -613,7 +613,7 @@ void ToolbarLayoutManager::refreshToolbarsVisibility( bool bAutomaticToolbars )
UIElement
aUIElement
;
UIElement
aUIElement
;
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
pIter
++
)
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
++
pIter
)
{
{
if
(
implts_readWindowStateData
(
pIter
->
m_aName
,
aUIElement
)
&&
if
(
implts_readWindowStateData
(
pIter
->
m_aName
,
aUIElement
)
&&
(
pIter
->
m_bVisible
!=
aUIElement
.
m_bVisible
)
&&
!
pIter
->
m_bMasterHide
)
(
pIter
->
m_bVisible
!=
aUIElement
.
m_bVisible
)
&&
!
pIter
->
m_bMasterHide
)
...
@@ -636,7 +636,7 @@ void ToolbarLayoutManager::setFloatingToolbarsVisibility( bool bVisible )
...
@@ -636,7 +636,7 @@ void ToolbarLayoutManager::setFloatingToolbarsVisibility( bool bVisible )
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
pIter
++
)
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
++
pIter
)
{
{
Window
*
pWindow
=
getWindowFromXUIElement
(
pIter
->
m_xUIElement
);
Window
*
pWindow
=
getWindowFromXUIElement
(
pIter
->
m_xUIElement
);
if
(
pWindow
&&
pIter
->
m_bFloating
)
if
(
pWindow
&&
pIter
->
m_bFloating
)
...
@@ -659,7 +659,7 @@ void ToolbarLayoutManager::setVisible( bool bVisible )
...
@@ -659,7 +659,7 @@ void ToolbarLayoutManager::setVisible( bool bVisible )
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
pIter
++
)
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
++
pIter
)
{
{
pIter
->
m_bMasterHide
=
!
bVisible
;
pIter
->
m_bMasterHide
=
!
bVisible
;
Window
*
pWindow
=
getWindowFromXUIElement
(
pIter
->
m_xUIElement
);
Window
*
pWindow
=
getWindowFromXUIElement
(
pIter
->
m_xUIElement
);
...
@@ -773,7 +773,7 @@ bool ToolbarLayoutManager::dockAllToolbars()
...
@@ -773,7 +773,7 @@ bool ToolbarLayoutManager::dockAllToolbars()
ReadGuard
aReadLock
(
m_aLock
);
ReadGuard
aReadLock
(
m_aLock
);
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_aType
.
equalsAscii
(
"toolbar"
)
&&
pIter
->
m_xUIElement
.
is
()
&&
if
(
pIter
->
m_aType
.
equalsAscii
(
"toolbar"
)
&&
pIter
->
m_xUIElement
.
is
()
&&
pIter
->
m_bFloating
&&
pIter
->
m_bVisible
)
pIter
->
m_bFloating
&&
pIter
->
m_bVisible
)
...
@@ -820,7 +820,7 @@ long ToolbarLayoutManager::childWindowEvent( VclSimpleEvent* pEvent )
...
@@ -820,7 +820,7 @@ long ToolbarLayoutManager::childWindowEvent( VclSimpleEvent* pEvent )
::
std
::
vector
<
uno
::
Reference
<
ui
::
XUIFunctionListener
>
>
aListenerArray
;
::
std
::
vector
<
uno
::
Reference
<
ui
::
XUIFunctionListener
>
>
aListenerArray
;
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_xUIElement
.
is
()
)
if
(
pIter
->
m_xUIElement
.
is
()
)
{
{
...
@@ -1211,7 +1211,7 @@ void ToolbarLayoutManager::implts_reparentToolbars()
...
@@ -1211,7 +1211,7 @@ void ToolbarLayoutManager::implts_reparentToolbars()
if
(
pContainerWindow
)
if
(
pContainerWindow
)
{
{
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
pIter
++
)
for
(
pIter
=
aUIElementVector
.
begin
();
pIter
!=
aUIElementVector
.
end
();
++
pIter
)
{
{
uno
::
Reference
<
ui
::
XUIElement
>
xUIElement
(
pIter
->
m_xUIElement
);
uno
::
Reference
<
ui
::
XUIElement
>
xUIElement
(
pIter
->
m_xUIElement
);
if
(
xUIElement
.
is
()
)
if
(
xUIElement
.
is
()
)
...
@@ -1796,7 +1796,7 @@ UIElement& ToolbarLayoutManager::impl_findToolbar( const rtl::OUString& aName )
...
@@ -1796,7 +1796,7 @@ UIElement& ToolbarLayoutManager::impl_findToolbar( const rtl::OUString& aName )
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
ReadGuard
aReadLock
(
m_aLock
);
ReadGuard
aReadLock
(
m_aLock
);
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_aName
==
aName
)
if
(
pIter
->
m_aName
==
aName
)
return
*
pIter
;
return
*
pIter
;
...
@@ -1820,7 +1820,7 @@ UIElement ToolbarLayoutManager::implts_findToolbar( const uno::Reference< uno::X
...
@@ -1820,7 +1820,7 @@ UIElement ToolbarLayoutManager::implts_findToolbar( const uno::Reference< uno::X
UIElementVector
::
const_iterator
pIter
;
UIElementVector
::
const_iterator
pIter
;
ReadGuard
aReadLock
(
m_aLock
);
ReadGuard
aReadLock
(
m_aLock
);
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_xUIElement
.
is
()
)
if
(
pIter
->
m_xUIElement
.
is
()
)
{
{
...
@@ -1842,7 +1842,7 @@ uno::Reference< awt::XWindow > ToolbarLayoutManager::implts_getXWindow( const ::
...
@@ -1842,7 +1842,7 @@ uno::Reference< awt::XWindow > ToolbarLayoutManager::implts_getXWindow( const ::
uno
::
Reference
<
awt
::
XWindow
>
xWindow
;
uno
::
Reference
<
awt
::
XWindow
>
xWindow
;
ReadGuard
aReadLock
(
m_aLock
);
ReadGuard
aReadLock
(
m_aLock
);
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_aName
==
aName
&&
pIter
->
m_xUIElement
.
is
()
)
if
(
pIter
->
m_aName
==
aName
&&
pIter
->
m_xUIElement
.
is
()
)
{
{
...
@@ -1932,7 +1932,7 @@ void ToolbarLayoutManager::implts_setToolbar( const UIElement& rUIElement )
...
@@ -1932,7 +1932,7 @@ void ToolbarLayoutManager::implts_setToolbar( const UIElement& rUIElement )
// Try to find a cascaded position for the new floating window
// Try to find a cascaded position for the new floating window
UIElementVector
::
const_iterator
pIter
;
UIElementVector
::
const_iterator
pIter
;
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_xUIElement
.
is
()
)
if
(
pIter
->
m_xUIElement
.
is
()
)
{
{
...
@@ -1971,7 +1971,7 @@ void ToolbarLayoutManager::implts_sortUIElements()
...
@@ -1971,7 +1971,7 @@ void ToolbarLayoutManager::implts_sortUIElements()
// We have to reset our temporary flags.
// We have to reset our temporary flags.
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
pIter
->
m_bUserActive
=
sal_False
;
pIter
->
m_bUserActive
=
sal_False
;
aWriteLock
.
unlock
();
aWriteLock
.
unlock
();
}
}
...
@@ -2015,7 +2015,7 @@ void ToolbarLayoutManager::implts_getDockingAreaElementInfos( ui::DockingArea eD
...
@@ -2015,7 +2015,7 @@ void ToolbarLayoutManager::implts_getDockingAreaElementInfos( ui::DockingArea eD
aWindowVector
.
reserve
(
m_aUIElements
.
size
());
aWindowVector
.
reserve
(
m_aUIElements
.
size
());
xDockAreaWindow
=
m_xDockAreaWindows
[
eDockingArea
];
xDockAreaWindow
=
m_xDockAreaWindows
[
eDockingArea
];
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_aDockedData
.
m_nDockedArea
==
eDockingArea
&&
pIter
->
m_bVisible
&&
!
pIter
->
m_bFloating
)
if
(
pIter
->
m_aDockedData
.
m_nDockedArea
==
eDockingArea
&&
pIter
->
m_bVisible
&&
!
pIter
->
m_bFloating
)
{
{
...
@@ -2199,7 +2199,7 @@ void ToolbarLayoutManager::implts_getDockingAreaElementInfoOnSingleRowCol( ui::D
...
@@ -2199,7 +2199,7 @@ void ToolbarLayoutManager::implts_getDockingAreaElementInfoOnSingleRowCol( ui::D
ReadGuard
aReadLock
(
m_aLock
);
ReadGuard
aReadLock
(
m_aLock
);
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pEnd
=
m_aUIElements
.
end
();
UIElementVector
::
iterator
pEnd
=
m_aUIElements
.
end
();
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
pEnd
;
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
pEnd
;
++
pIter
)
{
{
if
(
pIter
->
m_aDockedData
.
m_nDockedArea
==
eDockingArea
)
if
(
pIter
->
m_aDockedData
.
m_nDockedArea
==
eDockingArea
)
{
{
...
@@ -3270,7 +3270,7 @@ void ToolbarLayoutManager::implts_renumberRowColumnData(
...
@@ -3270,7 +3270,7 @@ void ToolbarLayoutManager::implts_renumberRowColumnData(
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
WriteGuard
aWriteLock
(
m_aLock
);
WriteGuard
aWriteLock
(
m_aLock
);
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
((
pIter
->
m_aDockedData
.
m_nDockedArea
==
sal_Int16
(
eDockingArea
))
&&
(
pIter
->
m_aName
!=
rUIElement
.
m_aName
))
if
((
pIter
->
m_aDockedData
.
m_nDockedArea
==
sal_Int16
(
eDockingArea
))
&&
(
pIter
->
m_aName
!=
rUIElement
.
m_aName
))
{
{
...
@@ -3914,7 +3914,7 @@ throw (uno::RuntimeException)
...
@@ -3914,7 +3914,7 @@ throw (uno::RuntimeException)
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
WriteGuard
aWriteLock
(
m_aLock
);
WriteGuard
aWriteLock
(
m_aLock
);
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
uno
::
Reference
<
ui
::
XUIElement
>
xUIElement
(
pIter
->
m_xUIElement
);
uno
::
Reference
<
ui
::
XUIElement
>
xUIElement
(
pIter
->
m_xUIElement
);
if
(
xUIElement
.
is
()
)
if
(
xUIElement
.
is
()
)
...
@@ -4108,7 +4108,7 @@ uno::Sequence< uno::Reference< ui::XUIElement > > ToolbarLayoutManager::getToolb
...
@@ -4108,7 +4108,7 @@ uno::Sequence< uno::Reference< ui::XUIElement > > ToolbarLayoutManager::getToolb
{
{
sal_uInt32
nCount
(
0
);
sal_uInt32
nCount
(
0
);
UIElementVector
::
iterator
pIter
;
UIElementVector
::
iterator
pIter
;
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
pIter
++
)
for
(
pIter
=
m_aUIElements
.
begin
();
pIter
!=
m_aUIElements
.
end
();
++
pIter
)
{
{
if
(
pIter
->
m_xUIElement
.
is
()
)
if
(
pIter
->
m_xUIElement
.
is
()
)
{
{
...
...
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