InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IUserInfo Class Referenceabstract

#include <IUserInfo.h>

Inheritance diagram for IUserInfo:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IUSERINFO }
 

Public Member Functions

virtual void SetUser (const PMString &userName, int32 userColorIndex)=0
 
virtual void SetUserName (const PMString &userName)=0
 
virtual const PMStringGetUserName () const =0
 
virtual void SetUserColorIndex (int32 userColorIndex)=0
 
virtual int32 GetUserColorIndex () const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Interface for getting and setting user name and color.

Member Function Documentation

virtual int32 IUserInfo::GetUserColorIndex () const
pure virtual

Gets current user color index.

Returns
color index or default index which is 53 (Gold).
virtual const PMString& IUserInfo::GetUserName () const
pure virtual

Get current user name.

Returns
PMString name of the current user or "Unknown User Name" if it's never been set.
virtual void IUserInfo::SetUser (const PMStringuserName,
int32 userColorIndex 
)
pure virtual

Sets user name and color.

Parameters
userNamethe user name to set.
userColorIndexthe user color index to set.
virtual void IUserInfo::SetUserColorIndex (int32 userColorIndex)
pure virtual

Sets current user color index.

Parameters
userColorIndexthe color index to set.
virtual void IUserInfo::SetUserName (const PMStringuserName)
pure virtual

Sets current user name.

Parameters
userNamethe user name to set.