WizOpRegistryEntry Class Reference

When the WizOpProbe returns a ClassRegistryEntry it returns one of these which can then be used to extract WizOp specific bits from the registry. More...

Inheritance diagram for WizOpRegistryEntry:

ClassRegistryEntry RegistryEntry List of all members.

Public Member Functions

BOOL GetInternalName (StringBase *const pValue)
 Provides a string from this registry entry for the internal name.
BOOL GetUserName (StringBase *const pValue)
 Provides a string from this registry entry for the user name.
BOOL GetParamHint (StringBase *const pValue)
 Provides a string from this registry entry for the parameter hint.

Static Private Attributes

static const String_16 s_UserNameKey = TEXT("UserName")
static const String_16 s_ParamHintKey = TEXT("ParamHint")

Detailed Description

When the WizOpProbe returns a ClassRegistryEntry it returns one of these which can then be used to extract WizOp specific bits from the registry.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com> (from assorted dialog classes)
Date:
09/06/97

Definition at line 150 of file tmpltarg.cpp.


Member Function Documentation

BOOL WizOpRegistryEntry::GetInternalName StringBase *const   pValue  ) 
 

Provides a string from this registry entry for the internal name.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Returns:
TRUE if it worked, FALSE if it didn't
Parameters:
pValue,: The string of the internal name. [OUTPUTS]

Definition at line 204 of file tmpltarg.cpp.

00205 {
00206     BOOL Ok = TRUE;
00207 
00208     VersionIndependentProgID VIPID(*this);
00209     String_128 WholeEntry;
00210 
00211     Ok = VIPID.GetName(&WholeEntry);
00212 
00213     if (Ok)
00214     {
00215         // The entry is of the form "ProgID.LongName". We want the LongName bit
00216         static const TCHAR ProgIDDelimiter = TEXT('.');
00217 
00218         INT32 StartDelimiterPosition = WholeEntry.FindNextChar(ProgIDDelimiter);
00219 
00220         const UINT32 LengthToCopy = WholeEntry.Length() - StartDelimiterPosition - 1;
00221 
00222         if (StartDelimiterPosition >= 0 && LengthToCopy > 0)
00223         {
00224             WholeEntry.Mid(pValue, StartDelimiterPosition + 1, LengthToCopy);
00225         }
00226         else
00227         {
00228             TRACE( _T("WizOpRegistryEntry::GetInternalName - no name\n"));
00229             Ok = FALSE;
00230         }
00231     }
00232 
00233     return Ok;
00234 }

BOOL WizOpRegistryEntry::GetParamHint StringBase *const   pValue  ) 
 

Provides a string from this registry entry for the parameter hint.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Returns:
TRUE if it worked, FALSE if it didn't
Parameters:
pString,: The string of the parameter hint [OUTPUTS]

Definition at line 269 of file tmpltarg.cpp.

00270 {
00271     return GetValue(s_ParamHintKey, pValue);
00272 }

BOOL WizOpRegistryEntry::GetUserName StringBase *const   pValue  ) 
 

Provides a string from this registry entry for the user name.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/06/97
Returns:
TRUE if it worked, FALSE if it didn't
Parameters:
pString,: The string of the user name. [OUTPUTS]

Definition at line 250 of file tmpltarg.cpp.

00251 {
00252     return GetValue(s_UserNameKey, pValue);
00253 }


Member Data Documentation

const String_16 WizOpRegistryEntry::s_ParamHintKey = TEXT("ParamHint") [static, private]
 

Definition at line 160 of file tmpltarg.cpp.

const String_16 WizOpRegistryEntry::s_UserNameKey = TEXT("UserName") [static, private]
 

Definition at line 159 of file tmpltarg.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 04:03:10 2007 for Camelot by  doxygen 1.4.4