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
7d8bdf84
Kaydet (Commit)
7d8bdf84
authored
Nis 18, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up framework/inc/dispatchcommands.h
Change-Id: I6a9a8ae34c2f5abafd4192287fb12d4289a761ff
üst
80df81c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
dispatchprovider.cxx
framework/source/dispatch/dispatchprovider.cxx
+2
-7
isstartmoduledispatch.hxx
framework/source/dispatch/isstartmoduledispatch.hxx
+8
-7
startmoduledispatcher.cxx
framework/source/dispatch/startmoduledispatcher.cxx
+2
-2
No files found.
framework/source/dispatch/dispatchprovider.cxx
Dosyayı görüntüle @
7d8bdf84
...
...
@@ -26,11 +26,11 @@
#include <pattern/window.hxx>
#include <threadhelp/transactionguard.hxx>
#include <dispatchcommands.h>
#include <protocols.h>
#include <services.h>
#include <targets.h>
#include <general.h>
#include <isstartmoduledispatch.hxx>
#include <com/sun/star/frame/XDesktop.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
...
...
@@ -146,11 +146,6 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Disp
return
lDispatcher
;
}
bool
lcl_isStartModuleDispatch
(
const
css
::
util
::
URL
&
aURL
)
{
return
aURL
.
Complete
==
CMD_UNO_SHOWSTARTMODULE
;
}
/**
@short helper for queryDispatch()
@descr Every member of the frame tree (frame, desktop) must handle such request
...
...
@@ -197,7 +192,7 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryDeskt
if
(
implts_isLoadableContent
(
aURL
))
xDispatcher
=
implts_getOrCreateDispatchHelper
(
E_DEFAULTDISPATCHER
,
xDesktop
);
if
(
lcl_
isStartModuleDispatch
(
aURL
))
if
(
isStartModuleDispatch
(
aURL
))
xDispatcher
=
implts_getOrCreateDispatchHelper
(
E_STARTMODULEDISPATCHER
,
xDesktop
);
}
...
...
framework/
inc/dispatchcommands.h
→
framework/
source/dispatch/isstartmoduledispatch.hxx
Dosyayı görüntüle @
7d8bdf84
...
...
@@ -17,16 +17,17 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_FRAMEWORK_
INC_DISPATCHCOMMANDS_H
#define INCLUDED_FRAMEWORK_
INC_DISPATCHCOMMANDS_H
#ifndef INCLUDED_FRAMEWORK_
SOURCE_DISPATCH_ISSTARTMODULEDISPATCH_HXX
#define INCLUDED_FRAMEWORK_
SOURCE_DISPATCH_ISSTARTMODULEDISPATCH_HXX
namespace
framework
{
namespace
framework
{
inline
bool
isStartModuleDispatch
(
css
::
util
::
URL
const
&
url
)
{
return
url
.
Complete
==
".uno:ShowStartModule"
;
}
#define CMD_UNO_SHOWSTARTMODULE ".uno:ShowStartModule"
}
}
// namespace framework
#endif // INCLUDED_FRAMEWORK_INC_DISPATCHCOMMANDS_H
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
framework/source/dispatch/startmoduledispatcher.cxx
Dosyayı görüntüle @
7d8bdf84
...
...
@@ -21,10 +21,10 @@
#include <pattern/frame.hxx>
#include <framework/framelistanalyzer.hxx>
#include <dispatchcommands.h>
#include <targets.h>
#include <services.h>
#include <general.h>
#include <isstartmoduledispatch.hxx>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XController.hpp>
...
...
@@ -70,7 +70,7 @@ void SAL_CALL StartModuleDispatcher::dispatchWithNotification(const css::util::U
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
::
sal_Int16
nResult
=
css
::
frame
::
DispatchResultState
::
DONTKNOW
;
if
(
aURL
.
Complete
==
CMD_UNO_SHOWSTARTMODULE
)
if
(
isStartModuleDispatch
(
aURL
)
)
{
nResult
=
css
::
frame
::
DispatchResultState
::
FAILURE
;
if
(
implts_isBackingModePossible
())
...
...
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