FontsSGallery Class Reference

The Fonts SuperGallery class. More...

#include <sgfonts.h>

Inheritance diagram for FontsSGallery:

LibraryGallery SuperGallery DialogOp Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 FontsSGallery ()
 ~FontsSGallery ()
virtual BOOL IsLibraryGalleryWithNonLibraryGroups (void)
 To check if we're a dedicated library gallery, or a half+half (like the font gallery).
virtual MsgResult Message (Msg *Message)
 Standard library gallery message handler.
BOOL InstallFonts (BOOL Copy)
BOOL DeinstallFonts (BOOL Delete)
BOOL InstallFont (PathName *FontFile, String_256 *Description, BOOL Temp)
BOOL DeinstallFont (String_256 *FontDesc, BOOL Delete, LOGFONT *LogFnt=NULL)
BOOL InstallTTFFont (PathName *FontFile, String_256 *Description, BOOL Temp)
BOOL DeinstallTTFFont (String_256 *FontDesc, BOOL Delete)
virtual BOOL CanCreateIndexes (void)
 To determine if this gallery can generate indexes or not If you want to create indexes, override and return TRUE.
virtual BOOL GetDefaults (String_256 *DefaultIndex, String_256 *IndexDesc, SGLibType *Type)
 To determine various library gallery default properties.
virtual BOOL GetLibraryDirectoryName (String_256 *LibDirName)
 Get the default CD directory name for the gallery.
virtual BOOL CheckForIndexMatch (StringBase *Txt)
 To see whether we should add this line of the index.txt file to this gallery.
virtual void WorkOutSectionName (String_256 *Section)
 Works out which library gallery we are and returns a section name as appropriate.
virtual BOOL GetQuietStatus (void)
 Get the Quiet status of the gallery.
virtual void SetQuietStatus (BOOL Status)
 Set the Quiet status of the gallery.
virtual BOOL ScanForLocation (SGLibType Type, StringBase *Result)
 Searches all the drives for a CDROM drive. If it finds the Camelot CD mount here at Xara HQ, we point to that instead. Notes:.
virtual SGLibType GetGalleryType ()
virtual String_256GetDefaultLibraryPath ()
void SelectionHasChanged (void)
 To inform the gallery that the selection has changed in some way. This function handles the default library gallery buttons.
virtual BOOL InitMenuCommands (void)
 Initialises any menu commands that this gallery needs.
virtual BOOL BuildCommandMenu (GalleryContextMenu *TheMenu, SGMenuID MenuID)
 To build a menu of commands to be popped up over the gallery.
virtual OpState GetCommandState (StringBase *CommandID, String_256 *ShadeReason)
 To determine the state of a given menu item. This method is an exact parallel to an Op's GetState method (in fact, it is called by an Op's GetState).
virtual void DoCommand (StringBase *CommandID)
 To apply a given command when it is chosen from the menu.

Static Public Member Functions

static BOOL GetWindowsFontDirectory (String_256 *Result)
static UINT32 CALLBACK FileHook (HWND hDlg, UINT32 iMsg, UINT32 wParam, INT32 lParam)
static INT32 GetDragFontOffset (KernelBitmap *Bmp)
static BOOL ApplyFont (BOOL Dropping, SGDisplayNode *TheNode, NodeRenderableInk *pObjectHit=NULL)
static BOOL InstallDraggedLibFont (FontsSGallery *TheGallery, SGLibDisplayItem *FontItem, String_64 *Desc)
static BOOL IsFontAlreadyInstalled (String_256 *FontDesc, FontClass Class=FC_UNDEFINED)
static BOOL FindLogFont (String_256 *FontDesc, LOGFONT **lplplf, FontClass Class=FC_UNDEFINED)
static void DoFontChange (void)
static void MakeBoldItalicReadable (String_256 *Desc)

Public Attributes

SGThumbs * InsCache

Static Public Attributes

static SGFontsGroupInsGroup
static FontsSGalleryThisGallery
static String_256 DefaultLibraryPath
static BOOL DontUpdate
static INT32 DefaultDisplayMode
static UINT32 DefaultSortKeys
static BOOL DeleteTTFandFOTfiles
static String_256 LargeDisplayString
static BOOL QuietStatus
static BOOL WarnAboutSectionDragging
static BOOL WarnAboutMultipleATMDragging

Protected Member Functions

virtual BOOL PreCreate (void)
 The LibraryGallery PreCreate handler. This overrides the base class PreCreate function. It is called at the very beginning of the SuperGallery::Create method, before the window has been created.
virtual BOOL ApplyAction (SGActionType Action)
 Applies certain conventional gallery actions (usually associated with gallery buttons, for new, edit, delete, etc).
virtual SGDisplayItemAddLibraryItem (SGDisplayGroup *LibraryGroup, Library *ParentLib, LibraryIndex ItemIndex, BOOL bNew=FALSE)
 Called by the Library class to create a display item for every item in a newly-scanned library file. It is essentially a callback to the gallery which requested that the library be scanned.
BOOL GetFOTNameFromRegistry (String_256 *Desc, PathName *FOTFile)
BOOL SetFOTNameInRegistry (String_256 *Desc, PathName *FOTFile)
BOOL GetFontsKey (String_256 *Key)
void HandleDragStart (DragMessage *DragMsg)
 Checks a DragMessage to see if it is a colour drag. If it is, then it creates a drag target for this gallerys listbox.
virtual SGDisplayGroupAddLibraryGroup (Library *LibraryToDisplay, INT32 NumItems)
 Create a library group, as opposed to a display group.
SGDisplayItemCopyDisplayItem (SGDisplayItem *SourceItem, SGDisplayGroup *DestGroup, SGDisplayItem *TargetPosition)
 "Copies" the existing node in the tree in an appropriate fashion.
virtual void AllItemsCopied (SGDisplayGroup *DestGroup)
 This upcall method is called after one or more items have been copied or moved by a gallery drag. It allows the gallery to do update things like broadcasting a message or getting a related window (eg colour line) to redraw at the end of a move/copy operation. This allows thousands of items to be moved/copied with only a single redraw/message-broadcast, etc at the very end.
virtual void ApplySortNow (BOOL ApplyToEntireList)
 Applies the current gallery sort mode (member array SortKeys) to the display list.
void CreateNewSubtreeForInstalledFonts (SGFontsGroup *ExistingGroup=NULL)
BOOL CreateNewSubtreeForLibraryFonts (PathName *LibPath, BOOL WipeOld=TRUE)
void SortGallery (void)
 Sort the entire gallery alphabetically.
BOOL BrowseClicked (void)
 Handle clicks on the browse button.

Static Protected Member Functions

static BOOL UseWin95FontInstallMethod ()

Protected Attributes

UINT32 IDCount

Static Protected Attributes

static BOOL AddedFonts
static FontClass EnumFontClass

Private Member Functions

void DoShadeGallery (BOOL ShadeIt)
 Handles the standard library gallery button shading in the gallery Notes:.
BOOL InstalledFontsSelected (void)
INT32 LibraryFontsSelected (void)
virtual BOOL CanSearchKeywords (void)
 Used to determine if this type of gallery supports keyword searching. At the moment, all except the fonts gallery do.
void SortInstalledFonts (void)

Static Private Member Functions

static INT32 CALLBACK EnumInstalledFamily (ENUMLOGFONT FAR *lpelf, NEWTEXTMETRIC FAR *lpntm, INT32 FontType, LPARAM handle)
static INT32 CALLBACK EnumInstalledFonts (ENUMLOGFONT FAR *lpelf, NEWTEXTMETRIC FAR *lpntm, INT32 FontType, LPARAM handle)

Detailed Description

The Fonts SuperGallery class.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
03/02/95
Notes: SuperGalleries are specced in a number of docs including specs.doc ("super" gallery extensions) specs.doc (gallery basic ui) There is also howtouse.doc which describes creating a supergallery

See also:
SuperGallery; SGDisplayFonts

Definition at line 353 of file sgfonts.h.


Constructor & Destructor Documentation

FontsSGallery::FontsSGallery  ) 
 

FontsSGallery::~FontsSGallery  ) 
 


Member Function Documentation

virtual SGDisplayGroup* FontsSGallery::AddLibraryGroup Library LibraryToDisplay,
INT32  NumItems
[protected, virtual]
 

Create a library group, as opposed to a display group.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95
Parameters:
LibraryToDisplay - Pointer to the library associated with the group [INPUTS] NumItems - Number of items in the group
Returns:
The newly created library group, or NULL if there were problems

Reimplemented from LibraryGallery.

virtual SGDisplayItem* FontsSGallery::AddLibraryItem SGDisplayGroup LibraryGroup,
Library ParentLib,
LibraryIndex  ItemIndex,
BOOL  bNew = FALSE
[protected, virtual]
 

Called by the Library class to create a display item for every item in a newly-scanned library file. It is essentially a callback to the gallery which requested that the library be scanned.

Parameters:
LibraryGroup - The group to add the item into [INPUTS] ParentLib - (For cross checking inputs) the library you allege the above group is for. ItemIndex - The Library generated index for this item
Returns:
NULL, or a pointer to the created item
Notes: This method MUST BE OVERRIDDEN by the derived gallery that opens the library, in order to create appropriate SGDisplayItem-derived nodes for the things in the library (e.g. a clipart library gallery will have to create items that display clipart thumbnails)

See also:
SuperGallery::AddLibraryGroup; SuperGallery::RemoveLibraryGroup

Reimplemented from LibraryGallery.

virtual void FontsSGallery::AllItemsCopied SGDisplayGroup DestGroup  )  [protected, virtual]
 

This upcall method is called after one or more items have been copied or moved by a gallery drag. It allows the gallery to do update things like broadcasting a message or getting a related window (eg colour line) to redraw at the end of a move/copy operation. This allows thousands of items to be moved/copied with only a single redraw/message-broadcast, etc at the very end.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/3/95
Parameters:
DestGroup - Indicates where the copy/move took place. [INPUTS]
An example where this methodis used is the colour gallery.

Notes: The caller automatically causes the appropriate things to be redrawn, so we just need to update other things. e.g. The colour gallery broadcasts a ColourChangingMsg to make sure that the colour line and other interested parties all update appropriately.

See also:
SuperGallery::CopyDisplayItem; SGDisplayItem::MoveBefore; SGDisplayItem::MoveAfter; ColourSGallery::AllItemsCopied

Reimplemented from LibraryGallery.

virtual BOOL FontsSGallery::ApplyAction SGActionType  Action  )  [protected, virtual]
 

Applies certain conventional gallery actions (usually associated with gallery buttons, for new, edit, delete, etc).

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95
Parameters:
Action - Indicates what action to apply [INPUTS]
Returns:
TRUE to indicate successful handling of the action, or FALSE to indicate failure
See also:
SGActionType

Reimplemented from LibraryGallery.

static BOOL FontsSGallery::ApplyFont BOOL  Dropping,
SGDisplayNode TheNode,
NodeRenderableInk pObjectHit = NULL
[static]
 

virtual void FontsSGallery::ApplySortNow BOOL  ApplyToEntireList  )  [protected, virtual]
 

Applies the current gallery sort mode (member array SortKeys) to the display list.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/4/95
Parameters:
ApplyToEntireList - TRUE to sort the entire DisplayList, [INPUTS] FALSE to sort only groups which contain a selection
See also:
SuperGallery::SortComparator; qsort

Reimplemented from SuperGallery.

BOOL FontsSGallery::BrowseClicked void   )  [protected, virtual]
 

Handle clicks on the browse button.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95

Reimplemented from LibraryGallery.

virtual BOOL FontsSGallery::BuildCommandMenu GalleryContextMenu TheMenu,
SGMenuID  MenuID
[virtual]
 

To build a menu of commands to be popped up over the gallery.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/9/95
Parameters:
TheMenu - The menu to add commands to [INPUTS] MenuID - The type of menu (over-list or from-options-button) to create
Returns:
TRUE if it succeeded
Notes: The base class does nothing. Override in order to provide a menu.

Reimplemented from SuperGallery.

virtual BOOL FontsSGallery::CanCreateIndexes void   )  [virtual]
 

To determine if this gallery can generate indexes or not If you want to create indexes, override and return TRUE.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/12/95
Returns:
TRUE to if index generation is possible

Reimplemented from LibraryGallery.

virtual BOOL FontsSGallery::CanSearchKeywords void   )  [private, virtual]
 

Used to determine if this type of gallery supports keyword searching. At the moment, all except the fonts gallery do.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95
Returns:
TRUE

Reimplemented from LibraryGallery.

virtual BOOL FontsSGallery::CheckForIndexMatch StringBase Txt  )  [virtual]
 

To see whether we should add this line of the index.txt file to this gallery.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/12/95
Parameters:
Kind - Last column entry in the index.txt file (" F") [INPUTS]
Returns:
TRUE if this signifies the gallery in question...

Reimplemented from LibraryGallery.

SGDisplayItem* FontsSGallery::CopyDisplayItem SGDisplayItem SourceItem,
SGDisplayGroup DestGroup,
SGDisplayItem TargetPosition
[protected, virtual]
 

"Copies" the existing node in the tree in an appropriate fashion.

Parameters:
SourceItem - The item to copy elsewhere in the tree (see below) [INPUTS]
DestGroup - The group into which the item should be inserted

TargetPosition - NULL (to add the copied item to the end of the sibling list), or points to an item BEFORE which the copied item will be inserted.

Returns:
NULL (failed) or a pointer to the new (copied) display item
This method is normally called when a gallery-organising drag completes, and it is discovered that the dragged item(s) have been dragged to a different display group.

Notes: This method should be overridden by derived galleries to provide appropriate behaviour (some galleries (e.g colour) will copy the real-item that the given display-item references to the new group (document), while other galleries (layer) may just move the item after all).

Note the handy InsertCopiedItem and MoveBefore/After methods which are available to take all of the hard work out of copying/moving items!

See the body of this method in the source code for example pseudocode. For real code, see the Colour Gallery (sgcolour.cpp)

See also:
SuperGallery::InsertCopiedItem; SGDisplayItem::MoveBefore; SGDisplayItem::MoveAfter; ColourSGallery::CopyDisplayItem

Reimplemented from LibraryGallery.

void FontsSGallery::CreateNewSubtreeForInstalledFonts SGFontsGroup ExistingGroup = NULL  )  [protected]
 

BOOL FontsSGallery::CreateNewSubtreeForLibraryFonts PathName LibPath,
BOOL  WipeOld = TRUE
[protected]
 

BOOL FontsSGallery::DeinstallFont String_256 FontDesc,
BOOL  Delete,
LOGFONT LogFnt = NULL
 

BOOL FontsSGallery::DeinstallFonts BOOL  Delete  ) 
 

BOOL FontsSGallery::DeinstallTTFFont String_256 FontDesc,
BOOL  Delete
 

virtual void FontsSGallery::DoCommand StringBase CommandID  )  [virtual]
 

To apply a given command when it is chosen from the menu.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/9/95
Parameters:
CommandID - The String ID of the command [INPUTS]
Notes: Override this method to provide handling for your special commands. Call the base class if you don't recognise the command, so that it can handle standard commands.

Default handling is provided for the following commands. These commands need only be added to your menu in BuildCommandMenu in order to become available. Override the default behaviour if it is unsuitable. MonoOn Properties* Shows properties (options) dialogue Sort* Shows Sort dialogue Find* Shows find dialogue

New Calls ApplyAction(SGACTION_CREATE) Apply Calls ApplyAction(SGACTION_APPLY) Edit Calls ApplyAction(SGACTION_EDIT) Delete Calls ApplyAction(SGACTION_DELETE) Redefine Calls ApplyAction(SGACTION_REDEFINE)

NextGroup Scrolls to show next group PrevGroup Scrolls to show previous group FoldGroup Forces the selected group folded UnfoldGroup Forces the seletced group unfolded MonoOff

These items should always be provided if you provide an options menu. They should be shaded when unavailable.

Reimplemented from SuperGallery.

static void FontsSGallery::DoFontChange void   )  [static]
 

void FontsSGallery::DoShadeGallery BOOL  ShadeIt  )  [private, virtual]
 

Handles the standard library gallery button shading in the gallery Notes:.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/95

Reimplemented from LibraryGallery.

static INT32 CALLBACK FontsSGallery::EnumInstalledFamily ENUMLOGFONT FAR *  lpelf,
NEWTEXTMETRIC FAR *  lpntm,
INT32  FontType,
LPARAM  handle
[static, private]
 

static INT32 CALLBACK FontsSGallery::EnumInstalledFonts ENUMLOGFONT FAR *  lpelf,
NEWTEXTMETRIC FAR *  lpntm,
INT32  FontType,
LPARAM  handle
[static, private]
 

static UINT32 CALLBACK FontsSGallery::FileHook HWND  hDlg,
UINT32  iMsg,
UINT32  wParam,
INT32  lParam
[static]
 

static BOOL FontsSGallery::FindLogFont String_256 FontDesc,
LOGFONT **  lplplf,
FontClass  Class = FC_UNDEFINED
[static]
 

virtual OpState FontsSGallery::GetCommandState StringBase CommandID,
String_256 ShadeReason
[virtual]
 

To determine the state of a given menu item. This method is an exact parallel to an Op's GetState method (in fact, it is called by an Op's GetState).

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/9/95
Parameters:
CommandID - TheString ID of the command [INPUTS]
ShadeReason - If you return (OpState.Greyed == TRUE) then this should be filled [OUTPUTS] ion with the reason that the item is shaded/greyed.
Returns:
An OpState indicating the current menu item state.
Notes: Override this method to provide state info for your special commands Call the base class for unknown commands to allow it to handle them for you

Default handling is provided for the following commands. These commands need only be added to your menu in BuildCommandMenu in order to become available. Override the default behaviour if it is unsuitable: MonoOn Properties } Sort } - Always available Find }

New Always available Apply Available if one item selected Edit Available if one item selected Delete Available if one or more items salected Redefine Available if one item selected

NextGroup Available if there is a next group PrevGroup Available if there is a previous group FoldGroup Always available if there is a selected group UnfoldGroup Always available if there is a selected group MonoOff

Reimplemented from SuperGallery.

virtual String_256* FontsSGallery::GetDefaultLibraryPath  )  [inline, virtual]
 

Reimplemented from LibraryGallery.

Definition at line 418 of file sgfonts.h.

00418 {return &DefaultLibraryPath;}

virtual BOOL FontsSGallery::GetDefaults String_256 DefaultIndex,
String_256 IndexDesc,
SGLibType *  Type
[virtual]
 

To determine various library gallery default properties.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/12/95
Parameters:
DefaultIndex - The filename for the default index file (Xaraclip.txt) [OUTPUTS] IndexDesc - Description of the index / gallery (Clipart) Type - Default library type associated with this gallery
Returns:
TRUE if this was overridden successfully

Reimplemented from LibraryGallery.

static INT32 FontsSGallery::GetDragFontOffset KernelBitmap Bmp  )  [static]
 

BOOL FontsSGallery::GetFontsKey String_256 Key  )  [protected]
 

BOOL FontsSGallery::GetFOTNameFromRegistry String_256 Desc,
PathName FOTFile
[protected]
 

virtual SGLibType FontsSGallery::GetGalleryType  )  [inline, virtual]
 

Reimplemented from LibraryGallery.

Definition at line 416 of file sgfonts.h.

00416 { return SGLib_Font;}

virtual BOOL FontsSGallery::GetLibraryDirectoryName String_256 LibDirName  )  [virtual]
 

Get the default CD directory name for the gallery.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/12/95
Parameters:
LibDirName - Returns the Default directory (on the clipart CD) for the gallery [OUTPUTS]
Returns:
TRUE if overridden and directory obtained...

Reimplemented from LibraryGallery.

virtual BOOL FontsSGallery::GetQuietStatus void   )  [virtual]
 

Get the Quiet status of the gallery.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/12/95
Returns:
TRUE if Quiet has been pressed (SetQuiet status called with TRUE)

Reimplemented from LibraryGallery.

static BOOL FontsSGallery::GetWindowsFontDirectory String_256 Result  )  [static]
 

void FontsSGallery::HandleDragStart DragMessage DragMsg  )  [protected, virtual]
 

Checks a DragMessage to see if it is a colour drag. If it is, then it creates a drag target for this gallerys listbox.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95
Parameters:
DragMsg - The DRAGSTARTED message that we've just recieved, indicating [INPUTS] the type of drag being started
Notes: Overrides the default base-class action. Calls down to the base class if it is not a colour drag, so that dragging of gallery groups is allowed

Reimplemented from LibraryGallery.

virtual BOOL FontsSGallery::InitMenuCommands void   )  [virtual]
 

Initialises any menu commands that this gallery needs.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/9/95
Returns:
TRUE for success
Notes: The base class method does nothing. Override it in galleries which will need command menus, in order to init your menu items. See the colour gallery code for an example of this.

Note: Should only create the menu commands once - further calls in the future should return TRUE immediately without trying to re-init the ops.

See also:
ColourSGallery::InitMenuCommands; SuperGallery::InitMenuCommand

Reimplemented from SuperGallery.

static BOOL FontsSGallery::InstallDraggedLibFont FontsSGallery TheGallery,
SGLibDisplayItem FontItem,
String_64 Desc
[static]
 

BOOL FontsSGallery::InstalledFontsSelected void   )  [private]
 

BOOL FontsSGallery::InstallFont PathName FontFile,
String_256 Description,
BOOL  Temp
 

BOOL FontsSGallery::InstallFonts BOOL  Copy  ) 
 

BOOL FontsSGallery::InstallTTFFont PathName FontFile,
String_256 Description,
BOOL  Temp
 

static BOOL FontsSGallery::IsFontAlreadyInstalled String_256 FontDesc,
FontClass  Class = FC_UNDEFINED
[static]
 

virtual BOOL FontsSGallery::IsLibraryGalleryWithNonLibraryGroups void   )  [inline, virtual]
 

To check if we're a dedicated library gallery, or a half+half (like the font gallery).

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/12/95
Returns:
TRUE if the SuperGallery is a LibraryGallery, yet also can contain non-library groups

Reimplemented from LibraryGallery.

Definition at line 362 of file sgfonts.h.

00362 {return FALSE;};

INT32 FontsSGallery::LibraryFontsSelected void   )  [private]
 

static void FontsSGallery::MakeBoldItalicReadable String_256 Desc  )  [static]
 

virtual MsgResult FontsSGallery::Message Msg Message  )  [virtual]
 

Standard library gallery message handler.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95
Parameters:
Message - The message to handle [INPUTS]
Notes: Any messages that this does not handle must be passed down to the SuperGallery base class message handler.

NOTE WELL that the SuperGallery base class handler does some funky things for us - see SuperGallery::Message - such as deleting our display subtree for any document which dies (which, uncannily, would explain why they go away like that when you close documents ;-), and shading the gallery when there are no documents present. [To override this behaviour in these cases, you should respond to the message, and return OK rather than calling the base class message handler]

See also:
SuperGallery::Message; LibClipartSGallery::Message; etc...

Reimplemented from LibraryGallery.

virtual BOOL FontsSGallery::PreCreate void   )  [protected, virtual]
 

The LibraryGallery PreCreate handler. This overrides the base class PreCreate function. It is called at the very beginning of the SuperGallery::Create method, before the window has been created.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95
Returns:
TRUE if the Gallery initialised successfully FALSE if it should not be opened due to a failure to initialise
Notes: As this is called before the window is open, it must not attempt to touch any of the button gadgets in the window, or force redraws, etc. Also, events cannot be passed to the tree, as the tree formatting relies on knowing the window size - however, the tree will be reformatted and redrawn automatically when the window is opened - this will happen shortly.

Reimplemented from LibraryGallery.

virtual BOOL FontsSGallery::ScanForLocation SGLibType  Type,
StringBase Result
[virtual]
 

Searches all the drives for a CDROM drive. If it finds the Camelot CD mount here at Xara HQ, we point to that instead. Notes:.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/12/95
Parameters:
Type of library to scan for [INPUTS]
(We assume the library static strings exist and use them - bit yucky) [OUTPUTS] If a Result pointer if given then we copy this into there as well..
Returns:
FALSE if it fails; TRUE if we got a path

Reimplemented from LibraryGallery.

void FontsSGallery::SelectionHasChanged void   )  [virtual]
 

To inform the gallery that the selection has changed in some way. This function handles the default library gallery buttons.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95

Reimplemented from LibraryGallery.

BOOL FontsSGallery::SetFOTNameInRegistry String_256 Desc,
PathName FOTFile
[protected]
 

virtual void FontsSGallery::SetQuietStatus BOOL  Status  )  [virtual]
 

Set the Quiet status of the gallery.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/12/95
Parameters:
Status - Set to TRUE and call if Quiet has just been pressed on an 'adding [INPUTS] indexes' dialog

Reimplemented from LibraryGallery.

void FontsSGallery::SortGallery void   )  [protected, virtual]
 

Sort the entire gallery alphabetically.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/5/95

Reimplemented from LibraryGallery.

void FontsSGallery::SortInstalledFonts void   )  [private]
 

static BOOL FontsSGallery::UseWin95FontInstallMethod  )  [static, protected]
 

virtual void FontsSGallery::WorkOutSectionName String_256 Section  )  [virtual]
 

Works out which library gallery we are and returns a section name as appropriate.

Author:
Richard_Millican (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/95
Parameters:
[INPUTS] 
A section name to use for the library gallery [OUTPUTS]
Notes: Ideally this function should be overidden by the individual galleries...

Reimplemented from LibraryGallery.


Member Data Documentation

BOOL FontsSGallery::AddedFonts [static, protected]
 

Definition at line 540 of file sgfonts.h.

INT32 FontsSGallery::DefaultDisplayMode [static]
 

Definition at line 559 of file sgfonts.h.

String_256 FontsSGallery::DefaultLibraryPath [static]
 

Definition at line 553 of file sgfonts.h.

UINT32 FontsSGallery::DefaultSortKeys [static]
 

Definition at line 562 of file sgfonts.h.

BOOL FontsSGallery::DeleteTTFandFOTfiles [static]
 

Definition at line 565 of file sgfonts.h.

BOOL FontsSGallery::DontUpdate [static]
 

Definition at line 556 of file sgfonts.h.

FontClass FontsSGallery::EnumFontClass [static, protected]
 

Definition at line 543 of file sgfonts.h.

UINT32 FontsSGallery::IDCount [protected]
 

Definition at line 537 of file sgfonts.h.

SGThumbs* FontsSGallery::InsCache
 

Definition at line 547 of file sgfonts.h.

SGFontsGroup* FontsSGallery::InsGroup [static]
 

Definition at line 532 of file sgfonts.h.

String_256 FontsSGallery::LargeDisplayString [static]
 

Definition at line 568 of file sgfonts.h.

BOOL FontsSGallery::QuietStatus [static]
 

Definition at line 571 of file sgfonts.h.

FontsSGallery* FontsSGallery::ThisGallery [static]
 

Definition at line 550 of file sgfonts.h.

BOOL FontsSGallery::WarnAboutMultipleATMDragging [static]
 

Definition at line 577 of file sgfonts.h.

BOOL FontsSGallery::WarnAboutSectionDragging [static]
 

Definition at line 574 of file sgfonts.h.


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