Click or drag to resize

TextDocumentController Class

Controls the view of a text document.
Inheritance Hierarchy
SystemObject
  Altaxo.Gui.WorkbenchAbstractViewContent
    Altaxo.Gui.Text.ViewingTextDocumentController

Namespace: Altaxo.Gui.Text.Viewing
Assembly: AltaxoDom (in AltaxoDom.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class TextDocumentController : AbstractViewContent, 
	IDisposable, IMVCANController, IMVCAController, IMVCController, IApplyController, 
	ITextDocumentController

The TextDocumentController type exposes the following members.

Constructors
 NameDescription
Public methodTextDocumentController Initializes a new instance of the TextDocumentController class.
Public methodTextDocumentController(TextDocument) Initializes a new instance of the TextDocumentController class.
Top
Properties
 NameDescription
Public propertyCloseCommand Gets the command that closes the view content.
(Inherited from AbstractViewContent)
Public propertyCloseWithSolution Gets whether this view content should be closed when the solution is closed.
(Inherited from AbstractViewContent)
Public propertyContentId Gets or sets the content identifier. Here, the content identifier is calculated of the reference hash of the document. Setting is not implemented here.
(Inherited from AbstractViewContent)
Public propertyIconSource Gets or sets the icon source.
(Inherited from AbstractViewContent)
Public propertyInfoTip Gets or sets the informational tooltip for the view content.
(Inherited from AbstractViewContent)
Public propertyInitiallyFocusedControl Gets the control which has focus initially.
(Inherited from AbstractViewContent)
Public propertyIsActive Gets or sets a value indicating whether the view of this instance is active in the UI.
(Inherited from AbstractViewContent)
Public propertyIsContentVisible Gets a value indicating whether the content of this document window is visible (it is if either IsActive or IsSelected is visible.
(Inherited from AbstractViewContent)
Public propertyIsDirty If this property returns true the content has changed since the last load/save operation.
(Inherited from AbstractViewContent)
Public propertyIsDisposed Gets a value indicating whether the view content has been disposed.
(Inherited from AbstractViewContent)
Public propertyIsDisposeInProgress Gets or sets a value indicating whether disposal is in progress.
(Inherited from AbstractViewContent)
Public propertyIsOutlineVisible Gets or sets a value indicating whether the outline is visible.
Public propertyIsReadOnly Gets if the view content is read-only (can be saved only when choosing another file name).
(Inherited from AbstractViewContent)
Public propertyIsSelected Gets or sets a value indicating whether the view of this instance is selected (e.g. inside its container).
(Inherited from AbstractViewContent)
Public propertyIsViewOnly Gets if the view content is view-only (cannot be saved at all).
(Inherited from AbstractViewContent)
Public propertyIsVisible Gets or sets the visibility of the document. If false, the document tab header is not visible (but the document itself maybe visible !). If true, the document tab header is visible (if it fits in the bar), and the document is visible, if it is selected, too.
(Inherited from AbstractViewContent)
Public propertyModelObject Gets the model (document) that this controller manages.
(Overrides AbstractViewContentModelObject)
Public propertyServices Gets or sets the service container for the view content.
(Inherited from AbstractViewContent)
Public propertyTextDocument Gets the text document managed by this controller.
Public propertyTitle Gets/Sets the title of the current tab page. This value will be passed through the string parser before being displayed.
(Inherited from AbstractViewContent)
Public propertyUseDocumentCopy Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied, all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes cannot be reverted. Use the last option if a controller higher in the hierarchy has already made a copy of the document.
Public propertyViewObject Gets or sets the GUI element that shows the model to the user.
(Overrides AbstractViewContentViewObject)
Top
Methods
 NameDescription
Public methodApply Called when the user input has to be applied to the document being controlled. Returns if apply is successful.
Public methodBuildNavPoint Builds an INavigationPoint for the current position.
(Inherited from AbstractViewContent)
Public methodCanAcceptImageFileName Tests if the provided file name could be accepted as an image.
Protected methodCanClose Determines whether the view content can be closed.
(Inherited from AbstractViewContent)
Public methodCanPaste Determines whether this controller can accept the current clipboard data. If the return value is , the controller is used to paste the clipboard data via Paste; otherwise, pasting is delegated to the source editor.
Public methodClearIsDirty Clears the dirty state.
(Inherited from AbstractViewContent)
Public methodCopyTextWithImages Copies the text with the local images to the clipboard.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Overrides AbstractViewContentDispose)
Public methodEhBeforeCompleteRendering Notifies the controller immediately before rendering completes.
Public methodEhFractionOfEditorWindowChanged Notifies the controller that the editor window fraction changed.
Public methodEhIsViewerSelectedChanged Notifies the controller that the viewer selection state changed.
Public methodEhReferencedImageUrlsChanged Notifies the controller that the referenced local image URLs changed.
Protected methodEhTitleLocalizationChanged Updates the title when the localized title changes.
(Inherited from AbstractViewContent)
Public methodEhViewerConfigurationChanged Notifies the controller that the viewer configuration changed.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExpandTextDocumentIntoNewDocument Expands the current text document and stores it into a new text document in the same project folder.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetService(Type)Gets the service object of the specified type.
(Inherited from AbstractViewContent)
Public methodGetServiceT Gets a required service of the specified type.
(Inherited from AbstractViewContent)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitialize Initializes the view state.
Public methodInitializeDocument Initializes the controller with the document.
Public methodInsertImageInDocumentAndGetUrl(String) Inserts an image file into the document and returns the inserted image URL.
Public methodInsertImageInDocumentAndGetUrl(Stream, String) Inserts an image stream into the document and returns the inserted image URL.
Public methodInsertSourceTextAtCaretPosition Inserts the source text at caret position.
Protected methodInternalInitializeDocument Initializes the controller with the provided view options.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNotifyContentIdChanged Can be used to notify the view content that the ContentId maybe has changed.
(Inherited from AbstractViewContent)
Protected methodOnClose Closes the view content.
(Inherited from AbstractViewContent)
Public methodOnIsDirtyChanged Raises notifications that the dirty state has changed.
(Inherited from AbstractViewContent)
Protected methodOnPropertyChanged Raises the PropertyChanged event.
(Inherited from AbstractViewContent)
Public methodPaste Pastes data from the clipboard in the document managed by this controller.
Public methodPrintShowDialog Shows the print dialog for the current document.
Public methodRenumerateFigures Renumerates the figures in the current text document.
Public methodRevert Try to revert changes to the model, i.e. restores the original state of the model.
Public methodSetDirty Sets the dirty state.
(Inherited from AbstractViewContent)
Public methodSetDisposeInProgress Announces that this view content is about to be disposed very soon. The view content should remain passiv (e.g. should not react to events any more), but should not release its resources yet (this is done later in Dispose).
(Inherited from AbstractViewContent)
Protected methodSetLocalizedInfoTip Sets a localized info tip that will update automatically when the language changes.
(Inherited from AbstractViewContent)
Protected methodSetLocalizedTitle Sets a localized title that will update automatically when the language changes.
(Inherited from AbstractViewContent)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventDisposed Occurs when the view content has been disposed.
(Inherited from AbstractViewContent)
Public eventIsDirtyChanged Occurs when the dirty state changes.
(Inherited from AbstractViewContent)
Public eventPropertyChangedOccurs when a property value changes.
(Inherited from AbstractViewContent)
Top
Fields
 NameDescription
Protected field_isActive Stores whether the view content is active.
(Inherited from AbstractViewContent)
Protected field_isSelected Stores whether the view content is selected.
(Inherited from AbstractViewContent)
Protected field_isVisible Stores whether the view content is visible.
(Inherited from AbstractViewContent)
Protected field_title Stores the current title.
(Inherited from AbstractViewContent)
Protected field_titleToBeLocalized Stores the localized title source.
(Inherited from AbstractViewContent)
Protected field_view The view associated with this controller.
Protected field_weakEventHandlerForDoc_TunneledEvent Weak event handler for tunneled document events.
Top
See Also