summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/sfxhelp.cxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2001-03-22 13:25:49 +0000
committerPeter Burow <pb@openoffice.org>2001-03-22 13:25:49 +0000
commitae7dcbe040fb114bc8917c6462b49bffe18aa7ba (patch)
tree73024eac7d40706443fb9fa24639f59a7a728241 /sfx2/source/appl/sfxhelp.cxx
parentdac54775afccfd00ec7ec41bcecac748f714e72e (diff)
fix: #81086# GetHelpText() added
Diffstat (limited to 'sfx2/source/appl/sfxhelp.cxx')
-rw-r--r--sfx2/source/appl/sfxhelp.cxx25
1 files changed, 22 insertions, 3 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index addb1ab850c1..51686df6021d 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sfxhelp.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: mba $ $Date: 2001-02-09 11:39:29 $
+ * last change: $Author: pb $ $Date: 2001-03-22 14:25:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -139,8 +139,14 @@ void AppendConfigToken_Impl( String& rURL, sal_Bool bQuestionMark )
rURL += aHelpOpt.GetSystem();
}
-SfxHelp_Impl::SfxHelp_Impl()
+SfxHelp_Impl::SfxHelp_Impl() :
+
+ bIsDebug( sal_False )
+
{
+ char* pEnv = getenv( "help_debug" );
+ if ( pEnv )
+ bIsDebug = sal_True;
}
SfxHelp_Impl::~SfxHelp_Impl()
@@ -315,6 +321,19 @@ BOOL SfxHelp_Impl::Start( ULONG nHelpId )
return FALSE;
}
+XubString SfxHelp_Impl::GetHelpText( ULONG nHelpId )
+{
+ XubString aHelpText;
+ if ( bIsDebug )
+ {
+ aHelpText = GetHelpModuleName( nHelpId );
+ aHelpText += DEFINE_CONST_UNICODE(" - ");
+ aHelpText += String::CreateFromInt32( nHelpId );
+ }
+
+ return aHelpText;
+}
+
/*-----------------22.11.2000 10:59-----------------
* old code
BOOL SfxHelp_Impl::ImplStart( ULONG nHelpId, BOOL bCheckHelpFile, BOOL bChangeHelpFile, BOOL bHelpAgent )