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
f789715a
Kaydet (Commit)
f789715a
authored
Agu 23, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Stephan Bergmann
Agu 27, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, Use factory methods for frame::DispatchHelper instances
Change-Id: I7bdf16fc6d042e5ecd404c604a8b7c31c1ac7bc1
üst
65c78617
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
46 deletions
+19
-46
ChartController_Window.cxx
chart2/source/controller/main/ChartController_Window.cxx
+2
-7
so_instance.cxx
extensions/source/nsplugin/source/so_instance.cxx
+2
-8
FrameHelper.cxx
framework/source/lomenubar/FrameHelper.cxx
+2
-3
basmethnode.cxx
scripting/source/basprov/basmethnode.cxx
+2
-6
appserv.cxx
sfx2/source/appl/appserv.cxx
+5
-11
docsh2.cxx
sw/source/ui/app/docsh2.cxx
+6
-11
No files found.
chart2/source/controller/main/ChartController_Window.cxx
Dosyayı görüntüle @
f789715a
...
...
@@ -51,7 +51,7 @@
#include <com/sun/star/chart2/RelativeSize.hpp>
#include <com/sun/star/chart2/XRegressionCurveContainer.hpp>
#include <com/sun/star/frame/
X
DispatchHelper.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include <com/sun/star/util/XUpdatable.hpp>
#include <comphelper/InlineContainer.hxx>
...
...
@@ -1550,11 +1550,7 @@ bool ChartController::execute_KeyInput( const KeyEvent& rKEvt )
if
(
!
bReturn
&&
nCode
==
KEY_ESCAPE
)
{
uno
::
Reference
<
frame
::
XDispatchHelper
>
xDispatchHelper
(
m_xCC
->
getServiceManager
()
->
createInstanceWithContext
(
C2U
(
"com.sun.star.frame.DispatchHelper"
),
m_xCC
),
uno
::
UNO_QUERY
);
if
(
xDispatchHelper
.
is
())
{
uno
::
Reference
<
frame
::
XDispatchHelper
>
xDispatchHelper
(
frame
::
DispatchHelper
::
create
(
m_xCC
)
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aArgs
;
xDispatchHelper
->
executeDispatch
(
uno
::
Reference
<
frame
::
XDispatchProvider
>
(
m_xFrame
,
uno
::
UNO_QUERY
),
...
...
@@ -1564,7 +1560,6 @@ bool ChartController::execute_KeyInput( const KeyEvent& rKEvt )
aArgs
);
bReturn
=
true
;
}
}
if
(
!
bReturn
&&
(
nCode
==
KEY_DELETE
||
nCode
==
KEY_BACKSPACE
))
...
...
extensions/source/nsplugin/source/so_instance.cxx
Dosyayı görüntüle @
f789715a
...
...
@@ -28,6 +28,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>
#include <com/sun/star/frame/XDispatchProviderInterception.hpp>
#include <com/sun/star/lang/SystemDependent.hpp>
#include <com/sun/star/awt/XSystemChildFactory.hpp>
...
...
@@ -299,14 +300,7 @@ sal_Bool SoPluginInstance::LoadDocument(NSP_HWND hParent)
debug_fprintf
(
NSP_LOG_APPEND
,
"load document success
\n
"
);
// create frame::XDispatchHelper and frame::XDispatchProvider
m_xDispatcher
=
Reference
<
frame
::
XDispatchHelper
>
(
mxRemoteMSF
->
createInstance
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.frame.DispatchHelper"
))),
uno
::
UNO_QUERY
);
if
(
!
m_xDispatcher
.
is
())
{
debug_fprintf
(
NSP_LOG_APPEND
,
"m_xDispatcher can not be getten
\n
"
);
return
sal_False
;
}
m_xDispatcher
=
Reference
<
frame
::
XDispatchHelper
>
(
frame
::
DispatchHelper
::
create
(
xContext
)
);
m_xDispatchProvider
=
Reference
<
frame
::
XDispatchProvider
>
(
m_xFrame
,
uno
::
UNO_QUERY
);
if
(
!
m_xDispatchProvider
.
is
())
{
...
...
framework/source/lomenubar/FrameHelper.cxx
Dosyayı görüntüle @
f789715a
...
...
@@ -42,10 +42,10 @@
#include <com/sun/star/awt/XMenuExtended.hpp>
#include <com/sun/star/awt/XMenuListener.hpp>
#include <com/sun/star/awt/XPopupMenuExtended.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/frame/XComponentLoader.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XDispatchHelper.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/frame/XModel.hpp>
...
...
@@ -718,8 +718,7 @@ void
FrameHelper
::
dispatchCommand
(
OUString
command
)
{
OUString
target
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
""
));
Reference
<
XDispatchHelper
>
xdh
(
m_xMSF
->
createInstance
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.frame.DispatchHelper"
))),
UNO_QUERY
);
Reference
<
XDispatchHelper
>
xdh
(
DispatchHelper
::
create
(
comphelper
::
ComponentContext
(
m_xMSF
).
getUNOContext
())
);
// This is a special case, we don't want the helper to be disconnected from the frame
// when PrintPreview dettaches. See the frameAction method.
...
...
scripting/source/basprov/basmethnode.cxx
Dosyayı görüntüle @
f789715a
...
...
@@ -19,8 +19,8 @@
#include "basmethnode.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>
#include <com/sun/star/frame/XDesktop.hpp>
#include <com/sun/star/frame/XDispatchHelper.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
#include <com/sun/star/script/browse/BrowseNodeTypes.hpp>
...
...
@@ -263,11 +263,8 @@ namespace basprov
if
(
xProv
.
is
()
)
{
Reference
<
frame
::
XDispatchHelper
>
xHelper
(
xSMgr
->
createInstanceWithContext
(
::
rtl
::
OUString
(
"com.sun.star.frame.DispatchHelper"
),
m_xContext
),
UNO_QUERY
);
Reference
<
frame
::
XDispatchHelper
>
xHelper
(
frame
::
DispatchHelper
::
create
(
m_xContext
)
);
if
(
xHelper
.
is
()
)
{
Sequence
<
PropertyValue
>
aArgs
(
7
);
aArgs
[
0
].
Name
=
::
rtl
::
OUString
(
"Document"
);
aArgs
[
0
].
Value
<<=
sDocURL
;
...
...
@@ -285,7 +282,6 @@ namespace basprov
}
}
}
}
else
{
throw
IllegalArgumentException
(
...
...
sfx2/source/appl/appserv.cxx
Dosyayı görüntüle @
f789715a
...
...
@@ -24,8 +24,8 @@
#include <com/sun/star/frame/DispatchResultState.hpp>
#include <com/sun/star/task/XJobExecutor.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>
#include <com/sun/star/frame/XDesktop.hpp>
#include <com/sun/star/frame/XDispatchHelper.hpp>
#include <com/sun/star/frame/XFramesSupplier.hpp>
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/util/CloseVetoException.hpp>
...
...
@@ -1308,16 +1308,14 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
}
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
xORB
=
::
comphelper
::
getProcessServiceFactory
();
Reference
<
uno
::
XComponentContext
>
xContext
=
::
comphelper
::
getProcessComponentContext
();
Reference
<
com
::
sun
::
star
::
frame
::
XDispatchProvider
>
xProv
(
xORB
->
createInstance
(
::
rtl
::
OUString
(
"com.sun.star.drawing.ModuleDispatcher"
)),
UNO_QUERY
);
if
(
xProv
.
is
()
)
{
::
rtl
::
OUString
aCmd
=
::
rtl
::
OUString
::
createFromAscii
(
GetInterface
()
->
GetSlot
(
rReq
.
GetSlot
()
)
->
GetUnoName
()
);
Reference
<
com
::
sun
::
star
::
frame
::
XDispatchHelper
>
xHelper
(
xORB
->
createInstance
(
::
rtl
::
OUString
(
"com.sun.star.frame.DispatchHelper"
)),
UNO_QUERY
);
if
(
xHelper
.
is
()
)
{
Reference
<
frame
::
XDispatchHelper
>
xHelper
(
frame
::
DispatchHelper
::
create
(
xContext
)
);
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
aSeq
;
if
(
rReq
.
GetArgs
()
)
TransformItems
(
rReq
.
GetSlot
(),
*
rReq
.
GetArgs
(),
aSeq
);
...
...
@@ -1330,7 +1328,6 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
rReq
.
SetReturnValue
(
SfxBoolItem
(
rReq
.
GetSlot
(),
bSuccess
)
);
}
}
}
break
;
case
FN_LABEL
:
...
...
@@ -1338,16 +1335,14 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
case
FN_XFORMS_INIT
:
{
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
xORB
=
::
comphelper
::
getProcessServiceFactory
();
Reference
<
uno
::
XComponentContext
>
xContext
=
::
comphelper
::
getProcessComponentContext
();
Reference
<
com
::
sun
::
star
::
frame
::
XDispatchProvider
>
xProv
(
xORB
->
createInstance
(
::
rtl
::
OUString
(
"com.sun.star.text.ModuleDispatcher"
)),
UNO_QUERY
);
if
(
xProv
.
is
()
)
{
::
rtl
::
OUString
aCmd
=
::
rtl
::
OUString
::
createFromAscii
(
GetInterface
()
->
GetSlot
(
rReq
.
GetSlot
()
)
->
GetUnoName
()
);
Reference
<
com
::
sun
::
star
::
frame
::
XDispatchHelper
>
xHelper
(
xORB
->
createInstance
(
::
rtl
::
OUString
(
"com.sun.star.frame.DispatchHelper"
)),
UNO_QUERY
);
if
(
xHelper
.
is
()
)
{
Reference
<
frame
::
XDispatchHelper
>
xHelper
(
frame
::
DispatchHelper
::
create
(
xContext
)
);
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
aSeq
;
if
(
rReq
.
GetArgs
()
)
TransformItems
(
rReq
.
GetSlot
(),
*
rReq
.
GetArgs
(),
aSeq
);
...
...
@@ -1360,7 +1355,6 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
rReq
.
SetReturnValue
(
SfxBoolItem
(
rReq
.
GetSlot
(),
bSuccess
)
);
}
}
}
break
;
case
SID_ADDRESS_DATA_SOURCE
:
...
...
sw/source/ui/app/docsh2.cxx
Dosyayı görüntüle @
f789715a
...
...
@@ -28,8 +28,9 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/frame/
X
DispatchHelper.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp>
#include <comphelper/componentcontext.hxx>
#include <comphelper/processfactory.hxx>
#include <hintids.hxx>
...
...
@@ -1005,15 +1006,13 @@ void SwDocShell::Execute(SfxRequest& rReq)
if
(
!
ERRCODE_TOERROR
(
eErr
)
)
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xORB
=
::
comphelper
::
getProcessServiceFactory
();
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
::
comphelper
::
getProcessComponentContext
();
uno
::
Reference
<
frame
::
XDispatchProvider
>
xProv
(
xORB
->
createInstance
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.drawing.ModuleDispatcher"
))),
UNO_QUERY
);
if
(
xProv
.
is
()
)
{
::
rtl
::
OUString
aCmd
(
RTL_CONSTASCII_USTRINGPARAM
(
"SendOutlineToImpress"
));
uno
::
Reference
<
frame
::
XDispatchHelper
>
xHelper
(
xORB
->
createInstance
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.frame.DispatchHelper"
))),
UNO_QUERY
);
if
(
xHelper
.
is
()
)
{
uno
::
Reference
<
frame
::
XDispatchHelper
>
xHelper
(
frame
::
DispatchHelper
::
create
(
xContext
)
);
pStrm
->
Seek
(
STREAM_SEEK_TO_END
);
*
pStrm
<<
'\0'
;
pStrm
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
...
...
@@ -1035,7 +1034,6 @@ void SwDocShell::Execute(SfxRequest& rReq)
}
}
}
}
else
ErrorHandler
::
HandleError
(
ErrCode
(
eErr
));
}
...
...
@@ -1079,15 +1077,13 @@ void SwDocShell::Execute(SfxRequest& rReq)
if
(
nWhich
==
FN_OUTLINE_TO_IMPRESS
)
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xORB
=
::
comphelper
::
getProcessServiceFactory
();
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
::
comphelper
::
getProcessComponentContext
();
uno
::
Reference
<
frame
::
XDispatchProvider
>
xProv
(
xORB
->
createInstance
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.drawing.ModuleDispatcher"
))),
UNO_QUERY
);
if
(
xProv
.
is
()
)
{
::
rtl
::
OUString
aCmd
(
RTL_CONSTASCII_USTRINGPARAM
(
"SendOutlineToImpress"
));
uno
::
Reference
<
frame
::
XDispatchHelper
>
xHelper
(
xORB
->
createInstance
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.frame.DispatchHelper"
))),
UNO_QUERY
);
if
(
xHelper
.
is
()
)
{
uno
::
Reference
<
frame
::
XDispatchHelper
>
xHelper
(
frame
::
DispatchHelper
::
create
(
xContext
)
);
pStrm
->
Seek
(
STREAM_SEEK_TO_END
);
*
pStrm
<<
'\0'
;
pStrm
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
...
...
@@ -1109,7 +1105,6 @@ void SwDocShell::Execute(SfxRequest& rReq)
}
}
}
}
else
{
TransferDataContainer
*
pClipCntnr
=
...
...
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