summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-11-03 17:45:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-11-04 08:21:26 +0100
commite66e54fb00bf74d13b7059bd32b6207a029afa5e (patch)
tree05a1a0e9c5cf4c889537cd3e616598effa0a85c1 /sfx2
parente04249337551653f63ba9b2a2302578961e38562 (diff)
Further clean up of areas touched by previous commit.
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appdde.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx
index f7d3c0e22d9c..08cfba20aab4 100644
--- a/sfx2/source/appl/appdde.cxx
+++ b/sfx2/source/appl/appdde.cxx
@@ -245,7 +245,8 @@ SV_IMPL_PTRARR( SfxDdeDocTopics_Impl, SfxDdeDocTopic_Impl *)
//========================================================================
sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent,
- const String &rCmd, const String &rEvent )
+ const String &rCmd, const String &rEvent,
+ ApplicationEvent::Type eType )
/* [Description]
@@ -291,7 +292,7 @@ sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent,
}
}
- rAppEvent = ApplicationEvent(rEvent, aData.makeStringAndClear());
+ rAppEvent = ApplicationEvent(eType, aData.makeStringAndClear());
return sal_True;
}
}
@@ -318,8 +319,8 @@ long SfxApplication::DdeExecute
{
// Print or Open-Event?
ApplicationEvent aAppEvent;
- if ( SfxAppEvent_Impl( aAppEvent, rCmd, DEFINE_CONST_UNICODE("Print") ) ||
- SfxAppEvent_Impl( aAppEvent, rCmd, DEFINE_CONST_UNICODE("Open") ) )
+ if ( SfxAppEvent_Impl( aAppEvent, rCmd, DEFINE_CONST_UNICODE("Print"), ApplicationEvent::TYPE_PRINT ) ||
+ SfxAppEvent_Impl( aAppEvent, rCmd, DEFINE_CONST_UNICODE("Open"), ApplicationEvent::TYPE_OPEN ) )
GetpApp()->AppEvent( aAppEvent );
else
{