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
96febd38
Kaydet (Commit)
96febd38
authored
Eki 30, 2016
tarafından
Maxim Monastirsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add resource name method to IContextMenuProvider
Change-Id: I218fd18101f8f7039052fe8a065096e4c9809adb
üst
d1dd9269
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
2 deletions
+21
-2
AppController.cxx
dbaccess/source/ui/app/AppController.cxx
+6
-1
AppController.hxx
dbaccess/source/ui/app/AppController.hxx
+1
-0
unodatbr.cxx
dbaccess/source/ui/browser/unodatbr.cxx
+5
-0
callbacks.hxx
dbaccess/source/ui/inc/callbacks.hxx
+8
-0
dbu_resource.hrc
dbaccess/source/ui/inc/dbu_resource.hrc
+0
-1
unodatbr.hxx
dbaccess/source/ui/inc/unodatbr.hxx
+1
-0
No files found.
dbaccess/source/ui/app/AppController.cxx
Dosyayı görüntüle @
96febd38
...
...
@@ -2281,9 +2281,14 @@ void OApplicationController::onDeleteEntry()
executeChecked
(
nId
,
Sequence
<
PropertyValue
>
());
}
OUString
OApplicationController
::
getContextMenuResourceName
(
Control
&
/*_rControl*/
)
const
{
return
OUString
(
"edit"
);
}
VclPtr
<
PopupMenu
>
OApplicationController
::
getContextMenu
(
Control
&
/*_rControl*/
)
const
{
return
VclPtr
<
PopupMenu
>::
Create
(
ModuleRes
(
RID_MENU_APP_EDIT
)
)
;
return
nullptr
;
}
IController
&
OApplicationController
::
getCommandController
()
...
...
dbaccess/source/ui/app/AppController.hxx
Dosyayı görüntüle @
96febd38
...
...
@@ -521,6 +521,7 @@ namespace dbaui
virtual
sal_Int8
executeDrop
(
const
ExecuteDropEvent
&
_rEvt
)
override
;
// IContextMenuProvider
virtual
OUString
getContextMenuResourceName
(
Control
&
_rControl
)
const
override
;
virtual
VclPtr
<
PopupMenu
>
getContextMenu
(
Control
&
_rControl
)
const
override
;
virtual
IController
&
getCommandController
()
override
;
virtual
::
comphelper
::
OInterfaceContainerHelper2
*
...
...
dbaccess/source/ui/browser/unodatbr.cxx
Dosyayı görüntüle @
96febd38
...
...
@@ -3469,6 +3469,11 @@ bool SbaTableQueryBrowser::requestQuickHelp( const SvTreeListEntry* _pEntry, OUS
return
false
;
}
OUString
SbaTableQueryBrowser
::
getContextMenuResourceName
(
Control
&
)
const
{
return
OUString
();
}
VclPtr
<
PopupMenu
>
SbaTableQueryBrowser
::
getContextMenu
(
Control
&
_rControl
)
const
{
OSL_PRECOND
(
&
m_pTreeView
->
getListBox
()
==
&
_rControl
,
...
...
dbaccess/source/ui/inc/callbacks.hxx
Dosyayı görüntüle @
96febd38
...
...
@@ -68,6 +68,14 @@ namespace dbaui
class
SAL_NO_VTABLE
IContextMenuProvider
{
public
:
/** returns the context menu resource name for the control
Supposed to be a valid name from uiconfig/<module>/popupmenu folder.
Nevertheless, the getContextMenu method will not be evaluated, as long
as this method returns non-empty string.
*/
virtual
OUString
getContextMenuResourceName
(
Control
&
_rControl
)
const
=
0
;
/** returns the context menu for the control
Note that the menu does not need to care for the controls selection, or its
...
...
dbaccess/source/ui/inc/dbu_resource.hrc
Dosyayı görüntüle @
96febd38
...
...
@@ -133,7 +133,6 @@
#define RID_QUERYFUNCTION_POPUPMENU RID_MENU_START + 6
#define RID_TABLEDESIGNROWPOPUPMENU RID_MENU_START + 7
#define RID_SBA_RTF_PKEYPOPUP RID_MENU_START + 9
#define RID_MENU_APP_EDIT RID_MENU_START + 10
#define RID_MENU_APP_PREVIEW RID_MENU_START + 12
#define MENU_BROWSER_DEFAULTCONTEXT RID_MENU_START + 14
#define RID_MENU_JOINVIEW_CONNECTION RID_MENU_START + 16
...
...
dbaccess/source/ui/inc/unodatbr.hxx
Dosyayı görüntüle @
96febd38
...
...
@@ -230,6 +230,7 @@ namespace dbaui
virtual
sal_Int8
executeDrop
(
const
ExecuteDropEvent
&
_rEvt
)
override
;
// IContextMenuProvider
virtual
OUString
getContextMenuResourceName
(
Control
&
_rControl
)
const
override
;
virtual
VclPtr
<
PopupMenu
>
getContextMenu
(
Control
&
_rControl
)
const
override
;
virtual
IController
&
getCommandController
()
override
;
virtual
::
comphelper
::
OInterfaceContainerHelper2
*
...
...
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