9#if !defined(OWL_DOCMANAG_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
125 TDocument* parent=
nullptr,
long flags=0);
151 int& GetUntitledIndex();
157 bool IsFlagSet(
int flag)
const;
158 int GetModeFlags()
const;
163 long GetAdditionalFileDialogFlags()
const;
164 void SetAdditionalFileDialogFlags(
long);
185 virtual void FileOpen();
186 virtual void FileNew();
187 virtual void FileClose();
188 virtual void FileSave();
189 virtual void FileSaveAs();
190 virtual void FileRevert();
191 virtual void ViewCreate();
198 virtual void PostEvent(
int id,
TView&
view);
247 long AdditionalFileDialogFlags;
285 int GetTmplCount()
const;
307 int GetTmplCount()
const;
352#define EV_WM_PREPROCMENU OWL_EV_(WM_OWLPREPROCMENU, EvPreProcessMenu)
353#define EV_WM_CANCLOSE OWL_EV_(WM_OWLCANCLOSE, EvCanClose)
354#define EV_WM_WAKEUP OWL_EV_(WM_OWLWAKEUP, EvWakeUp)
401 return (Mode &
flag) != 0;
454 return AdditionalFileDialogFlags;
462 AdditionalFileDialogFlags = flags;
Definition of class TApplication.
Derived from TModule and TMsgThread and virtually derived from TEventHandler, TApplication acts as an...
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
TDocManager creates a document manager object that manages the list of current documents and register...
virtual void ViewCreate()
Calls CreateAnyView(*doc) where doc is the current document.
void CmFileSaveAs()
Public to allow direct invocation from app; for backward compatibility.
TDocument * CreateDummyDoc()
Creates dummy document.
int GetModeFlags() const
Returns variable representing the dtXXXX flags [see DOCTPL.H for list] of the DocManager.
uint NextViewId
Next ID to be assigned to a view.
bool IsFlagSet(int flag) const
Returns true if the specified flag is currently enabled by the DocManager or false otherwise.
virtual void FileSaveAs()
SelectAnySave() is called to get a template.
int UntitledIndex
Index of last untitled document.
TApplication * GetApplication() const
Returns the TApplication* object associated with this DocManager.
void CmFileOpen()
Public to allow direct invocation from app; for backward compatibility.
long GetAdditionalFileDialogFlags() const
See SelectDocPath for details.
void CmFileSave()
Public to allow direct invocation from app; for backward compatibility.
void CmViewCreate()
Public to allow direct invocation from app; for backward compatibility.
TDocument::List & GetDocList()
Returns a List of document currently managed by the DocManager.
void UnRefTemplate(TDocTemplate &)
drop template ref
void SetAdditionalFileDialogFlags(long)
See SelectDocPath for details.
virtual void FileClose()
If the document can be closed it is closed.
int & GetUntitledIndex()
Returns the index to be used by an untitled document.
virtual void FileRevert()
void CmFileRevert()
Public to allow direct invocation from app; for backward compatibility.
void CmFileNew()
Public to allow direct invocation from app; for backward compatibility.
void RefTemplate(TDocTemplate &)
add template ref
void CmFileClose()
Public to allow direct invocation from app; for backward compatibility.
TDocTemplate * GetNextTemplate(TDocTemplate *tpl) const
Returns template following specified template - Pass in '0' as parameter to get pointer to the templa...
TDocTemplate * GetTemplateList() const
Returns a pointer to the list of DocView templates currently registered with the DocManager.
TDocTemplate is an abstract base class that contains document template functionality.
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
TDvFileOpenDialog encapsulates the FileOpen dialog used by the DocView manager.
TDvFileSaveDialog encapsulates the FileSave dialog used by the DocView manager.
TDvOpenSaveData encapsulates the information used to initialized the Open or Save As dialog box by Ob...
int TmplIndex
Index of the default template.
int TmplCount
Number of Doc/View templates in 'TmplList'.
TDocTemplate ** TmplList
List of Doc/View templates displayed in Common Dialog during a File|Open or File|SaveAs operation.
TDocTemplate ** GetTmplList() const
Returns the list of templates displayed in the Open or Save dialogs used by the DocManager.
int GetTmplCount() const
Returns the number of DocView templates currently displayed in the Open or Save dialogs used by the D...
TDvOpenSaveDataOwner is a mixin class used by the DocView encapsulation of the FileOpen and FileSave ...
int GetTmplCount() const
Returns the number of DocView templates currently displayed in the Open or Save dialogs used by the D...
TDocTemplate ** GetTmplList() const
Returns the list of templates displayed in the Open or Save dialogs used by the DocManager.
TEventHandler is a base class from which you can derive classes that handle messages.
TFileOpenDialog is a modal dialog box that lets you specify the name of a file to open.
TFileSaveDialog is a modal dialog box that lets you enter the name of a file to save.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TOpenSaveDialog structure contains information about the user's file open or save selection.
Classes that inherit from TStreamableBase are known as streamable classes (their objects can be writt...
Abstract base class for view access from document.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition of class TDocTemplate, and class template TDocTemplateT<D,V>
owl::TDocTemplate * DocTemplateStaticHead
Templates constructed before app get linked onto this head pointer.
Definition of classes TDocument, TView, TWindowView, TStream, TInStream, TOutStream.
#define DECLARE_RESPONSE_TABLE(cls)
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
const uint dtProhibited
Flags which are stripped off when invoking Open/Save dialogs [See SelectDocPath() method for more inf...
const uint dmNoRevert
Disable FileRevert menu item.
const uint dmSDI
Does not support multiple open documents.
const uint dmMenu
Set IDs for file menu.
const uint dmSaveEnable
Enable FileSave even if doc is unmodified.
const uint dmMDI
Supports multiple open documents.
@ dnRename
Document has been renamed.
@ dnCreate
New document or view has been created.
@ dnClose
Document or view has been closed.
Object Windows Library (OWLNext Core)
UINT TMsgId
Message ID type.
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
Definition of TOpenSave abstract, TFileOpen, TFileSave common Dialog classes.