IAltaxo |
The IAltaxoProjectService type exposes the following members.
Name | Description | |
---|---|---|
AskForSavingOfProject |
Asks the user whether or not the project should be saved, and saves it in case the user answers with yes.
(Inherited from IProjectService) | |
CloseDocumentViews |
Closes all open views for a given document.
(Inherited from IProjectService) | |
CloseProject |
Closes a project. If the project is dirty, and forceClose is false, the user is asked to save the project.
(Inherited from IProjectService) | |
CloseViewContent |
Closes the view content.
(Inherited from IProjectService) | |
CreateDocumentT | Creates a project item, and adds it to the appropriate collection in the current project. Note that there might exist more specialized function to create a certain project item. | |
CreateInitialProject |
Creates the very first document. Used internal into the autostart command.
(Inherited from IProjectService) | |
CreateNewGraph | Creates a new graph document and the view for this newly created graph document. | |
CreateNewGraph(GraphDocument) | Creates a new view content for a graph document. | |
CreateNewGraph(String) | Creates a new graph document and the view for this newly created graph document. | |
CreateNewGraph3D | Creates a new view content for a graph document. | |
CreateNewGraphInFolder | Creates a new graph document in a specified folder and the view for this newly created graph document. | |
CreateNewWorksheet | Creates a new table and the view content for the newly created table. | |
CreateNewWorksheet(DataTable) | Creates a view content for a table. | |
CreateNewWorksheet(DataTable, WorksheetLayout) | Creates a view content for a table. | |
CreateNewWorksheetInFolder | Creates a new table and the view content for the newly created table. | |
DeleteDocument |
This function will delete a project item and close all corresponding views.
(Inherited from IProjectService) | |
DeleteGraphDocument | This function will delete a graph document and close all corresponding views. | |
DeleteTable | This function will delete a data table and close the corresponding views. | |
DisposeProjectAndSetToNull |
Disposes the entire project and sets the current project to null.
Attention: This function is intended to be used during application shutdown only.
(Inherited from IProjectService) | |
ExchangeCurrentProjectArchiveManagerTemporarilyWithoutDisposing |
Exchanges the current project archive manager without disposing the old manager. This function is intended to be used twice in succession:
1st to temporarily exchange the current archive manager by another on, and then to change back the new archive manager with the old one.
(Inherited from IProjectService) | |
ExecuteActionsImmediatelyBeforeRunningApplication |
Executes any neccessary actions immediately before running the main application. When calling this, the services and the workbench are already initialized.
The method can for instance load any files that are given in the command line.
(Inherited from IProjectService) | |
GetMainWindowTitle |
Gets the title that should be shown as the main window title.
(Inherited from IProjectService) | |
GetOpenDocuments |
Gets a set of all open documents, i.e. GraphDocuments, DataTables. (Not Worksheets).
(Inherited from IProjectService) | |
GetProjectItemImageExporter | Gets an exporter that can be used to export an image of the provided project item. | |
HasDocumentAnOpenView |
Returns true if the given document has at least one open view in the workbench.
(Inherited from IProjectService) | |
IsProjectFileExtension |
Determines whether the provided file extension is a project extension.
(Inherited from IProjectService) | |
OpenOrCreateGraphForGraphDocument |
Opens a view that shows the graph C# graph | |
OpenOrCreateViewContentForDocument | Opens a view that shows the document document. If no view for the document can be found, a new default view is created. | |
OpenOrCreateWorksheetForTable |
Opens a view that shows the table C# table | |
OpenProject |
Opens a Altaxo project. If the current project is dirty, and showUserInteraction is true, the user is ask to save the current project before.
(Inherited from IProjectService) | |
OpenProjectFromArchive |
Opens a project from an archive. This function is intended for opening the project from a COM stream on a freshly started application.
Thus it is assumed that no old project has to be saved before!
(Inherited from IProjectService) | |
RemoveGraph | This will remove the Graph from the corresponding forms collection. | |
RemoveGraph3D | This will remove the Graph from the corresponding forms collection. | |
RemoveWorksheet | This will remove the Worksheet from the corresponding forms collection. | |
SaveProject |
Saves a project under the current file name.
(Inherited from IProjectService) | |
SaveProject(IProjectArchive) |
Saves the project in the provided archive. Is intended for saving the project into a COM stream only.
For regular saving into the file system, use one of the other Save.. methods.
(Inherited from IProjectService) | |
SaveProject(PathName) |
Saves the project under the given file name, using the standard archive format.
(Inherited from IProjectService) | |
SaveProjectAs |
Asks the user for a file name for the current project, and then saves the project under the given name.
(Inherited from IProjectService) | |
SaveProjectCopyAs |
This command is used if in embedded object mode.
It saves the current project to a file,
but don't set the current file name of the project (in project service).
Furthermore, the title in the title bar is not influenced by the saving.
(Inherited from IProjectService) | |
ShowDocumentView |
Shows a view for the given document.
(Inherited from IProjectService) | |
TryOpenProjectItemFile |
Tests if the provided file name to have an extension that is associated with the extension of a project item
(a specific item of the project), and if it is, tries to open the project item and adds it to the current project.
(Inherited from IProjectService) |