SECWorkspaceManagerEx Class
class SECWorkspaceManagerEx: public SecWndPlugIn
Extended workspace manager class for persisting frame and controlbar window state. NOTE: New development should exploit this class, rather than SECWorkspaceManager, as SECWorkspaceManager is considered obsolete and available only for backward compatibility.
Defined in: SWSMGREX.H
See Also
SECWndPlugIn
Construction/Initialization
virtual void SetRegistryMode(const CString& strAppSubKey,BOOL bEnable=TRUE, HKEY hKeyApp=HKEY_CURRENT_USER, BOOL bSectionKey=FALSE)
Set the workspace manager to registry mode
virtual void SetRegistryMode(BOOL bEnable, BOOL bSectionKey = FALSE)
Set the workspace manager to registry mode
Class Members
Operations
virtual BOOL CloseWorkspace()
Close the currently active workspace.
virtual BOOL SaveWorkspace()
Save the currently active workspace state.
virtual BOOL SaveWorkspace(CString strWorkspaceName)
Save the currently active workspace state under a new name.
virtual BOOL OpenWorkspace(BOOL bLastActiveWorkspace=FALSE,BOOL bSuppressErrorDlg=FALSE)
Load a workspace state.
virtual BOOL OpenWorkspace(CString strWorkspaceName,BOOL bSuppressErrorDlg=FALSE)
Load the workspace state of the workspace name passed in.
BOOL GetActiveWorkspace(CString& strWorkspaceName)
Get the name of the currently active workspace.
void SetMaxWorkspaceMRUSize(UINT nMaxSize)
Set the maximum number of workspaces in the MRU list
int GetMaxWorkspaceMRUSize()
Get the maximum number of workspaces in the MRU list
void SetWorkspaceFileExtension(const CString& strExt)
Set the workspace default extension
void GetWorkspaceFileExtension(CString& strExt)
Get the workspace default extension
Overridable
virtualSECPTNStrategy* GetPersistanceStrategy(const CString& strWorkspace)
Get the persistance strategy (file, registry, etc.)
virtual BOOL OpenWorkspaceDockState(SECPersistentTreeNode* pRoot)
Load the controlbar dockstate for current OpenWorkspace operation.
virtual BOOL OpenWorkspaceFrameWnds(SECPersistentTreeNode* pRoot, CFrameWnd** ppActiveChildFrame)
Load the frame window state for current OpenWorkspace operation.
virtual BOOL SaveWorkspaceDockState(SECPTNFactory& nodeFactory, SECPersistentTreeNode* pRoot)
Save the controlbar dockstate for current SaveWorkspace operation.
virtual BOOL SaveWorkspaceFrameWnds(SECPTNFactory& nodeFactory, SECPersistentTreeNode* pRoot)
Save the frame window state for current SaveWorkspace operation.
virtual BOOL PromptWorkspaceName(CString& strWorkspaceName,BOOL bSaveAs)
Display prompt dialog for workspace Open or SaveAs
virtual void OpenWorkspaceCustomData(SECPersistentTreeNode* pRoot, const CString& strWorkspaceName)
Overridable to load your own custom workspace data.
virtual void SaveWorkspaceCustomData(SECPTNFactory& nodeFactory, SECPersistentTreeNode* pRoot, const CString& strWorkspaceName)
Overridable to load your own custom workspace data.
virtual BOOL CloseAllChildFrames()
Close all the child frame windows.
virtual BOOL CloseControlBars(CPtrList* pListBars,CFrameWnd* pFrame)
Close all the controlbars.
virtual BOOL OpenAdditionalViewPerFrame(const CDocument* pDoc, const CFrameWnd* pFrame, const SECPersistentTreeNode* pAddViewNode)
Override to load multiple views per single frame window.
virtual SECPersistentTreeNode* SaveAdditionalViewPerFrame( CDocument* pDoc, CView* pView, CFrameWnd* pFrame, SECPTNFactory& nodeFactory, SECPersistentTreeNode* pParent, int nMultViewFrameUniqueID)
Override to save multiple views per single frame window.