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
6ae314ec
Kaydet (Commit)
6ae314ec
authored
Nis 11, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bin pointless "added by shizhoubo" style comments
üst
3bc628b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
23 deletions
+12
-23
toolbarmanager.hxx
framework/inc/uielement/toolbarmanager.hxx
+2
-5
toolbarmanager.cxx
framework/source/uielement/toolbarmanager.cxx
+10
-18
No files found.
framework/inc/uielement/toolbarmanager.hxx
Dosyayı görüntüle @
6ae314ec
...
@@ -61,9 +61,8 @@
...
@@ -61,9 +61,8 @@
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/ui/XAcceleratorConfiguration.hpp>
#include <com/sun/star/ui/XAcceleratorConfiguration.hpp>
//shizhoubo
#include <com/sun/star/frame/XToolbarController.hpp>
#include <com/sun/star/frame/XToolbarController.hpp>
//end
//_________________________________________________________________________________________________________________
//_________________________________________________________________________________________________________________
// other includes
// other includes
//_________________________________________________________________________________________________________________
//_________________________________________________________________________________________________________________
...
@@ -161,10 +160,8 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
...
@@ -161,10 +160,8 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
typedef
std
::
vector
<
ControllerParams
>
ControllerParamsVector
;
typedef
std
::
vector
<
ControllerParams
>
ControllerParamsVector
;
protected
:
protected
:
//added for 33668 by shizhoubo : 2008:04
DECL_LINK
(
Command
,
CommandEvent
*
);
DECL_LINK
(
Command
,
CommandEvent
*
);
PopupMenu
*
GetToolBarCustomMenu
(
ToolBox
*
pToolBar
);
PopupMenu
*
GetToolBarCustomMenu
(
ToolBox
*
pToolBar
);
//end
DECL_LINK
(
Click
,
void
*
);
DECL_LINK
(
Click
,
void
*
);
DECL_LINK
(
DropdownClick
,
void
*
);
DECL_LINK
(
DropdownClick
,
void
*
);
DECL_LINK
(
DoubleClick
,
void
*
);
DECL_LINK
(
DoubleClick
,
void
*
);
...
@@ -188,7 +185,7 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
...
@@ -188,7 +185,7 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>
GetPropsForCommand
(
const
::
rtl
::
OUString
&
rCmdURL
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
beans
::
PropertyValue
>
GetPropsForCommand
(
const
::
rtl
::
OUString
&
rCmdURL
);
void
CreateControllers
();
void
CreateControllers
();
void
UpdateControllers
();
void
UpdateControllers
();
//for update controller via Support Visiable
by shizhoubo
//for update controller via Support Visiable
void
UpdateController
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XToolbarController
>
xController
);
void
UpdateController
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XToolbarController
>
xController
);
//end
//end
void
AddFrameActionListener
();
void
AddFrameActionListener
();
...
...
framework/source/uielement/toolbarmanager.cxx
Dosyayı görüntüle @
6ae314ec
...
@@ -283,9 +283,8 @@ ToolBarManager::ToolBarManager( const Reference< XMultiServiceFactory >& rServic
...
@@ -283,9 +283,8 @@ ToolBarManager::ToolBarManager( const Reference< XMultiServiceFactory >& rServic
sal_uInt16
nMenuType
=
TOOLBOX_MENUTYPE_CLIPPEDITEMS
;
sal_uInt16
nMenuType
=
TOOLBOX_MENUTYPE_CLIPPEDITEMS
;
if
(
!
aCmdOptions
.
Lookup
(
SvtCommandOptions
::
CMDOPTION_DISABLED
,
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"CreateDialog"
))))
if
(
!
aCmdOptions
.
Lookup
(
SvtCommandOptions
::
CMDOPTION_DISABLED
,
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"CreateDialog"
))))
nMenuType
|=
TOOLBOX_MENUTYPE_CUSTOMIZE
;
nMenuType
|=
TOOLBOX_MENUTYPE_CUSTOMIZE
;
//added for issue33668 by shizhoubo
m_pToolBar
->
SetCommandHdl
(
LINK
(
this
,
ToolBarManager
,
Command
)
);
m_pToolBar
->
SetCommandHdl
(
LINK
(
this
,
ToolBarManager
,
Command
)
);
//end
m_pToolBar
->
SetMenuType
(
nMenuType
);
m_pToolBar
->
SetMenuType
(
nMenuType
);
m_pToolBar
->
SetMenuButtonHdl
(
LINK
(
this
,
ToolBarManager
,
MenuButton
)
);
m_pToolBar
->
SetMenuButtonHdl
(
LINK
(
this
,
ToolBarManager
,
MenuButton
)
);
m_pToolBar
->
GetMenu
()
->
SetSelectHdl
(
LINK
(
this
,
ToolBarManager
,
MenuSelect
)
);
m_pToolBar
->
GetMenu
()
->
SetSelectHdl
(
LINK
(
this
,
ToolBarManager
,
MenuSelect
)
);
...
@@ -507,7 +506,8 @@ void ToolBarManager::UpdateControllers()
...
@@ -507,7 +506,8 @@ void ToolBarManager::UpdateControllers()
}
}
m_bUpdateControllers
=
sal_False
;
m_bUpdateControllers
=
sal_False
;
}
}
//for update toolbar controller via Support Visible by shizhoubo
//for update toolbar controller via Support Visible
void
ToolBarManager
::
UpdateController
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XToolbarController
>
xController
)
void
ToolBarManager
::
UpdateController
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XToolbarController
>
xController
)
{
{
RTL_LOGFILE_CONTEXT
(
aLog
,
"framework (cd100003) ::ToolBarManager::UpdateControllers"
);
RTL_LOGFILE_CONTEXT
(
aLog
,
"framework (cd100003) ::ToolBarManager::UpdateControllers"
);
...
@@ -531,7 +531,7 @@ void ToolBarManager::UpdateController( ::com::sun::star::uno::Reference< ::com::
...
@@ -531,7 +531,7 @@ void ToolBarManager::UpdateController( ::com::sun::star::uno::Reference< ::com::
}
}
m_bUpdateControllers
=
sal_False
;
m_bUpdateControllers
=
sal_False
;
}
}
//end
void
ToolBarManager
::
frameAction
(
const
FrameActionEvent
&
Action
)
void
ToolBarManager
::
frameAction
(
const
FrameActionEvent
&
Action
)
throw
(
RuntimeException
)
throw
(
RuntimeException
)
{
{
...
@@ -1086,7 +1086,7 @@ void ToolBarManager::CreateControllers()
...
@@ -1086,7 +1086,7 @@ void ToolBarManager::CreateControllers()
Sequence
<
Any
>
aArgs
(
comphelper
::
containerToSequence
(
aPropertyVector
));
Sequence
<
Any
>
aArgs
(
comphelper
::
containerToSequence
(
aPropertyVector
));
xInit
->
initialize
(
aArgs
);
xInit
->
initialize
(
aArgs
);
//for Support Visiblitly by shizhoubo
if
(
pController
)
if
(
pController
)
{
{
if
(
aCommandURL
==
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
".uno:SwitchXFormsDesignMode"
))
||
if
(
aCommandURL
==
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
".uno:SwitchXFormsDesignMode"
))
||
...
@@ -1096,8 +1096,6 @@ void ToolBarManager::CreateControllers()
...
@@ -1096,8 +1096,6 @@ void ToolBarManager::CreateControllers()
)
)
pController
->
setFastPropertyValue_NoBroadcast
(
1
,
makeAny
(
sal_True
));
pController
->
setFastPropertyValue_NoBroadcast
(
1
,
makeAny
(
sal_True
));
}
}
//end
}
}
// Request a item window from the toolbar controller and set it at the VCL toolbar
// Request a item window from the toolbar controller and set it at the VCL toolbar
...
@@ -1118,7 +1116,8 @@ void ToolBarManager::CreateControllers()
...
@@ -1118,7 +1116,8 @@ void ToolBarManager::CreateControllers()
}
}
}
}
}
}
//for update Controller via support visiable state by shizhoubo
//for update Controller via support visiable state
Reference
<
XPropertySet
>
xPropSet
(
xController
,
UNO_QUERY
);
Reference
<
XPropertySet
>
xPropSet
(
xController
,
UNO_QUERY
);
if
(
xPropSet
.
is
()
)
if
(
xPropSet
.
is
()
)
{
{
...
@@ -1141,8 +1140,6 @@ void ToolBarManager::CreateControllers()
...
@@ -1141,8 +1140,6 @@ void ToolBarManager::CreateControllers()
{
{
}
}
}
}
//end
}
}
AddFrameActionListener
();
AddFrameActionListener
();
...
@@ -1724,7 +1721,6 @@ bool ToolBarManager::MenuItemAllowed( sal_uInt16 ) const
...
@@ -1724,7 +1721,6 @@ bool ToolBarManager::MenuItemAllowed( sal_uInt16 ) const
return
true
;
return
true
;
}
}
//added for i33668 by shizhoubo : 200804
PopupMenu
*
ToolBarManager
::
GetToolBarCustomMenu
(
ToolBox
*
pToolBar
)
PopupMenu
*
ToolBarManager
::
GetToolBarCustomMenu
(
ToolBox
*
pToolBar
)
{
{
// update the list of hidden tool items first
// update the list of hidden tool items first
...
@@ -1783,10 +1779,8 @@ PopupMenu * ToolBarManager::GetToolBarCustomMenu(ToolBox* pToolBar)
...
@@ -1783,10 +1779,8 @@ PopupMenu * ToolBarManager::GetToolBarCustomMenu(ToolBox* pToolBar)
}
}
// Disable menu item CLOSE if the toolbar has no closer
// Disable menu item CLOSE if the toolbar has no closer
//added for issue64028 by shizhoubo
if
(
!
(
pToolBar
->
GetFloatStyle
()
&
WB_CLOSEABLE
)
)
if
(
!
(
pToolBar
->
GetFloatStyle
()
&
WB_CLOSEABLE
)
)
aPopupMenu
.
EnableItem
(
MENUITEM_TOOLBAR_CLOSE
,
sal_False
);
aPopupMenu
.
EnableItem
(
MENUITEM_TOOLBAR_CLOSE
,
sal_False
);
//end
pItemMenu
->
SetMenuFlags
(
pItemMenu
->
GetMenuFlags
()
|
pItemMenu
->
SetMenuFlags
(
pItemMenu
->
GetMenuFlags
()
|
MENU_FLAG_SHOWCHECKIMAGES
);
MENU_FLAG_SHOWCHECKIMAGES
);
...
@@ -1850,7 +1844,6 @@ PopupMenu * ToolBarManager::GetToolBarCustomMenu(ToolBox* pToolBar)
...
@@ -1850,7 +1844,6 @@ PopupMenu * ToolBarManager::GetToolBarCustomMenu(ToolBox* pToolBar)
return
pMenu
;
return
pMenu
;
}
}
// addd for 33668 by shizhoubo
IMPL_LINK
(
ToolBarManager
,
Command
,
CommandEvent
*
,
pCmdEvt
)
IMPL_LINK
(
ToolBarManager
,
Command
,
CommandEvent
*
,
pCmdEvt
)
{
{
ResetableGuard
aGuard
(
m_aLock
);
ResetableGuard
aGuard
(
m_aLock
);
...
@@ -1871,7 +1864,6 @@ IMPL_LINK( ToolBarManager, Command, CommandEvent*, pCmdEvt )
...
@@ -1871,7 +1864,6 @@ IMPL_LINK( ToolBarManager, Command, CommandEvent*, pCmdEvt )
return
0
;
return
0
;
}
}
//end
IMPL_LINK
(
ToolBarManager
,
MenuButton
,
ToolBox
*
,
pToolBar
)
IMPL_LINK
(
ToolBarManager
,
MenuButton
,
ToolBox
*
,
pToolBar
)
{
{
...
@@ -1879,7 +1871,7 @@ IMPL_LINK( ToolBarManager, MenuButton, ToolBox*, pToolBar )
...
@@ -1879,7 +1871,7 @@ IMPL_LINK( ToolBarManager, MenuButton, ToolBox*, pToolBar )
if
(
m_bDisposed
)
if
(
m_bDisposed
)
return
1
;
return
1
;
//modify for i33668 by shizhoubo:2008:04
PopupMenu
*
pMenu
=
GetToolBarCustomMenu
(
pToolBar
);
PopupMenu
*
pMenu
=
GetToolBarCustomMenu
(
pToolBar
);
if
(
pMenu
)
if
(
pMenu
)
{
{
...
@@ -1899,8 +1891,8 @@ IMPL_LINK( ToolBarManager, MenuButton, ToolBox*, pToolBar )
...
@@ -1899,8 +1891,8 @@ IMPL_LINK( ToolBarManager, MenuButton, ToolBox*, pToolBar )
pMenu
->
RemoveItem
(
positionInMenu
);
pMenu
->
RemoveItem
(
positionInMenu
);
}
}
}
}
//end
return
0
;
return
0
;
}
}
IMPL_LINK
(
ToolBarManager
,
MenuSelect
,
Menu
*
,
pMenu
)
IMPL_LINK
(
ToolBarManager
,
MenuSelect
,
Menu
*
,
pMenu
)
...
...
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