39 RefCnt =
module ? 1 : 0x8001;
119 return (*
RegList)[
"docfilter"];
128 return (*
RegList)[
"description"];
138 return (*
RegList)[
"extension"];
144class TRegListOldDocTemplate :
public TRegList {
155TRegListOldDocTemplate::TRegListOldDocTemplate(
LPCTSTR desc,
164 List[0].Key =
"description";
165 List[0].Value =
desc;
166 List[1].Key =
"docfilter";
167 List[1].Value =
filt;
168 List[2].Key =
"directory";
170 List[3].Key =
"extension";
172 List[4].Key =
"docflags";
173 List[4].Value = FlagBuf;
174 List[5].Key =
nullptr;
194#if defined(__GNUC__) && (__GNUC__ >= 3)
199 RefCnt =
module ? 1 : 0x8001;
207#if OWL_PERSISTENT_STREAMS
220 delete[]
o->Directory;
224 char *
dir =
is.freadString();
228 o->Directory =
is.freadString();
231 delete[]
o->Directory;
241TDocTemplate::Streamer::Write(opstream&
os)
const
243 TDocTemplate*
o = GetObject();
247 os.fwriteString(
_W2A(
o->Directory));
TDocTemplate is an abstract base class that contains document template functionality.
void SetFlag(long flag)
Sets the document template constants, which indicate how the document is created and opened.
LPCTSTR GetDescription() const
Gets the template description to put in the file-selection list box or the File|New menu-selection li...
LPCTSTR GetDefaultExt() const
Gets the default extension to use if the user has entered the name of a file without any extension.
LPCTSTR GetDirectory() const
Gets the directory path to use when searching for matching files.
void SetDirectory(LPCTSTR)
Sets the directory path to use when searching for matching files.
~TDocTemplate()
Destroys a TDocTemplate object and frees the data members (FileFilter, Description,...
TDocTemplate(TRegList ®List, TModule *&module, TDocTemplate *&phead)
Uses the information in the registration table (regList) to construct a TDocTemplate with the specifi...
LPCTSTR GetFileFilter() const
Gets any valid document matching pattern to use when searching for files.
void ClearFlag(long flag)
Clears a document template constant.
long GetFlags() const
Gets the document template constants, which indicate how the document is created and opened.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
A linked structure in which each node points to a list of TRegList objects (or TRegList-derived objec...
static void AddLink(TRegLink **head, TRegLink *newLink)
Adds a new link to the end of the link list.
TRegList * RegList
Pointer to registration parameter table.
A registration parameter table, composed of a list of TRegItems.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Definition of class TDocTemplate, and class template TDocTemplateT<D,V>
#define IMPLEMENT_ABSTRACT_STREAMABLE(cls)
const uint dtDynRegInfo
reginfo table is dynamic, not static
char * strnewdup(const char *s, size_t minAllocSize=0)
Object Windows Library (OWLNext Core)
General definitions used by all ObjectWindows programs.
A single registration list entry.