summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/sfxhelp.cxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2004-10-26 09:15:01 +0000
committerPeter Burow <pb@openoffice.org>2004-10-26 09:15:01 +0000
commit594e0d2924efaae33581ea820d76faec8ad3fc12 (patch)
treed0db4cb67bc495c1b7fa147c3d595f7510011f33 /sfx2/source/appl/sfxhelp.cxx
parent8cbff1e543aea56fb70932c9655d1a679247566e (diff)
fix: #i34503# debug text with command url (fixed on master)
Diffstat (limited to 'sfx2/source/appl/sfxhelp.cxx')
-rw-r--r--sfx2/source/appl/sfxhelp.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 765d356928..d9d965253e 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sfxhelp.cxx,v $
*
- * $Revision: 1.56 $
+ * $Revision: 1.57 $
*
- * last change: $Author: kz $ $Date: 2004-08-30 17:34:43 $
+ * last change: $Author: pb $ $Date: 2004-10-26 10:15:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -610,7 +610,7 @@ String SfxHelp::CreateHelpURL_Impl( const String& aCommandURL, const String& rMo
else
{
aHelpURL += '/';
- aHelpURL += String( rtl::Uri::encode( aCommandURL,
+ aHelpURL += String( rtl::Uri::encode( aCommandURL,
rtl_UriCharClassRelSegment,
rtl_UriEncodeKeepEscapes,
RTL_TEXTENCODING_ASCII_US ));
@@ -873,6 +873,15 @@ XubString SfxHelp::GetHelpText( const String& aCommandURL, const Window* pWindow
aFactoryShortName = aDefaultModule;
aHelpText = pImp->GetHelpText( aCommandURL, aFactoryShortName );
+
+ // add some debug information?
+ if ( bIsDebug )
+ {
+ aHelpText += DEFINE_CONST_UNICODE("\n-------------\n");
+ aHelpText += String( aModuleIdentifier );
+ aHelpText += DEFINE_CONST_UNICODE("\n");
+ aHelpText += aCommandURL;
+ }
}
}
catch ( Exception& )