ShowLicenseButton Class Reference

CCInfoPlugin show license toolbar button object. More...

Inherits AcrobatCommand.

Collaboration diagram for ShowLicenseButton:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ShowLicenseButton (CCInfoPlugin *pPlugin)
virtual void OnCommand ()
virtual bool IsEnabled ()
virtual ASText GetTooltip (ASBool bEnabled)
 Returns the license text as the tooltip for the button.

Protected Member Functions

AVIcon GetIcon ()
 Retrieves the toolbar button image.

Detailed Description

CCInfoPlugin show license toolbar button object.

Definition at line 104 of file CCInfoPlugin.cpp.


Constructor & Destructor Documentation

ShowLicenseButton::ShowLicenseButton ( CCInfoPlugin pPlugin  )  [inline]

Constructor

Definition at line 110 of file CCInfoPlugin.cpp.


Member Function Documentation

AVIcon ShowLicenseButton::GetIcon (  )  [protected]

Retrieves the toolbar button image.

Returns:
Acrobat image reference for the toolbar button image

Definition at line 135 of file CCInfoPlugin.cpp.

References gHINSTANCE.

ASText ShowLicenseButton::GetTooltip ( ASBool  bEnabled  )  [virtual]

Returns the license text as the tooltip for the button.

Parameters:
bEnabled true if the button is enabled
Returns:
The license information as a tooltip

Reimplemented from AcrobatCommand.

Definition at line 148 of file CCInfoPlugin.cpp.

References AcrobatPluginInfo::GetPluginInfo(), AcrobatPluginInfo::LoadTextFromResource(), and AcrobatPluginInfo::MakeASText().

virtual bool ShowLicenseButton::IsEnabled (  )  [inline, virtual]
Returns:
true to enable the toolbar button, false to disable it

Always enabled when there's a document, disabled when there's none

Reimplemented from AcrobatCommand.

Definition at line 122 of file CCInfoPlugin.cpp.

References AcrobatPluginInfo::GetPluginInfo().

virtual void ShowLicenseButton::OnCommand (  )  [inline, virtual]

Called when the toolbar button is selected; displays the license dialog

Implements AcrobatCommand.

Definition at line 116 of file CCInfoPlugin.cpp.

References AcrobatPluginInfo::GetPluginInfo().


The documentation for this class was generated from the following file:

Generated on Thu Dec 17 17:37:11 2009 for CCInfo PDF Plugin by doxygen 1.6.1