Skip to main content
Namespace: VM.Managed.DAFUL.Pre
Assembly: dfpredat.dll
This class is to represent the Pre.

Inheritance

object ← Pre

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

Pre()

Properties

ActiveDocument

Gets the active document.

Property Value

IDocument

ActiveDocumentViewModel

Gets the active document viewmodel.

Property Value

IDocumentViewModel

ApplicationCore

Gets the application core.

Property Value

Application

Core

Gets or sets the core.

Property Value

IPre

CreateFileName

Gets or sets the name of the create file.

Property Value

string

DialogManager

Gets the dialog manager.

Property Value

IDlgManager

DocumentInfo

Gets or sets the document info.

Property Value

List<DocInfo>

GlobalJournal

Gets the global journal.

Property Value

JournalRecorder

LocalJournal

Gets the local journal.

Property Value

JournalRecorder

MainWindow

Gets the main window.

Property Value

IMainWindow

Settings

Gets the application settings.

Property Value

Settings

TemplateInfo

Gets or sets the template info.

Property Value

Dictionary<string, UIntPtr>

UnUseMRU

Gets or sets a value indicating whether [un use MRU].

Property Value

bool

Version

Gets the version.

Property Value

string

WriteDFG

Gets or sets the WriteDFG flag.

Property Value

bool

Methods

AutoSave()

Auto save.

CloseAllFile()

Closes all file.

CloseAllFileExceptWork()

Closes all file except work.

CloseFile(string)

Closes the file.

Parameters

strFileName string Name of the file.

Returns

bool true if success; otherwise, false.

CloseFile(string, bool)

Closes the file.

Parameters

strFileName string Name of the STR file. bUseWork bool if set to true [b use work].

Returns

bool

CloseFile(string, bool, bool)

Closes the file.

Parameters

strFileName string Name of the string file. bUseWork bool if set to true [b use work]. bActivate bool if set to true [b activate].

Returns

bool

CloseHiddenFile(string)

Closes the hidden file.

Parameters

strFileName string Name of the string file.

Returns

bool

CloseWork()

Close work.

CreateDocument(string)

Creates the document.

Parameters

strFileName string Name of the file.

Returns

Document The document.

CreateDocument(string, bool)

Creates the document.

Parameters

strFileName string Name of the file. bActivate bool if set to true [b activate].

Returns

Document The document.

CreateDocument(string, bool, string)

Creates the document.

Parameters

strFileName string Name of the STR file. bActivate bool if set to true [b activate]. strDocCreateInfo string The STR doc create info.

Returns

Document

CreateDocument(string, bool, DocCreateInfo)

Creates the document.

Parameters

strFileName string Name of the STR file. bActivate bool if set to true [b activate]. docCreateInfo DocCreateInfo The doc create info.

Returns

Document

CreateDocument(string, bool, string, bool)

Creates the document.

Parameters

strFileName string Name of the string file. bActivate bool if set to true [b activate]. strDocCreateInfo string The string document create information. bDesigner bool if set to true [b designer].

Returns

Document

Fit(string)

Fits the specified string path name.

Parameters

strPathName string Name of the string path.

GetAllOpenDocument()

Gets all document.

Returns

List<Document>

GetDocumentFromOpenedDocument(string)

Gets the document from opened document.

Parameters

strFileName string Name of the STR file.

Returns

Document

GetMode()

Gets the mode.

Returns

string The mode type.

IsOpenDocument(string)

Determines whether [is open document] [the specified file name].

Parameters

strFileName string Name of the file.

Returns

bool true if is open document; otherwise, false.

NewFile(NewFile)

New file.

Parameters

nf NewFile The new file information.

NewModel(NewModel)

New model.

Parameters

nM NewModel The new model information.

OpenDocument(string)

Opens the document.

Parameters

strFileName string Name of the file.

Returns

Document The document.

OpenDocument(string, bool)

Opens the document.

Parameters

strFileName string Name of the file. bActivate bool if set to true [b activate].

Returns

Document The document.

OpenDocumentFile(string)

Opens the document file.

Parameters

strFileName string Name of the STR file.

Returns

Document

OpenFile(string, string)

Opens the file.

Parameters

strFileName string Name of the file. strRefDir string The reference directory.

Returns

GroupItem The file informaton class.

OpenHiddenDocument(object)

Opens the hidden document.

Parameters

obj object The object.

Returns

Document

OpenModel(string)

Open model.

Parameters

strFileName string The file name.

Returns

Model

OpenWork(string)

Opens the work.

Parameters

strFileName string Name of the STR file.

Returns

Work

SaveAllFile()

Saves all file.

Returns

SaveAllResult

SaveFile()

Save the file.

SaveFile(string)

Saves the file.

Parameters

strPath string The STR path.

SaveFile(Document, string)

Saves the file.

Parameters

doc Document The doc. strFileName string Name of the STR file.

SaveFile(Document, string, bool)

Saves the file.

Parameters

doc Document The doc. strFileName string Name of the STR file. bIgnoreExternChange bool if set to true [b ignore extern change].

SaveModel(string)

Saves the model.

Parameters

strFileName string Name of the file.

SaveWork(string)

Saves the work.

Parameters

strFileName string Name of the file.

SetPathName(string, string)

Set path name.

Parameters

strOldPath string The old path. strNewPath string The new path.

SetProgressState(int)

Set taskbar progress state.

Parameters

nStats int 0x0 : NOPROGRESS, 0x1 : INDETERMINATE, 0x2 : NORMAL, 0x4 : ERROR, 0x8 : PAUSED

SetProgressValue(ulong, ulong)

Set taskbar progress value.

Parameters

nCompleted ulong The completed value. nTotal ulong The total value.

SetStatusBar(string)

Set status bar.

Parameters

strMessage string The message.

OnActiveDocumentChanged

Occurs when [on active document changed].

Event Type

EventHandler

OnActiveViewChanged

Occurs when [on active view changed].

Event Type

EventHandler