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
e124cd52
Kaydet (Commit)
e124cd52
authored
Eyl 29, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
XFrame parameter to SetMenuBar() is actually never used.
Change-Id: I9413f575c0964d6cbf8a32d0b85c9f2c686bb8fc
üst
d355207b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
11 deletions
+13
-11
layoutmanager.cxx
framework/source/layoutmanager/layoutmanager.cxx
+5
-5
menu.hxx
include/vcl/menu.hxx
+1
-2
syswin.hxx
include/vcl/syswin.hxx
+1
-1
menu.cxx
vcl/source/window/menu.cxx
+1
-1
syswin.cxx
vcl/source/window/syswin.cxx
+5
-2
No files found.
framework/source/layoutmanager/layoutmanager.cxx
Dosyayı görüntüle @
e124cd52
...
@@ -782,7 +782,7 @@ void LayoutManager::implts_updateUIElementsVisibleState( bool bSetVisible )
...
@@ -782,7 +782,7 @@ void LayoutManager::implts_updateUIElementsVisibleState( bool bSetVisible )
if
(
pSysWindow
)
if
(
pSysWindow
)
{
{
if
(
bSetVisible
)
if
(
bSetVisible
)
pSysWindow
->
SetMenuBar
(
pMenuBar
,
m_xFrame
);
pSysWindow
->
SetMenuBar
(
pMenuBar
);
else
else
pSysWindow
->
SetMenuBar
(
0
);
pSysWindow
->
SetMenuBar
(
0
);
}
}
...
@@ -1166,7 +1166,7 @@ throw (uno::RuntimeException, std::exception)
...
@@ -1166,7 +1166,7 @@ throw (uno::RuntimeException, std::exception)
SystemWindow
*
pSysWindow
=
getTopSystemWindow
(
m_xContainerWindow
);
SystemWindow
*
pSysWindow
=
getTopSystemWindow
(
m_xContainerWindow
);
if
(
pSysWindow
)
if
(
pSysWindow
)
pSysWindow
->
SetMenuBar
(
pMenuBar
,
m_xFrame
);
pSysWindow
->
SetMenuBar
(
pMenuBar
);
m_bInplaceMenuSet
=
true
;
m_bInplaceMenuSet
=
true
;
m_xInplaceMenuBar
=
Reference
<
XComponent
>
(
static_cast
<
OWeakObject
*>
(
m_pInplaceMenuBar
),
UNO_QUERY
);
m_xInplaceMenuBar
=
Reference
<
XComponent
>
(
static_cast
<
OWeakObject
*>
(
m_pInplaceMenuBar
),
UNO_QUERY
);
...
@@ -1193,7 +1193,7 @@ throw (uno::RuntimeException)
...
@@ -1193,7 +1193,7 @@ throw (uno::RuntimeException)
if
(
pSysWindow
)
if
(
pSysWindow
)
{
{
if
(
pMenuBarWrapper
)
if
(
pMenuBarWrapper
)
pSysWindow
->
SetMenuBar
(
static_cast
<
MenuBar
*>
(
pMenuBarWrapper
->
GetMenuBarManager
()
->
GetMenuBar
())
,
m_xFrame
);
pSysWindow
->
SetMenuBar
(
static_cast
<
MenuBar
*>
(
pMenuBarWrapper
->
GetMenuBarManager
()
->
GetMenuBar
()));
else
else
pSysWindow
->
SetMenuBar
(
0
);
pSysWindow
->
SetMenuBar
(
0
);
}
}
...
@@ -1494,7 +1494,7 @@ throw (RuntimeException, std::exception)
...
@@ -1494,7 +1494,7 @@ throw (RuntimeException, std::exception)
MenuBar
*
pMenuBar
=
static_cast
<
MenuBar
*>
(
pAwtMenuBar
->
GetMenu
());
MenuBar
*
pMenuBar
=
static_cast
<
MenuBar
*>
(
pAwtMenuBar
->
GetMenu
());
if
(
pMenuBar
)
if
(
pMenuBar
)
{
{
pSysWindow
->
SetMenuBar
(
pMenuBar
,
m_xFrame
);
pSysWindow
->
SetMenuBar
(
pMenuBar
);
pMenuBar
->
SetDisplayable
(
m_bMenuVisible
);
pMenuBar
->
SetDisplayable
(
m_bMenuVisible
);
if
(
m_bMenuVisible
)
if
(
m_bMenuVisible
)
bNotify
=
true
;
bNotify
=
true
;
...
@@ -2580,7 +2580,7 @@ bool LayoutManager::implts_resetMenuBar()
...
@@ -2580,7 +2580,7 @@ bool LayoutManager::implts_resetMenuBar()
SystemWindow
*
pSysWindow
=
getTopSystemWindow
(
xContainerWindow
);
SystemWindow
*
pSysWindow
=
getTopSystemWindow
(
xContainerWindow
);
if
(
pSysWindow
&&
bMenuVisible
&&
pSetMenuBar
)
if
(
pSysWindow
&&
bMenuVisible
&&
pSetMenuBar
)
{
{
pSysWindow
->
SetMenuBar
(
pSetMenuBar
,
m_xFrame
);
pSysWindow
->
SetMenuBar
(
pSetMenuBar
);
pSetMenuBar
->
SetDisplayable
(
true
);
pSetMenuBar
->
SetDisplayable
(
true
);
return
true
;
return
true
;
}
}
...
...
include/vcl/menu.hxx
Dosyayı görüntüle @
e124cd52
...
@@ -423,8 +423,7 @@ class VCL_DLLPUBLIC MenuBar : public Menu
...
@@ -423,8 +423,7 @@ class VCL_DLLPUBLIC MenuBar : public Menu
friend
class
MenuFloatingWindow
;
friend
class
MenuFloatingWindow
;
friend
class
SystemWindow
;
friend
class
SystemWindow
;
SAL_DLLPRIVATE
static
vcl
::
Window
*
ImplCreate
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pWindow
,
SAL_DLLPRIVATE
static
vcl
::
Window
*
ImplCreate
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pWindow
,
MenuBar
*
pMenu
);
MenuBar
*
pMenu
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
&
rFrame
);
SAL_DLLPRIVATE
static
void
ImplDestroy
(
MenuBar
*
pMenu
,
bool
bDelete
);
SAL_DLLPRIVATE
static
void
ImplDestroy
(
MenuBar
*
pMenu
,
bool
bDelete
);
SAL_DLLPRIVATE
bool
ImplHandleKeyEvent
(
const
KeyEvent
&
rKEvent
,
bool
bFromMenu
=
true
);
SAL_DLLPRIVATE
bool
ImplHandleKeyEvent
(
const
KeyEvent
&
rKEvent
,
bool
bFromMenu
=
true
);
SAL_DLLPRIVATE
bool
ImplHandleCmdEvent
(
const
CommandEvent
&
rCEvent
);
SAL_DLLPRIVATE
bool
ImplHandleCmdEvent
(
const
CommandEvent
&
rCEvent
);
...
...
include/vcl/syswin.hxx
Dosyayı görüntüle @
e124cd52
...
@@ -233,7 +233,7 @@ public:
...
@@ -233,7 +233,7 @@ public:
void
SetWindowState
(
const
OString
&
rStr
);
void
SetWindowState
(
const
OString
&
rStr
);
OString
GetWindowState
(
sal_uInt32
nMask
=
WINDOWSTATE_MASK_ALL
)
const
;
OString
GetWindowState
(
sal_uInt32
nMask
=
WINDOWSTATE_MASK_ALL
)
const
;
void
SetMenuBar
(
MenuBar
*
pMenuBar
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rFrame
=
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
()
);
void
SetMenuBar
(
MenuBar
*
pMenuBar
);
MenuBar
*
GetMenuBar
()
const
{
return
mpMenuBar
;
}
MenuBar
*
GetMenuBar
()
const
{
return
mpMenuBar
;
}
void
SetMenuBarMode
(
MenuBarMode
nMode
);
void
SetMenuBarMode
(
MenuBarMode
nMode
);
...
...
vcl/source/window/menu.cxx
Dosyayı görüntüle @
e124cd52
...
@@ -2549,7 +2549,7 @@ void MenuBar::SetDisplayable( bool bDisplayable )
...
@@ -2549,7 +2549,7 @@ void MenuBar::SetDisplayable( bool bDisplayable )
}
}
}
}
vcl
::
Window
*
MenuBar
::
ImplCreate
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pWindow
,
MenuBar
*
pMenu
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
&
/*rFrame*/
)
vcl
::
Window
*
MenuBar
::
ImplCreate
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pWindow
,
MenuBar
*
pMenu
)
{
{
MenuBarWindow
*
pMenuBarWindow
=
dynamic_cast
<
MenuBarWindow
*>
(
pWindow
);
MenuBarWindow
*
pMenuBarWindow
=
dynamic_cast
<
MenuBarWindow
*>
(
pWindow
);
if
(
!
pMenuBarWindow
)
if
(
!
pMenuBarWindow
)
...
...
vcl/source/window/syswin.cxx
Dosyayı görüntüle @
e124cd52
...
@@ -902,7 +902,7 @@ OString SystemWindow::GetWindowState( sal_uInt32 nMask ) const
...
@@ -902,7 +902,7 @@ OString SystemWindow::GetWindowState( sal_uInt32 nMask ) const
return
ImplWindowStateToStr
(
aData
);
return
ImplWindowStateToStr
(
aData
);
}
}
void
SystemWindow
::
SetMenuBar
(
MenuBar
*
pMenuBar
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rFrame
)
void
SystemWindow
::
SetMenuBar
(
MenuBar
*
pMenuBar
)
{
{
if
(
mpMenuBar
!=
pMenuBar
)
if
(
mpMenuBar
!=
pMenuBar
)
{
{
...
@@ -925,7 +925,10 @@ void SystemWindow::SetMenuBar(MenuBar* pMenuBar, const css::uno::Reference<css::
...
@@ -925,7 +925,10 @@ void SystemWindow::SetMenuBar(MenuBar* pMenuBar, const css::uno::Reference<css::
if
(
pMenuBar
)
if
(
pMenuBar
)
{
{
DBG_ASSERT
(
!
pMenuBar
->
pWindow
,
"SystemWindow::SetMenuBar() - MenuBars can only set in one SystemWindow at time"
);
DBG_ASSERT
(
!
pMenuBar
->
pWindow
,
"SystemWindow::SetMenuBar() - MenuBars can only set in one SystemWindow at time"
);
static_cast
<
ImplBorderWindow
*>
(
mpWindowImpl
->
mpBorderWindow
.
get
())
->
SetMenuBarWindow
(
pNewWindow
=
MenuBar
::
ImplCreate
(
mpWindowImpl
->
mpBorderWindow
,
pOldWindow
,
pMenuBar
,
rFrame
));
pNewWindow
=
MenuBar
::
ImplCreate
(
mpWindowImpl
->
mpBorderWindow
,
pOldWindow
,
pMenuBar
);
static_cast
<
ImplBorderWindow
*>
(
mpWindowImpl
->
mpBorderWindow
.
get
())
->
SetMenuBarWindow
(
pNewWindow
);
CallEventListeners
(
VCLEVENT_WINDOW_MENUBARADDED
,
static_cast
<
void
*>
(
pMenuBar
)
);
CallEventListeners
(
VCLEVENT_WINDOW_MENUBARADDED
,
static_cast
<
void
*>
(
pMenuBar
)
);
}
}
else
else
...
...
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