├── examples ├── MM2LaTeX │ ├── test.pdf │ ├── Test_LaTeX.mmap │ ├── test.tex │ └── MindMan2LaTeX.xsl ├── DialogAddinSetup.msi ├── CSharpAddIn │ ├── AddIn.snk │ ├── obj │ │ ├── Debug │ │ │ ├── AddIn.dll.incr │ │ │ ├── AddIn.projdata │ │ │ ├── AddIn.Installer1.resources │ │ │ └── AddIn.sampleForm.resources │ │ └── Release │ │ │ ├── AddIn.dll.incr │ │ │ └── AddIn.projdata │ ├── AddIn.sln.old │ ├── AddIn.sln │ ├── Installer1.resx │ ├── AssemblyInfo.cs │ ├── Utility.cs │ ├── Installer1.cs │ ├── Connect.cs │ ├── AddIn.csproj │ ├── documentation.xml │ └── bin │ │ └── Debug │ │ └── documentation.xml ├── references │ ├── Example for Referencing Macro.mmap │ └── macReferences.mmbas ├── ExamplMindManagerAddin │ ├── ExamplMindManagerAddin │ │ ├── bin │ │ │ └── Project1.xml │ │ ├── obj │ │ │ └── Debug │ │ │ │ ├── Project1.xml │ │ │ │ └── ExamplMindManagerAddin.vbproj.FileListAbsolute.txt │ │ ├── AssemblyInfo.vb │ │ ├── Ribbons.vb │ │ ├── Connect.vb │ │ ├── ExampleRibbonGroup.vb │ │ └── ExamplMindManagerAddin.vbproj │ ├── ExamplMindManagerAddinSetup │ │ └── Debug │ │ │ └── ExamplMindManagerAddinSetup.msi │ └── ExamplMindManagerAddin.sln ├── -FlattenTheTree.mmbas ├── -DumpMapMarkers.mmbas ├── -FlattenTheTree1.3.mmbas ├── -FlattenCurrentNode (1).mmbas ├── -FlattenCurrentNode.mmbas ├── resource-cross-reference │ ├── EndExport.mmbas │ └── ToolsCntOutItem.mmbas └── -macWordCount.mmbas ├── README.md ├── docs ├── -MM 5 Object Model Hierarchy.mmap ├── API-Object-Reference │ ├── Mindjet 11 API Help v631.chm │ ├── Mindjet 11 API Help v631.chw │ ├── Mindjet 11 API Concepts v631.pdf │ ├── Mindjet 11 API Concepts v642.docx │ ├── Mindjet 11 API Concepts v642.pdf │ ├── Mindjet 11 API Concepts v631 R3.docx │ ├── 2016-02 Mind Manager API Concepts.mmap │ ├── Mindjet 11 for Windows API 631 to 642 diffs.docx │ └── Mind Manager Object Model Reference for V7.html ├── VB-Sax-WinWrap-Language-Reference │ ├── SAX Basic Language Reference.docx │ └── SAX Basic Language Reference.pdf └── xsl-reference │ ├── schemas.mindjet.com.MindManager.Delta.2003.xml │ └── schemas.mindjet.com.MindManager.Core.2003.xml ├── yahoo-dev-group-files ├── -CSharpAddIn.zip ├── -netviewer_mm_en.zip ├── -DialogAddinSetup.zip ├── -References Macro.zip ├── -mmap2LaTeX_Setup.msi ├── -MindMan2LaTeX_V001.zip ├── -ExamplMindManagerAddin.zip └── -Resource Crossreference.zip └── LICENSE /examples/MM2LaTeX/test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/MM2LaTeX/test.pdf -------------------------------------------------------------------------------- /examples/DialogAddinSetup.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/DialogAddinSetup.msi -------------------------------------------------------------------------------- /examples/CSharpAddIn/AddIn.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/CSharpAddIn/AddIn.snk -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mindManagerMacros 2 | Short collection of Macros for the Commercial Mind Mapping program 'Mind Manager' from Mindjet 3 | -------------------------------------------------------------------------------- /examples/MM2LaTeX/Test_LaTeX.mmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/MM2LaTeX/Test_LaTeX.mmap -------------------------------------------------------------------------------- /docs/-MM 5 Object Model Hierarchy.mmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/-MM 5 Object Model Hierarchy.mmap -------------------------------------------------------------------------------- /yahoo-dev-group-files/-CSharpAddIn.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/yahoo-dev-group-files/-CSharpAddIn.zip -------------------------------------------------------------------------------- /yahoo-dev-group-files/-netviewer_mm_en.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/yahoo-dev-group-files/-netviewer_mm_en.zip -------------------------------------------------------------------------------- /yahoo-dev-group-files/-DialogAddinSetup.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/yahoo-dev-group-files/-DialogAddinSetup.zip -------------------------------------------------------------------------------- /yahoo-dev-group-files/-References Macro.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/yahoo-dev-group-files/-References Macro.zip -------------------------------------------------------------------------------- /yahoo-dev-group-files/-mmap2LaTeX_Setup.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/yahoo-dev-group-files/-mmap2LaTeX_Setup.msi -------------------------------------------------------------------------------- /examples/CSharpAddIn/obj/Debug/AddIn.dll.incr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/CSharpAddIn/obj/Debug/AddIn.dll.incr -------------------------------------------------------------------------------- /examples/CSharpAddIn/obj/Debug/AddIn.projdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/CSharpAddIn/obj/Debug/AddIn.projdata -------------------------------------------------------------------------------- /examples/CSharpAddIn/obj/Release/AddIn.dll.incr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/CSharpAddIn/obj/Release/AddIn.dll.incr -------------------------------------------------------------------------------- /examples/CSharpAddIn/obj/Release/AddIn.projdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/CSharpAddIn/obj/Release/AddIn.projdata -------------------------------------------------------------------------------- /yahoo-dev-group-files/-MindMan2LaTeX_V001.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/yahoo-dev-group-files/-MindMan2LaTeX_V001.zip -------------------------------------------------------------------------------- /yahoo-dev-group-files/-ExamplMindManagerAddin.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/yahoo-dev-group-files/-ExamplMindManagerAddin.zip -------------------------------------------------------------------------------- /yahoo-dev-group-files/-Resource Crossreference.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/yahoo-dev-group-files/-Resource Crossreference.zip -------------------------------------------------------------------------------- /docs/API-Object-Reference/Mindjet 11 API Help v631.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/API-Object-Reference/Mindjet 11 API Help v631.chm -------------------------------------------------------------------------------- /docs/API-Object-Reference/Mindjet 11 API Help v631.chw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/API-Object-Reference/Mindjet 11 API Help v631.chw -------------------------------------------------------------------------------- /examples/references/Example for Referencing Macro.mmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/references/Example for Referencing Macro.mmap -------------------------------------------------------------------------------- /examples/CSharpAddIn/obj/Debug/AddIn.Installer1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/CSharpAddIn/obj/Debug/AddIn.Installer1.resources -------------------------------------------------------------------------------- /examples/CSharpAddIn/obj/Debug/AddIn.sampleForm.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/CSharpAddIn/obj/Debug/AddIn.sampleForm.resources -------------------------------------------------------------------------------- /docs/API-Object-Reference/Mindjet 11 API Concepts v631.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/API-Object-Reference/Mindjet 11 API Concepts v631.pdf -------------------------------------------------------------------------------- /docs/API-Object-Reference/Mindjet 11 API Concepts v642.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/API-Object-Reference/Mindjet 11 API Concepts v642.docx -------------------------------------------------------------------------------- /docs/API-Object-Reference/Mindjet 11 API Concepts v642.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/API-Object-Reference/Mindjet 11 API Concepts v642.pdf -------------------------------------------------------------------------------- /docs/API-Object-Reference/Mindjet 11 API Concepts v631 R3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/API-Object-Reference/Mindjet 11 API Concepts v631 R3.docx -------------------------------------------------------------------------------- /docs/API-Object-Reference/2016-02 Mind Manager API Concepts.mmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/API-Object-Reference/2016-02 Mind Manager API Concepts.mmap -------------------------------------------------------------------------------- /docs/VB-Sax-WinWrap-Language-Reference/SAX Basic Language Reference.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/VB-Sax-WinWrap-Language-Reference/SAX Basic Language Reference.docx -------------------------------------------------------------------------------- /docs/VB-Sax-WinWrap-Language-Reference/SAX Basic Language Reference.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/VB-Sax-WinWrap-Language-Reference/SAX Basic Language Reference.pdf -------------------------------------------------------------------------------- /docs/API-Object-Reference/Mindjet 11 for Windows API 631 to 642 diffs.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/docs/API-Object-Reference/Mindjet 11 for Windows API 631 to 642 diffs.docx -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin/bin/Project1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Project1 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin/obj/Debug/Project1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Project1 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddinSetup/Debug/ExamplMindManagerAddinSetup.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CuchulainX/mindManagerMacros/HEAD/examples/ExamplMindManagerAddin/ExamplMindManagerAddinSetup/Debug/ExamplMindManagerAddinSetup.msi -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System.Reflection 2 | Imports System.Runtime.InteropServices 3 | 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | 'TODO: Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | ' Version information for an assembly consists of the following four values: 20 | ' 21 | ' Major Version 22 | ' Minor Version 23 | ' Revision 24 | ' Build Number 25 | ' 26 | ' You can specify all the values or you can default the Build and Revision Numbers 27 | ' by using the '*' as shown below: 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin/obj/Debug/ExamplMindManagerAddin.vbproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\bin\Project1.dll 2 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\bin\Project1.pdb 3 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\bin\Project1.xml 4 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\bin\Project1.tlb 5 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\obj\Debug\ResolveAssemblyReference.cache 6 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\obj\Debug\ExamplMindManagerAddin.vbproj.ResolveComReference.cache 7 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\obj\Debug\Project1.dll 8 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\obj\Debug\Project1.xml 9 | C:\Users\Olympic\Documents\Visual Studio 2008\Projects\ExamplMindManagerAddin\ExamplMindManagerAddin\obj\Debug\Project1.pdb 10 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/AddIn.sln.old: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 7.00 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddIn", "AddIn.csproj", "{DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}" 3 | EndProject 4 | Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "AddInSetup", "AddInSetup\AddInSetup.vdproj", "{6BD20251-55F3-4096-8D41-1E7C47D74BF5}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | ConfigName.0 = Debug 9 | ConfigName.1 = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectDependencies) = postSolution 12 | EndGlobalSection 13 | GlobalSection(ProjectConfiguration) = postSolution 14 | {DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}.Debug.ActiveCfg = Debug|.NET 15 | {DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}.Debug.Build.0 = Debug|.NET 16 | {DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}.Release.ActiveCfg = Release|.NET 17 | {DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}.Release.Build.0 = Release|.NET 18 | {6BD20251-55F3-4096-8D41-1E7C47D74BF5}.Debug.ActiveCfg = Debug 19 | {6BD20251-55F3-4096-8D41-1E7C47D74BF5}.Release.ActiveCfg = Release 20 | EndGlobalSection 21 | GlobalSection(ExtensibilityGlobals) = postSolution 22 | EndGlobalSection 23 | GlobalSection(ExtensibilityAddIns) = postSolution 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/AddIn.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddIn", "AddIn.csproj", "{DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "AddInSetup", "AddInSetup\AddInSetup.vdproj", "{6BD20251-55F3-4096-8D41-1E7C47D74BF5}" 7 | ProjectSection(ProjectDependencies) = postProject 8 | EndProjectSection 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfiguration) = preSolution 12 | Debug = Debug 13 | Release = Release 14 | EndGlobalSection 15 | GlobalSection(ProjectConfiguration) = postSolution 16 | {DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}.Debug.ActiveCfg = Debug|.NET 17 | {DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}.Debug.Build.0 = Debug|.NET 18 | {DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}.Release.ActiveCfg = Release|.NET 19 | {DC0E6262-B05B-47D3-9B7B-8187B6CE0FBE}.Release.Build.0 = Release|.NET 20 | {6BD20251-55F3-4096-8D41-1E7C47D74BF5}.Debug.ActiveCfg = Debug 21 | {6BD20251-55F3-4096-8D41-1E7C47D74BF5}.Release.ActiveCfg = Release 22 | EndGlobalSection 23 | GlobalSection(ExtensibilityGlobals) = postSolution 24 | EndGlobalSection 25 | GlobalSection(ExtensibilityAddIns) = postSolution 26 | EndGlobalSection 27 | EndGlobal 28 | -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ExamplMindManagerAddin", "ExamplMindManagerAddin\ExamplMindManagerAddin.vbproj", "{E1AEAD27-7DD2-435E-9384-6F4F623320A8}" 5 | EndProject 6 | Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "ExamplMindManagerAddinSetup", "ExamplMindManagerAddinSetup\ExamplMindManagerAddinSetup.vdproj", "{A06B4D2D-9189-40CB-B7B7-AB6D30C5094D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E1AEAD27-7DD2-435E-9384-6F4F623320A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {E1AEAD27-7DD2-435E-9384-6F4F623320A8}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {E1AEAD27-7DD2-435E-9384-6F4F623320A8}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {E1AEAD27-7DD2-435E-9384-6F4F623320A8}.Release|Any CPU.Build.0 = Release|Any CPU 18 | {A06B4D2D-9189-40CB-B7B7-AB6D30C5094D}.Debug|Any CPU.ActiveCfg = Debug 19 | {A06B4D2D-9189-40CB-B7B7-AB6D30C5094D}.Release|Any CPU.ActiveCfg = Release 20 | EndGlobalSection 21 | GlobalSection(SolutionProperties) = preSolution 22 | HideSolutionNode = FALSE 23 | EndGlobalSection 24 | EndGlobal 25 | -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin/Ribbons.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Collections.Generic 3 | Imports System.Text 4 | Imports mm = Mindjet.MindManager.Interop 5 | 6 | Public Class Ribbons 7 | 8 | Public Shared Function CreateRibbon(ByVal m_app As mm.Application, ByVal ribbonDisplayName As String, ByVal ribbonURI As String) As mm.ribbonTab 9 | 10 | Dim rb As mm.RibbonTabs 11 | rb = m_app.Ribbon.Tabs 12 | Dim addinRibbonTab As mm.ribbonTab = Nothing 13 | Dim found As Boolean = False 14 | For Each atab As mm.ribbonTab In rb 15 | If atab.Uri = ribbonURI Then 16 | found = True 17 | addinRibbonTab = atab 18 | ' Break 19 | End If 20 | Next 21 | If found Then 22 | Return addinRibbonTab 23 | Else 24 | addinRibbonTab = rb.Add(rb.Count, ribbonDisplayName, ribbonURI) 25 | End If 26 | Return addinRibbonTab 27 | 28 | End Function 29 | 30 | Public Shared Function CreateGroupTab(ByVal ribbontab As mm.ribbonTab, ByVal Displayname As String, ByVal URI As String) As mm.RibbonGroup 31 | 32 | For Each aRg As mm.RibbonGroup In ribbontab.Groups 33 | If aRg.Uri = URI Then 34 | Return aRg 35 | End If 36 | Next 37 | Return ribbontab.Groups.Add(ribbontab.Groups.Count, Displayname, URI, String.Empty) 38 | 39 | End Function 40 | 41 | End Class 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/Installer1.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | text/microsoft-resx 32 | 33 | 34 | 1.0.0.0 35 | 36 | 37 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 38 | 39 | 40 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 41 | 42 | 43 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | 10 | //TODO Change the AssemblyTitle attribute to the title of the application. 11 | [assembly: AssemblyTitle("")] 12 | [assembly: AssemblyDescription("")] 13 | [assembly: AssemblyConfiguration("")] 14 | [assembly: AssemblyCompany("")] 15 | [assembly: AssemblyProduct("")] 16 | [assembly: AssemblyCopyright("")] 17 | [assembly: AssemblyTrademark("")] 18 | [assembly: AssemblyCulture("")] 19 | 20 | // 21 | // Version information for an assembly consists of the following four values: 22 | // 23 | // Major Version 24 | // Minor Version 25 | // Revision 26 | // Build Number 27 | // 28 | // You can specify all the value or you can default the Revision and Build Numbers 29 | // by using the '*' as shown below: 30 | 31 | [assembly: AssemblyVersion("1.0.*")] 32 | 33 | // 34 | // In order to sign your assembly you must specify a key to use. Refer to the 35 | // Microsoft .NET Framework documentation for more information on assembly signing. 36 | // 37 | // Use the attributes below to control which key is used for signing. 38 | // 39 | // Notes: 40 | // (*) If no key is specified - the assembly cannot be signed. 41 | // (*) KeyName refers to a key that has been installed in the Crypto Service 42 | // Provider (CSP) on your machine. 43 | // (*) If the key file and a key name attributes are both specified, the 44 | // following processing occurs: 45 | // (1) If the KeyName can be found in the CSP - that key is used. 46 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 47 | // in the file is installed into the CSP and used. 48 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 49 | // documentation for more information on this. 50 | // 51 | [assembly: AssemblyDelaySign(false)] 52 | 53 | // Note: A strong name key has been generated. If you wish to use it, uncomment the following line: 54 | // 55 | 56 | [assembly: AssemblyKeyName("")] 57 | -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin/Connect.vb: -------------------------------------------------------------------------------- 1 | imports Extensibility 2 | imports System.Runtime.InteropServices 3 | 4 | #Region " Read me for Add-in installation and setup information. " 5 | ' When run, the Add-in wizard prepared the registry for the Add-in. 6 | ' At a later time, if the Add-in becomes unavailable for reasons such as: 7 | ' 1) You moved this project to a computer other than which is was originally created on. 8 | ' 2) You chose 'Yes' when presented with a message asking if you wish to remove the Add-in. 9 | ' 3) Registry corruption. 10 | ' you will need to re-register the Add-in by building the $SAFEOBJNAME$Setup project, 11 | ' right click the project in the Solution Explorer, then choose install. 12 | #End Region 13 | 14 | _ 15 | Public Class Connect 16 | 17 | Implements Extensibility.IDTExtensibility2 18 | 19 | Private m_applicationObject As Mindjet.MindManager.Interop.Application 20 | Private o_addInInstance As Object 21 | 22 | Dim myRibbon As MindManagerRibbon.ExampleRibbonGroup 23 | 24 | Public Sub OnBeginShutdown(ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnBeginShutdown 25 | End Sub 26 | 27 | Public Sub OnAddInsUpdate(ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnAddInsUpdate 28 | End Sub 29 | 30 | Public Sub OnStartupComplete(ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnStartupComplete 31 | End Sub 32 | 33 | Public Sub OnDisconnection(ByVal RemoveMode As Extensibility.ext_DisconnectMode, ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnDisconnection 34 | 35 | m_applicationObject = Nothing 36 | o_addInInstance = Nothing 37 | 38 | myRibbon.Dispose() 39 | 40 | System.GC.Collect() 41 | 42 | MsgBox("Goodbye MindManager Debvelopment Universe!") 43 | 44 | End Sub 45 | 46 | Public Sub OnConnection(ByVal application As Object, ByVal connectMode As Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnConnection 47 | 48 | m_applicationObject = CType(application, Mindjet.MindManager.Interop.Application) 49 | o_addInInstance = addInInst 50 | 51 | myRibbon = New MindManagerRibbon.ExampleRibbonGroup(m_applicationObject) 52 | 53 | MsgBox("Hello MindManager Development Universe!") 54 | 55 | End Sub 56 | 57 | End Class 58 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/Utility.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // Copyright 2005 Mindjet LLC, Larkspur, CA USA. All rights reserved. 3 | // 4 | // This software is furnished under a license and may be used and copied 5 | // only in accordance of the terms of such license and with the inclusion 6 | // of the above copyright note. This software or any other copies thereof 7 | // may not be provided or otherwise made available to any other person. No 8 | // title to and ownership of the software is hereby transferred. 9 | // 10 | // The information in this software is subject to change without notice and 11 | // should not be construed as a commitment by Mindjet LLC. 12 | //------------------------------------------------------------------------------ 13 | 14 | using System; 15 | 16 | namespace Mindjet 17 | { 18 | /// 19 | /// Utility Class 20 | /// 21 | public class Utility 22 | { 23 | #region Constant Data 24 | #endregion 25 | 26 | #region Member Data 27 | #endregion 28 | 29 | #region Constructors/Destructor 30 | 31 | /// 32 | /// Default Constructor 33 | /// 34 | public Utility() 35 | { 36 | // 37 | // TODO: Add constructor logic here 38 | // 39 | } 40 | #endregion 41 | 42 | #region Properties 43 | /// 44 | /// the Assembly Title 45 | /// 46 | public static string AssemblyTitle 47 | { 48 | get 49 | { 50 | object[] attributes = typeof(Utility).Assembly.GetCustomAttributes(typeof(System.Reflection.AssemblyTitleAttribute), true); 51 | 52 | System.Reflection.AssemblyTitleAttribute attribute = (System.Reflection.AssemblyTitleAttribute) attributes[0]; 53 | 54 | return attribute.Title; 55 | } 56 | } 57 | 58 | #endregion 59 | 60 | #region Methods 61 | /// 62 | /// Show a message box with the error details. 63 | /// 64 | /// an exception 65 | public static void HandleError(System.Exception se) 66 | { 67 | string text = string.Format("{0}\n{1}", se.Message, se.StackTrace); 68 | 69 | System.Windows.Forms.MessageBox.Show(null, text, AssemblyTitle, 70 | System.Windows.Forms.MessageBoxButtons.OK, 71 | System.Windows.Forms.MessageBoxIcon.Error); 72 | } 73 | 74 | /// 75 | /// Release A COM object 76 | /// 77 | /// 78 | /// 79 | public static bool Release(object o) 80 | { 81 | if (o != null) 82 | { 83 | System.Runtime.InteropServices.Marshal.ReleaseComObject(o); 84 | 85 | o = null; 86 | 87 | return true; 88 | } 89 | 90 | return false; 91 | } 92 | #endregion 93 | 94 | #region Implementation 95 | #endregion 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /examples/-FlattenTheTree.mmbas: -------------------------------------------------------------------------------- 1 | ' ++++++++++++++++++++++++++++++++++++++++++ 2 | ' File Name: flattenthetree.mmbas 3 | ' Author: Steve Collier-Smith 4 | ' Created: 25 April 2005 5 | ' Description: Takes tree structure and creates single string for each path 6 | ' through the tree, then creates a new topic with all paths as note text 7 | ' 8 | '++++++++++++++++++++++++++++++++++++++++++++ 9 | ' Revision History 10 | ' Rev Date Summary of changes 11 | ' 1.2 26/04/2005 Array elements only added for each 'end' topic, not every topic 12 | ' Places extracted text on the clipboard 13 | ' 1.1 25/04/2005 Extracts items below Selection if a topic is selected, 14 | ' otherwise extracts from entire map 15 | ' 1.0 25/04/2005 First Revision 16 | '++++++++++++++++++++++++++++++++++++++++++++ 17 | 18 | Dim WithEvents iterator As TopicFinder 19 | Dim strFullText() As String 'Array to store text strings 20 | Dim i As Integer 'Keeps track of iterations of the topic finder 21 | Dim c As Integer 'Counter to cycle through strFullText and append row to notes 22 | Dim tParent As Topic 23 | Dim sTopic As Topic 24 | Dim strText As String 25 | Sub Main 26 | 27 | i = 1 28 | Dim t As Topic 29 | If ActiveDocument.Selection.Count=0 Then 30 | Set t = ActiveDocument.CentralTopic 31 | Else 32 | Set t = ActiveDocument.Selection(1) 33 | End If 34 | 35 | Set iterator = t.NewTopicFinder 36 | 37 | 'Set TopicFinder parameters... 38 | iterator.IncludeHiddenTopics = True 39 | iterator.Start 40 | 41 | 'Print the array to the clipboard... 42 | strText = "" 43 | For c = 1 To UBound(strFullText) 44 | strText = strText & strFullText(c) & vbCrLf 45 | Next c 46 | Clipboard strText 47 | 48 | 49 | End Sub 50 | Private Sub iterator_TopicFound( t As Topic ) 51 | 52 | If t.Level = 0 Then 53 | 'Topic is central topic - do nothing 54 | 'Check required to prevent an error when trying to find 55 | 'the central topic's parent (which does not exist!) 56 | Else 57 | 58 | 'Only start from the End of a branch, i.e. topic has no subtopics... 59 | If t.AllSubTopics.Count=0 Then 60 | 61 | Set tParent = t.ParentTopic 62 | strText = t.Text 63 | 64 | 'Go back up the tree, stopping at each node to collect some text... 65 | For c = t.Level To 1 Step -1 66 | 67 | 'Concatenate some strings... 68 | strText = tParent.Text & " > " & strText 69 | 70 | 'get the next parent up... 71 | Set tParent = tParent.ParentTopic 72 | 73 | 'Go back up the tree one more node... 74 | Next c 75 | 76 | 'We have reached the first level main topic, so save 77 | 'the text to a new row in our storage array... 78 | ReDim Preserve strFullText (i) 79 | strFullText(i) = strText 80 | 81 | 'Track the next iteration to add a new row to the array strFullText 82 | i = i + 1 83 | Else 84 | 'Do nothing 85 | End If 86 | 87 | End If 88 | 89 | End Sub 90 | -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin/ExampleRibbonGroup.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Collections.Generic 3 | Imports System.Text 4 | Imports mm = Mindjet.MindManager.Interop 5 | Imports System.Text.RegularExpressions 6 | Imports Microsoft.Win32 7 | 8 | Namespace MindManagerRibbon 9 | 10 | Class ExampleRibbonGroup 11 | 12 | Implements IDisposable 13 | 14 | #Region "Variables" 15 | 16 | Private m_app As mm.Application 17 | Private WithEvents myCommand As mm.Command 18 | 19 | #End Region 20 | 21 | Public Sub New(ByVal app As Mindjet.MindManager.Interop.Application) 22 | 23 | Try 24 | 25 | m_app = app 26 | 27 | 'Creates the Ribbon 28 | Dim newRibbontab As Mindjet.MindManager.Interop.ribbonTab = Ribbons.CreateRibbon(m_app, "Example Ribbon", "urn:EG.Tab") 29 | 30 | 'Creates the Ribbon Group 31 | Dim newribbongroup As Mindjet.MindManager.Interop.RibbonGroup = Ribbons.CreateGroupTab(newRibbontab, "Example Group", "urn:EG.Group") 32 | 33 | 'Creates the Ribbon Group Command 34 | myCommand = m_app.Commands.Add("ExamplMindManagerAddin.Connect", "ExampleCommand") 35 | 36 | 'Change "Environ("ProgramFiles") & "\OPTi-Suite\Common Files\TopicTextLock.png" to target your own url 37 | '*** 38 | myCommand.ImagePath = Environ("ProgramFiles") & "\OPTi-Suite\Common Files\TopicTextLock.png" 39 | '*** 40 | 41 | myCommand.BasicCommand = True 42 | myCommand.ToolTip = ("Example ToolTip Text" + (Chr(10)) + "Example Caption") 43 | myCommand.Caption = "Example Caption" 44 | newribbongroup.GroupControls.AddButton(myCommand, 0) 45 | 46 | Catch ex As Exception 47 | MsgBox(ex.ToString) 48 | End Try 49 | 50 | End Sub 51 | 52 | Sub tLock_UpdateState(ByRef pEnabled As Boolean, ByRef pChecked As Boolean) Handles myCommand.UpdateState 53 | 54 | Try 55 | 56 | pChecked = False 57 | pEnabled = True 58 | 59 | Catch ex As Exception 60 | MsgBox(ex.ToString) 61 | End Try 62 | 63 | End Sub 64 | 65 | Sub tLock_Click() Handles myCommand.Click 66 | 67 | Try 68 | 69 | MsgBox("Now I can write some more code to do something with") 70 | 71 | Catch ex As Exception 72 | MsgBox(ex.ToString) 73 | End Try 74 | 75 | End Sub 76 | 77 | Public Overloads Sub Dispose() Implements IDisposable.Dispose 78 | 79 | System.Runtime.InteropServices.Marshal.ReleaseComObject(myCommand) 80 | System.Runtime.InteropServices.Marshal.ReleaseComObject(m_app) 81 | 82 | End Sub 83 | 84 | End Class 85 | 86 | End Namespace 87 | 88 | 89 | -------------------------------------------------------------------------------- /examples/-DumpMapMarkers.mmbas: -------------------------------------------------------------------------------- 1 | 2 | ' force dim statements for variables 3 | Option Explicit 4 | 5 | ' define some constants for message display 6 | Const msgTitle As String = "Dump Topic Markers" 7 | Const msgNeedMapDoc As String = "Open a map to show the map markers" 8 | 9 | ' macros starts here 10 | Sub Main 11 | 12 | ' get a document to work on 13 | Dim doc As Document 14 | Set doc = ActiveDocument 15 | 16 | If (doc Is Nothing) Then 17 | ' handle the "no doc loaded" case 18 | MsgBox(msgNeedMapDoc,vbOkOnly,msgTitle) 19 | GoTo ExitNow 20 | End If 21 | 22 | Debug.Clear 23 | 24 | ' get a collection of all the topics in the active map 25 | Dim r As Range 26 | Set r = doc.Range(mmRangeAllTopics) 27 | 28 | 'iterate over the topic collection 29 | Dim t As Topic 30 | For Each t In r 31 | ' for each topic, get it's user icon collection, which are the custom icons 32 | Dim topicIcons As Icons 33 | Set topicIcons = t.AllIcons 34 | 35 | ' show some topic info 36 | Debug.Print("Topic "+t.Text+" has "+ Str$(topicIcons.Count)+" icons") 37 | Dim i As Icon 38 | For Each i In topicIcons 39 | ' for each custom user icon associated with the current topic, show an icon display name 40 | Dim iconName As String 41 | iconName = GetIconDisplayName(doc,i) 42 | Debug.Print(vbTab + iconName) 43 | Next 44 | 45 | Next 46 | 47 | ExitNow: 48 | 49 | End Sub 50 | ' 51 | ' return the display name of a custom or stock icon in a document 52 | ' 53 | Public Function GetIconDisplayName(doc As Document, ic As Icon) As String 54 | 55 | Dim allGroups As MapMarkerGroups 56 | Dim aGroup As MapMarkerGroup 57 | Dim aMapMarker As MapMarker 58 | Dim result As String 59 | 60 | result = ic.Name ' set the default return 61 | 62 | If (ic.Type = mmIconTypeCustom) Then 63 | ' spin through map markers to find a display name using icon signatures 64 | Set allGroups = doc.MapMarkerGroups 65 | ' Debug.Clear 66 | For Each aGroup In allGroups 67 | ' Debug.Print "======" 68 | ' Debug.Print "Group " + aGroup.Name + " contains:" 69 | For Each aMapMarker In aGroup 70 | ' Debug.Print aMapMarker.Label + " == " + aMapMarker.Icon.Name 71 | If (aMapMarker.Icon.Type = mmIconTypeCustom) Then ' only mmIconTypeCustom types have CustomIconSignature properties 72 | If StrComp(aMapMarker.Icon.CustomIconSignature, ic.CustomIconSignature) = 0 Then 73 | result = aMapMarker.Label ' found a display name so exit 74 | GoTo ExitNow 75 | End If 76 | End If 77 | Next 78 | Next 79 | Else 80 | ' otherwise spin through map markers using icon names to find a display name 81 | Set allGroups = ActiveDocument.MapMarkerGroups 82 | ' Debug.Clear 83 | For Each aGroup In allGroups 84 | ' Debug.Print "======" 85 | ' Debug.Print "Group " + aGroup.Name + " contains:" 86 | For Each aMapMarker In aGroup 87 | ' Debug.Print aMapMarker.Label + " == " + aMapMarker.Icon.Name 88 | If StrComp(aMapMarker.Icon.Name, ic.Name) = 0 Then 89 | result = aMapMarker.Label ' found a display name so exit 90 | GoTo ExitNow 91 | End If 92 | Next 93 | Next 94 | End If 95 | 96 | 97 | ExitNow: 98 | GetIconDisplayName = result 99 | End Function 100 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/Installer1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.ComponentModel; 4 | using System.Configuration.Install; 5 | using System.Runtime.InteropServices; 6 | 7 | //TODO Change this namespace to your company's name 8 | namespace AddIn 9 | { 10 | /// 11 | /// Installer object used in custom build steps during installation 12 | /// 13 | [RunInstaller(true)] 14 | public class Installer1 : System.Configuration.Install.Installer 15 | { 16 | #region Member Data 17 | /// 18 | /// Required designer variable. 19 | /// 20 | private System.ComponentModel.Container components = null; 21 | #endregion 22 | 23 | #region Constructors/Destructor 24 | 25 | /// 26 | /// Default constructor 27 | /// 28 | public Installer1() 29 | { 30 | // This call is required by the Designer. 31 | InitializeComponent(); 32 | 33 | // TODO: Add any initialization after the InitializeComponent call 34 | } 35 | 36 | #endregion 37 | 38 | #region Overrides 39 | 40 | /// 41 | /// Clean up any resources being used. 42 | /// 43 | protected override void Dispose( bool disposing ) 44 | { 45 | if( disposing ) 46 | { 47 | if(components != null) 48 | { 49 | components.Dispose(); 50 | } 51 | } 52 | base.Dispose( disposing ); 53 | } 54 | 55 | /// 56 | /// Register the assembly for COM interop 57 | /// 58 | /// An IDictionary used to save information 59 | /// needed to perform a commit, rollback, or uninstall operation. 60 | /// 61 | public override void Install(IDictionary stateSaver) 62 | { 63 | base.Install (stateSaver); 64 | 65 | RegistrationServices regSrv = new RegistrationServices(); 66 | 67 | System.Reflection.Assembly assembly = base.GetType().Assembly; 68 | 69 | AssemblyRegistrationFlags flags = AssemblyRegistrationFlags.SetCodeBase; 70 | 71 | regSrv.RegisterAssembly(assembly, flags); 72 | } 73 | 74 | /// 75 | /// Unregister the assembly 76 | /// 77 | /// An IDictionary that contains the state of 78 | /// the computer after the installation was complete. 79 | /// The stateSaver parameter is a 80 | /// null reference (Nothing in Visual Basic). 81 | /// 82 | /// An exception occurred in the BeforeInstall event handler of one 83 | /// of the installers in the collection. 84 | /// -or- 85 | /// An exception occurred in the AfterInstall event handler of one 86 | /// of the installers in the collection. 87 | public override void Uninstall(IDictionary savedState) 88 | { 89 | base.Uninstall (savedState); 90 | 91 | RegistrationServices regSrv = new RegistrationServices(); 92 | 93 | System.Reflection.Assembly assembly = base.GetType().Assembly; 94 | 95 | regSrv.UnregisterAssembly(assembly); 96 | } 97 | 98 | #endregion 99 | 100 | #region Component Designer generated code 101 | /// 102 | /// Required method for Designer support - do not modify 103 | /// the contents of this method with the code editor. 104 | /// 105 | private void InitializeComponent() 106 | { 107 | components = new System.ComponentModel.Container(); 108 | } 109 | #endregion 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /examples/-FlattenTheTree1.3.mmbas: -------------------------------------------------------------------------------- 1 | ' ++++++++++++++++++++++++++++++++++++++++++ 2 | ' File Name: flattenthetree.mmbas 3 | ' Author: Steve Collier-Smith 4 | ' Created: 25 April 2005 5 | ' Description: Takes tree structure and creates single string for each path 6 | ' through the tree, then creates a new topic with all paths as note text 7 | ' 8 | '++++++++++++++++++++++++++++++++++++++++++++ 9 | ' Revision History 10 | ' Rev Date Summary of changes 11 | ' 1.3 28/04/2005 Added dialog to choose to go back to selected topic or Central Topic 12 | ' 1.2 26/04/2005 Array elements only added for each 'end' topic, not every topic 13 | ' Places extracted text on the clipboard 14 | ' 1.1 25/04/2005 Extracts items below Selection if a topic is selected, 15 | ' otherwise extracts from entire map 16 | ' 1.0 25/04/2005 First Revision 17 | '++++++++++++++++++++++++++++++++++++++++++++ 18 | 19 | Dim WithEvents iterator As TopicFinder 20 | Dim strFullText() As String 'Array to store text strings 21 | Dim i As Integer 'Keeps track of iterations of the topic finder 22 | Dim c As Integer 'Counter to cycle through strFullText and append row to notes 23 | Dim l As Integer 'Level of first subtopic from selection 24 | Dim x As Integer 'Decision to include complete tree or not 25 | Dim tParent As Topic 26 | Dim sTopic As Topic 27 | Dim strText As String 28 | Sub Main 29 | 30 | 31 | Dim t As Topic 32 | i = 1 33 | 34 | If ActiveDocument.Selection.Count=0 Then 35 | Set t = ActiveDocument.CentralTopic 36 | l = 1 37 | Else 38 | Begin Dialog UserDialog 240,77 ' %GRID:10,7,1,1 39 | CheckBox 30,14,200,14,"Include path to central topic?",.CheckBox1 40 | OKButton 70,49,110,21 41 | End Dialog 42 | Dim dlg As UserDialog 43 | Dialog dlg 44 | x = dlg.checkbox1 45 | 46 | If x = 0 Then 47 | Set t = ActiveDocument.Selection(1) 48 | l = t.Level + 1 49 | Else 50 | Set t = ActiveDocument.Selection(1) 51 | l = 1 52 | End If 53 | End If 54 | 55 | Set iterator = t.NewTopicFinder 56 | 57 | 'Set TopicFinder parameters... 58 | iterator.IncludeHiddenTopics = True 59 | iterator.Start 60 | 61 | 'Print the array to the clipboard... 62 | strText = "" 63 | For c = 1 To UBound(strFullText) 64 | strText = strText & strFullText(c) & vbCrLf 65 | Next c 66 | Clipboard strText 67 | 68 | 69 | End Sub 70 | Private Sub iterator_TopicFound( t As Topic ) 71 | 72 | If t.Level = 0 Then 73 | 'Topic is central topic - do nothing 74 | 'Check required to prevent an error when trying to find 75 | 'the central topic's parent (which does not exist!) 76 | Else 77 | 78 | 'Only start from the End of a branch, i.e. topic has no subtopics... 79 | If t.AllSubTopics.Count=0 Then 80 | 81 | Set tParent = t.ParentTopic 82 | strText = t.Text 83 | 84 | 'Go back up the tree, stopping at each node to collect some text... 85 | For c = t.Level To l Step -1' '1 Step -1 86 | 87 | 'Concatenate some strings... 88 | strText = tParent.Text & " > " & strText 89 | 90 | 'get the next parent up... 91 | Set tParent = tParent.ParentTopic 92 | 93 | 'Go back up the tree one more node... 94 | Next c 95 | 96 | 'We have reached the first level main topic, so save 97 | 'the text to a new row in our storage array... 98 | ReDim Preserve strFullText (i) 99 | strFullText(i) = strText 100 | 101 | 'Track the next iteration to add a new row to the array strFullText 102 | i = i + 1 103 | Else 104 | 'Do nothing 105 | End If 106 | 107 | End If 108 | 109 | End Sub 110 | -------------------------------------------------------------------------------- /examples/-FlattenCurrentNode (1).mmbas: -------------------------------------------------------------------------------- 1 | ' ++++++++++++++++++++++++++++++++++++++++++ 2 | ' File Name: flattencurrentnode.mmbas 3 | ' Author: Steve Collier-Smith, Rahul Xingh 4 | ' Created: 25 April 2005 5 | ' Description: Takes the current node and flattens it. 6 | ' 7 | '++++++++++++++++++++++++++++++++++++++++++++ 8 | ' Revision History 9 | ' Rev Date Summary of changes 10 | ' 1.4 28/04/2005 Commented out dialog box, to make it faster for user. - Rahul 11 | ' 1.3 28/04/2005 Added dialog to choose to go back to selected topic or Central Topic 12 | ' 1.2 26/04/2005 Array elements only added for each 'end' topic, not every topic 13 | ' Places extracted text on the clipboard 14 | ' 1.1 25/04/2005 Extracts items below Selection if a topic is selected, 15 | ' otherwise extracts from entire map 16 | ' 1.0 25/04/2005 First Revision 17 | '++++++++++++++++++++++++++++++++++++++++++++ 18 | 19 | Dim WithEvents iterator As TopicFinder 20 | Dim strFullText() As String 'Array to store text strings 21 | Dim i As Integer 'Keeps track of iterations of the topic finder 22 | Dim c As Integer 'Counter to cycle through strFullText and append row to notes 23 | Dim l As Integer 'Level of first subtopic from selection 24 | Dim x As Integer 'Decision to include complete tree or not 25 | Dim tParent As Topic 26 | Dim sTopic As Topic 27 | Dim strText As String 28 | Sub Main 29 | 30 | 31 | Dim t As Topic 32 | i = 1 33 | 34 | If ActiveDocument.Selection.Count=0 Then 35 | Set t = ActiveDocument.CentralTopic 36 | l = 1 37 | Else 38 | 39 | 'Begin Dialog UserDialog 240,77 ' %GRID:10,7,1,1 40 | ' CheckBox 30,14,200,14,"Include path to central topic?",.CheckBox1 41 | ' OKButton 70,49,110,21 42 | 'End Dialog 43 | 44 | 'Dim dlg As UserDialog 45 | 'Dialog dlg 46 | 'x = dlg.checkbox1 47 | 48 | 'If x = 0 Then 49 | Set t = ActiveDocument.Selection(1) 50 | l = t.Level + 1 51 | 'Else 52 | ' Set t = ActiveDocument.Selection(1) 53 | ' l = 1 54 | 'End If 55 | 56 | End If 57 | 58 | Set iterator = t.NewTopicFinder 59 | 60 | 'Set TopicFinder parameters... 61 | iterator.IncludeHiddenTopics = True 62 | iterator.Start 63 | 64 | 'Print the array to the clipboard... 65 | strText = "" 66 | For c = 1 To UBound(strFullText) 67 | strText = strText & strFullText(c) & vbCrLf 68 | Next c 69 | Clipboard strText 70 | 71 | 72 | End Sub 73 | Private Sub iterator_TopicFound( t As Topic ) 74 | 75 | If t.Level = 0 Then 76 | 'Topic is central topic - do nothing 77 | 'Check required to prevent an error when trying to find 78 | 'the central topic's parent (which does not exist!) 79 | Else 80 | 81 | 'Only start from the End of a branch, i.e. topic has no subtopics... 82 | If t.AllSubTopics.Count=0 Then 83 | 84 | Set tParent = t.ParentTopic 85 | strText = t.Text 86 | 87 | 'Go back up the tree, stopping at each node to collect some text... 88 | For c = t.Level To l Step -1' '1 Step -1 89 | 90 | 'Concatenate some strings... 91 | strText = tParent.Text & " : " & strText 92 | 93 | 'get the next parent up... 94 | Set tParent = tParent.ParentTopic 95 | 96 | 'Go back up the tree one more node... 97 | Next c 98 | 99 | 'We have reached the first level main topic, so save 100 | 'the text to a new row in our storage array... 101 | ReDim Preserve strFullText (i) 102 | strFullText(i) = strText 103 | 104 | 'Track the next iteration to add a new row to the array strFullText 105 | i = i + 1 106 | Else 107 | 'Do nothing 108 | End If 109 | 110 | End If 111 | 112 | End Sub 113 | -------------------------------------------------------------------------------- /examples/-FlattenCurrentNode.mmbas: -------------------------------------------------------------------------------- 1 | ' ++++++++++++++++++++++++++++++++++++++++++ 2 | ' File Name: flattencurrentnode.mmbas 3 | ' Author: Steve Collier-Smith, Rahul Xingh 4 | ' Created: 25 April 2005 5 | ' Description: Takes the current node and flattens it. 6 | ' 7 | '++++++++++++++++++++++++++++++++++++++++++++ 8 | ' Revision History 9 | ' Rev Date Summary of changes 10 | ' 1.4 28/04/2005 Commented out dialog box, to make it faster for user. - Rahul 11 | ' 1.3 28/04/2005 Added dialog to choose to go back to selected topic or Central Topic 12 | ' 1.2 26/04/2005 Array elements only added for each 'end' topic, not every topic 13 | ' Places extracted text on the clipboard 14 | ' 1.1 25/04/2005 Extracts items below Selection if a topic is selected, 15 | ' otherwise extracts from entire map 16 | ' 1.0 25/04/2005 First Revision 17 | '++++++++++++++++++++++++++++++++++++++++++++ 18 | 19 | Dim WithEvents iterator As TopicFinder 20 | Dim strFullText() As String 'Array to store text strings 21 | Dim i As Integer 'Keeps track of iterations of the topic finder 22 | Dim c As Integer 'Counter to cycle through strFullText and append row to notes 23 | Dim l As Integer 'Level of first subtopic from selection 24 | Dim x As Integer 'Decision to include complete tree or not 25 | Dim tParent As Topic 26 | Dim sTopic As Topic 27 | Dim strText As String 28 | Sub Main 29 | 30 | 31 | Dim t As Topic 32 | i = 1 33 | 34 | If ActiveDocument.Selection.Count=0 Then 35 | Set t = ActiveDocument.CentralTopic 36 | l = 1 37 | Else 38 | 39 | 'Begin Dialog UserDialog 240,77 ' %GRID:10,7,1,1 40 | ' CheckBox 30,14,200,14,"Include path to central topic?",.CheckBox1 41 | ' OKButton 70,49,110,21 42 | 'End Dialog 43 | 44 | 'Dim dlg As UserDialog 45 | 'Dialog dlg 46 | 'x = dlg.checkbox1 47 | 48 | 'If x = 0 Then 49 | Set t = ActiveDocument.Selection(1) 50 | l = t.Level + 1 51 | 'Else 52 | ' Set t = ActiveDocument.Selection(1) 53 | ' l = 1 54 | 'End If 55 | 56 | End If 57 | 58 | Set iterator = t.NewTopicFinder 59 | 60 | 'Set TopicFinder parameters... 61 | iterator.IncludeHiddenTopics = True 62 | iterator.Start 63 | 64 | 'Print the array to the clipboard... 65 | strText = "" 66 | For c = 1 To UBound(strFullText) 67 | strText = strText & strFullText(c) & vbCrLf 68 | Next c 69 | Clipboard strText 70 | 71 | 72 | End Sub 73 | Private Sub iterator_TopicFound( t As Topic ) 74 | 75 | If t.Level = 0 Then 76 | 'Topic is central topic - do nothing 77 | 'Check required to prevent an error when trying to find 78 | 'the central topic's parent (which does not exist!) 79 | Else 80 | 81 | 'Only start from the End of a branch, i.e. topic has no subtopics... 82 | If t.AllSubTopics.Count=0 Then 83 | 84 | Set tParent = t.ParentTopic 85 | strText = t.Text 86 | 87 | 'Go back up the tree, stopping at each node to collect some text... 88 | For c = t.Level To l Step -1' '1 Step -1 89 | 90 | 'Concatenate some strings... 91 | strText = tParent.Text & " : " & strText 92 | 93 | 'get the next parent up... 94 | Set tParent = tParent.ParentTopic 95 | 96 | 'Go back up the tree one more node... 97 | Next c 98 | 99 | 'We have reached the first level main topic, so save 100 | 'the text to a new row in our storage array... 101 | ReDim Preserve strFullText (i) 102 | strFullText(i) = strText 103 | 104 | 'Track the next iteration to add a new row to the array strFullText 105 | i = i + 1 106 | Else 107 | 'Do nothing 108 | End If 109 | 110 | End If 111 | 112 | End Sub 113 | -------------------------------------------------------------------------------- /examples/ExamplMindManagerAddin/ExamplMindManagerAddin/ExamplMindManagerAddin.vbproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Debug 4 | AnyCPU 5 | 9.0.30729 6 | 2.0 7 | {E1AEAD27-7DD2-435E-9384-6F4F623320A8} 8 | Library 9 | 10 | 11 | Project1 12 | On 13 | Binary 14 | Off 15 | On 16 | ExamplMindManagerAddin 17 | v3.5 18 | 19 | 20 | true 21 | true 22 | true 23 | true 24 | bin\ 25 | Project1.xml 26 | true 27 | 28 | 29 | false 30 | false 31 | true 32 | false 33 | true 34 | bin\ 35 | Project1.xml 36 | true 37 | 38 | 39 | 40 | 41 | System 42 | 43 | 44 | System.Data 45 | 46 | 47 | System.XML 48 | 49 | 50 | System.Windows.Forms 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | Code 64 | 65 | 66 | Code 67 | 68 | 69 | 70 | 71 | 72 | 73 | {2DF8D04C-5BFA-101B-BDE5-00AA0044DE52} 74 | 2 75 | 5 76 | 0 77 | primary 78 | False 79 | 80 | 81 | {1E1D4AF9-6640-49C1-A33B-8CE8B47C9785} 82 | 9 83 | 0 84 | 0 85 | primary 86 | False 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /docs/xsl-reference/schemas.mindjet.com.MindManager.Delta.2003.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | MindManager delta system schema 9 | 10 | 11 | 12 | Delta that repesents generic atomic change; is a base for all other deltas 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Delta that repesents addition of object; is final 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | Delta that repesents removal of object; is final 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | Delta that repesents modification of value property; is final 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | Delta that repesents modification of group property; is final 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | Delta that repesents atomic group of other deltas; is final 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | GroupDelta global element 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /examples/MM2LaTeX/test.tex: -------------------------------------------------------------------------------- 1 | 2 | %% 3 | %% This document was automatically generated from a Mindmap (MindManager X5) 4 | %% 5 | \documentclass{article} 6 | 7 | \title{Testing \LaTeX\ in MindManager} 8 | 9 | \author{Stephan Heuel} 10 | 11 | \date{2005-08-12T11:46:32} 12 | 13 | \begin{document} 14 | \maketitle 15 | \tableofcontents 16 | \newpage 17 | 18 | \section{Introduction} 19 | 20 | 21 | 22 | Whatever comes here 23 | 24 | \subsection{Motivation} 25 | 26 | 27 | 28 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam 29 | nisl metus, dignissim ut, aliquam nec, lobortis eget, dolor. Sed et 30 | ligula et leo faucibus vehicula. Vivamus dolor. Donec ullamcorper, 31 | velit eu ornare tempor, wisi urna gravida odio, sed tempor lectus 32 | diam quis massa. Nunc in massa. Praesent nec augue laoreet 33 | sem aliquam accumsan. Morbi nulla nisl, aliquet laoreet, molestie 34 | nec, consectetuer sit amet, eros. In cursus porttitor ligula. 35 | Praesent nulla nisl, euismod a, semper imperdiet, iaculis vel, 36 | lectus. Pellentesque arcu felis, fermentum quis, fringilla ultrices, 37 | lacinia nec, felis. 38 | 39 | \subsection{Overview of the document} 40 | 41 | \subsubsection{Chapter 1} 42 | 43 | 44 | 45 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam 46 | nisl metus, dignissim ut, aliquam nec, lobortis eget, dolor. Sed et 47 | ligula et leo faucibus vehicula. Vivamus dolor. Donec ullamcorper, 48 | velit eu ornare tempor, wisi urna gravida odio, sed tempor lectus 49 | diam quis massa. Nunc in massa. Praesent nec augue laoreet 50 | sem aliquam accumsan. Morbi nulla nisl, aliquet laoreet, molestie 51 | nec, consectetuer sit amet, eros. In cursus porttitor ligula. 52 | Praesent nulla nisl, euismod a, semper imperdiet, iaculis vel, 53 | lectus. Pellentesque arcu felis, fermentum quis, fringilla ultrices, 54 | lacinia nec, felis. 55 | 56 | \subsubsection{Chapter 2} 57 | 58 | 59 | 60 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam 61 | nisl metus, dignissim ut, aliquam nec, lobortis eget, dolor. Sed et 62 | ligula et leo faucibus vehicula. Vivamus dolor. Donec ullamcorper, 63 | velit eu ornare tempor, wisi urna gravida odio, sed tempor lectus 64 | diam quis massa. Nunc in massa. Praesent nec augue laoreet 65 | sem aliquam accumsan. Morbi nulla nisl, aliquet laoreet, molestie 66 | nec, consectetuer sit amet, eros. In cursus porttitor ligula. 67 | Praesent nulla nisl, euismod a, semper imperdiet, iaculis vel, 68 | lectus. Pellentesque arcu felis, fermentum quis, fringilla ultrices, 69 | lacinia nec, felis. 70 | 71 | \subsubsection{Chapter 3} 72 | 73 | 74 | 75 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam 76 | nisl metus, dignissim ut, aliquam nec, lobortis eget, dolor. Sed et 77 | ligula et leo faucibus vehicula. Vivamus dolor. Donec ullamcorper, 78 | velit eu ornare tempor, wisi urna gravida odio, sed tempor lectus 79 | diam quis massa. Nunc in massa. Praesent nec augue laoreet 80 | sem aliquam accumsan. Morbi nulla nisl, aliquet laoreet, molestie 81 | nec, consectetuer sit amet, eros. In cursus porttitor ligula. 82 | Praesent nulla nisl, euismod a, semper imperdiet, iaculis vel, 83 | lectus. Pellentesque arcu felis, fermentum quis, fringilla ultrices, 84 | lacinia nec, felis. 85 | 86 | \section{People} 87 | 88 | \subsection{John Doe} 89 | 90 | 91 | 92 | See I can create a bulleted list here and also use some math and 93 | basically any other \LaTeX\ command: 94 | \begin{itemize} 95 | 96 | \item \textbf{Lorem }ipsum 97 | dolor sit amet, consectetuer adipiscing elit. 98 | Nullam nisl metus, dignissim ut, aliquam nec, lobortis eget, 99 | dolor. 100 | \item ed et \textbf{\textit{ligula }}et 101 | leo faucibus vehicula. Vivamus dolor. Donec 102 | ullamcorper, velit eu ornare tempor, wisi urna gravida odio, 103 | sed tempor lectus diam quis 104 | \item $cos(\alpha)=0$ 105 | \end{itemize} 106 | 107 | 108 | \subsection{Jane Doe} 109 | 110 | 111 | 112 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam 113 | nisl metus, dignissim ut, aliquam nec, lobortis eget, dolor. Sed et 114 | ligula et leo faucibus vehicula. Vivamus dolor. Donec ullamcorper, 115 | velit eu ornare tempor, wisi urna gravida odio, sed tempor lectus 116 | diam quis 117 | 118 | \section{A bulleted list} 119 | 120 | 121 | 122 | This is an example of a bulleted list, where each item resembles 123 | a topic in the corresponding mindmap. Note that you can also 124 | use bulleted lists in the note itself. 125 | \begin{itemize} 126 | \item Topic 1 127 | 128 | 129 | 130 | 131 | In a bulleted item, there can also be some text... 132 | \item Topic 2 133 | 134 | 135 | 136 | 137 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam 138 | nisl metus, dignissim ut, aliquam nec, lobortis eget, dolor. Sed et 139 | ligula et leo faucibus vehicula. 140 | \begin{itemize} 141 | \item Subtopic 2a 142 | 143 | \item Subtopic 2b 144 | 145 | \end{itemize} 146 | \item Topic 3 147 | 148 | 149 | 150 | 151 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam 152 | nisl metus, dignissim ut, aliquam nec, lobortis eget, dolor. Sed et 153 | ligula et leo faucibus vehicula. 154 | \end{itemize} 155 | 156 | \end{document} 157 | -------------------------------------------------------------------------------- /examples/resource-cross-reference/EndExport.mmbas: -------------------------------------------------------------------------------- 1 | '#Reference {A5082CA1-0580-4287-B3D5-91B0FDB3C0FE}#1.0#0#C:\Program Files\Mindjet\MindManager 5\Mm5WebExport.dll#Mm5WebExport 1.0 Type Library 2 | '#Uses "GlobalParameterNames.mmbas" 3 | '#Uses "ParameterNames.mmbas" 4 | '#Uses "GlobalUtilities.mmbas" 5 | '#Uses "DoBuilder.cls" 6 | 7 | Option Explicit 8 | 9 | Sub Main 10 | 11 | Dim addin As Mm5WebExportAddIn 12 | Dim webex As WebExport 13 | Dim oneDynamicOutlineBuilder As DynamicOutlineBuilder 14 | 15 | Set addin = WebExportHelper.WebExportAddIn 16 | Set webex = addin.ActiveWebExport 17 | Set oneDynamicOutlineBuilder = New DynamicOutlineBuilder 18 | 19 | Dim bodyString As String 20 | Dim topicString As String 21 | Dim OutlineItems As String 22 | 23 | On Error GoTo ReportError 24 | 25 | webex.Trace("Entering EndExport " + CStr(webex.GetParameter(WeErrorNumber)), 2) 26 | 27 | ' Generate CONTENTS page 28 | bodyString = webex.ReadFile("ToolsCnt.htm") 29 | topicString = bodyString 30 | 31 | ' Process all commands and parameters 32 | ProcessString webex, topicString 33 | bodyString = topicString 34 | 35 | ' Write out the result 36 | webex.WriteFile ("contents.htm", bodyString) 37 | 38 | ' Generate LEGEND page if required 39 | If webex.GetParameter("Strings.Show.IconLegend") Then 40 | bodyString = webex.ReadFile("ToolsLg.htm") 41 | topicString = bodyString 42 | ' Process all commands and parameters 43 | ProcessString webex, topicString 44 | bodyString = topicString 45 | ' Write out the result 46 | webex.WriteFile ("legend.htm", bodyString) 47 | End If 48 | 49 | ' Generate Overview Map page 50 | If webex.GetParameter("Strings.Show.OverviewMap") Then 51 | bodyString = webex.ReadFile("ToolsMap.htm") 52 | topicString = bodyString 53 | 54 | ' Process all commands and parameters 55 | ProcessString webex, topicString 56 | bodyString = topicString 57 | 58 | ' Write out the result 59 | webex.WriteFile ("map.htm", bodyString) 60 | 61 | bodyString = webex.ReadFile("ToolsMapCont.htm") 62 | topicString = bodyString 63 | 64 | ' Process all commands and parameters 65 | ProcessString webex, topicString 66 | bodyString = topicString 67 | 68 | ' Write out the result 69 | webex.WriteFile ("mapContent.htm", bodyString) 70 | 71 | bodyString = webex.ReadFile("ToolsMapHd.htm") 72 | topicString = bodyString 73 | 74 | ' Process all commands and parameters 75 | ProcessString webex, topicString 76 | bodyString = topicString 77 | 78 | ' Write out the result 79 | webex.WriteFile ("mapHeader.htm", bodyString) 80 | 81 | bodyString = webex.ReadFile("ToolsMapFooter.htm") 82 | topicString = bodyString 83 | 84 | ' Process all commands and parameters 85 | ProcessString webex, topicString 86 | bodyString = topicString 87 | 88 | ' Write out the result 89 | webex.WriteFile ("mapFooter.htm", bodyString) 90 | End If 91 | 92 | ' Determine whether partial map images should be shown or hidden in the export 93 | 'If webex.GetParameter("Strings.Show.PartialMaps") = True Then 94 | If webex.GetParameter("Strings.Show.SubLinks") = "partmaps" Or webex.GetParameter("Strings.Show.SubLinks") = "partmapssingle" Then 95 | webex.SetParameter("CustomParameter.ShowPartialMapsImage","visible") 96 | Else 97 | webex.SetParameter("CustomParameter.ShowPartialMapsImage","none") 98 | End If 99 | 100 | ' If there's no pending error 101 | If webex.IsSuccessful Then 102 | 103 | ' Copy our Resources folder 104 | webex.CopyDirectory(webex.GetParameter(TdFolderResources)) 105 | 106 | ' Process any parameters in our shared CSS files 107 | ProcessResourceFile webex, "styles\shared.css" 108 | 109 | ' Process any parameters in tree_tpl.js (so it gets the proper "Resources" folder name) 110 | ProcessResourceFile webex, "tree\tree_tpl.js" 111 | 112 | ' Process any parameters in boxController.js (so it gets the proper "Resources" folder name) 113 | ProcessResourceFile webex, "code\boxController.js" 114 | 115 | ' Copy our linked documents to the Linked Documents folder 116 | webex.CopyLinkedDocuments() 117 | 118 | ' Generate Dynamic Outline Javascript items file 119 | oneDynamicOutlineBuilder.BuildDynamicOutline (webex.ActiveTopic.Document.CentralTopic), webex.GetParameter (TdNavigationDepth) 120 | OutlineItems = webex.GetParameter ("CustomParameter.DynamicOutlineString") 121 | 122 | ' Trim out the characters that end the dynamic outline 123 | 124 | OutlineItems = Left( OutlineItems, Len( OutlineItems ) - 6 ) 125 | 126 | ' Add in our supplementary dynamic outline 127 | 128 | OutlineItems = OutlineItems + webex.ReadFile( webex.AbsoluteExportDirectory + "resource_mapping.js" ) 129 | 130 | ' Save it as normal... 131 | 132 | webex.WriteFile(webex.FullExportFilename(webex.GetParameter(TdFolderResources) + "\tree\tree_items.js"), OutlineItems) 133 | 134 | End If 135 | 136 | webex.Trace("Exiting EndExport " + CStr(webex.GetParameter(WeErrorNumber)), 2) 137 | 138 | Exit Sub 139 | 140 | ReportError: 141 | ProcessError(webex) 142 | Exit Sub 143 | 144 | End Sub 145 | -------------------------------------------------------------------------------- /examples/-macWordCount.mmbas: -------------------------------------------------------------------------------- 1 | '----------------------------------------------------------------------------- 2 | 'macWordCount 3 | 'Description: Macro used to count words in Notes entries. The macro should 4 | ' be saved and added to the Notes context menu so that it can be 5 | ' accessed by right clicking from within the notes window. 6 | 'Author: Created by Trent Jordan 7 | 'Date: 22 May 2005 8 | '----------------------------------------------------------------------------- 9 | Option Explicit 10 | Option Base 1 11 | 12 | 'Variable used to define the path of the document 13 | Dim mstrPath As String 14 | 15 | 'Constant used to define the name of this macro. Used in error tracking 16 | Const mstrcMac As String = "macWordCount" 17 | 18 | 19 | Sub Main 20 | Dim docActive As Document 21 | Dim topActive As Topic 22 | Dim notActive As Notes 23 | 24 | Dim strNotes As String 25 | Dim iint As Integer 26 | Dim lngWordCount As Long 27 | Dim strChr As String 28 | Dim strLastChr As String 29 | 30 | Const strSpace As String = " " 31 | 32 | Dim topRef As Topic 33 | Dim topCentral As Topic 34 | Dim etopBOI As Topic 35 | Dim etopRef As Topic 36 | Dim strRef As String 37 | Dim intOpt As Integer 38 | Dim lngCursor As Long 39 | 40 | Const strcProc As String = "Main" 41 | 42 | On Error GoTo Main_Error 43 | 44 | 'Define the active document 45 | Set docActive = ActiveDocument 46 | mstrPath=docActive.Path 47 | 48 | 'Set variable topActive as the selected topic 49 | Set topActive = ActiveDocument.Selection.PrimaryTopic 50 | 51 | 'Set variable notActive as the notes to perform the word count on 52 | Set notActive = topActive.Notes 53 | 54 | strNotes = notActive.Text 55 | 56 | lngWordCount = 0 57 | strLastChr = strSpace 58 | 59 | For iint = 1 To Len(strNotes) 60 | strChr = Mid(strNotes,iint,1) 61 | If strLastChr=strSpace And strChr<>strSpace Then 62 | lngWordCount = lngWordCount+1 63 | End If 64 | strLastChr = strChr 65 | Next iint 66 | 67 | MsgBox "Word Count: " & lngWordCount, vbInformation+vbOkOnly 68 | 69 | Main_Exit: 70 | Exit Sub 71 | 72 | Main_Error: 73 | GlobalErrorHandler Err.Number, Err.Source, Err.Description, mstrcMac, strcProc, "", True 74 | GoTo Main_Exit 75 | 76 | End Sub 77 | 78 | 79 | Public Function GlobalErrorHandler(ByVal lngErrNumber As Long _ 80 | , ByVal strErrSource As String _ 81 | , ByVal strErrDescription As String _ 82 | , ByVal strModuleName As String _ 83 | , ByVal strProcedureName As String _ 84 | , ByVal strOtherText As String _ 85 | , Optional ByVal blnDisplayMsg As Boolean) As Boolean 86 | 'Purpose: To log errors in a text file 87 | 'Author: Adapted for use by Trent Jordan from www.accesswizards.com 88 | 'Returns: Returns 'True' (boolean) if error was successfully logged 89 | 90 | Const strcLogFile As String = mstrcMac & "_ErrorLog.txt" 91 | Const strTitle As String = mstrcMac 92 | Const strAuthor As String = "Trent Jordan" 93 | Const strAuthorEmail As String = "trentandmary@optusnet.com.au" 94 | Dim strDir As String 95 | Dim strFullName As String 96 | 97 | On Error GoTo GlobalErrorHandler_err 98 | 99 | GlobalErrorHandler = False 100 | 101 | If IsNull(strErrDescription) Then 102 | strErrDescription = "No Description Returned" 103 | Else 104 | strErrDescription = RemoveErrorMsgCharacters(strErrDescription) 105 | End If 106 | 107 | If IsMissing(strOtherText) Then 108 | strOtherText = "" 109 | End If 110 | 111 | If IsMissing(blnDisplayMsg) Then 112 | blnDisplayMsg = True 113 | End If 114 | 115 | strDir = mstrPath 116 | 117 | strFullName = strDir & "\" & strcLogFile 118 | Open strFullName For Append As #1 119 | 120 | Write #1, "Error logged at: " & Now() 121 | On Error Resume Next 122 | 'Ignores any errors that may occur when retrieving local and network user names. 123 | On Error GoTo GlobalErrorHandler_err 124 | Write #1, "Err Number: " & lngErrNumber 125 | Write #1, "Err Source: " & strErrSource 126 | Write #1, "Err Description: " & strErrDescription 127 | Write #1, "Module: " & strModuleName 128 | Write #1, "Procedure: " & strProcedureName 129 | Write #1, "Notes: " & strOtherText 130 | Write #1, 131 | Close #1 132 | 133 | If blnDisplayMsg = True Then 134 | MsgBox "The following error occurred in " & strTitle & " :" & vbCrLf & vbCrLf & _ 135 | "Error Number: " & lngErrNumber & vbCrLf & _ 136 | "Error Description: " & strErrDescription, vbCritical + vbOkOnly 137 | End If 138 | 139 | GlobalErrorHandler = True 140 | 141 | GlobalErrorHandler_exit: 142 | Exit Function 143 | 144 | GlobalErrorHandler_err: 145 | MsgBox "An error occurred in the " & strTitle & " Global Error Handler. " _ 146 | & "Please note the details below and contact email " & strAuthor & " at '" & strAuthorEmail & " '" _ 147 | & vbNewLine & vbNewLine _ 148 | & "Err Number: " & lngErrNumber & vbNewLine _ 149 | & "Err Source: " & strErrSource & vbNewLine _ 150 | & "Err Description: " & strErrDescription & vbNewLine _ 151 | & "Module: " & strModuleName & vbNewLine _ 152 | & "Procedure: " & strProcedureName & vbNewLine _ 153 | & "Notes: " & strOtherText, vbExclamation + vbOkOnly 154 | 155 | GoTo GlobalErrorHandler_exit 156 | 157 | End Function 158 | 159 | Public Function RemoveErrorMsgCharacters(strErrorMsg As String) As String 160 | 'Purpose: To remove "@" characters from error message descriptions 161 | 162 | Dim intLen As Integer 163 | Dim iintLoop As Integer 164 | Dim strReturn As String 165 | Dim strChar As String 166 | 167 | intLen = Len(strErrorMsg) 168 | strReturn = "" 169 | For iintLoop = 1 To intLen 170 | strChar = Mid(strErrorMsg, iintLoop, 1) 171 | If strChar <> "@" Then 172 | strReturn = strReturn & strChar 173 | End If 174 | Next iintLoop 175 | 176 | RemoveErrorMsgCharacters = strReturn 177 | 178 | End Function 179 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/Connect.cs: -------------------------------------------------------------------------------- 1 | //TODO Change this namespace to your company's name 2 | //TODO In the AddIn project properties change the default namespace to your company's name 3 | //TODO In the AddIn project properties change the Assembly name to the name of your addin. 4 | namespace AddIn 5 | { 6 | using System; 7 | using Extensibility; 8 | using System.Runtime.InteropServices; 9 | using System.Windows.Forms; 10 | using MindManager; 11 | 12 | #region Read me for Add-in installation and setup information. 13 | // When run, the Add-in wizard prepared the registry for the Add-in. 14 | // At a later time, if the Add-in becomes unavailable for reasons such as: 15 | // 1) You moved this project to a computer other than which is was originally created on. 16 | // 2) You chose 'Yes' when presented with a message asking if you wish to remove the Add-in. 17 | // 3) Registry corruption. 18 | // you will need to re-register the Add-in by building the MyAddin21Setup project 19 | // by right clicking the project in the Solution Explorer, then choosing install. 20 | #endregion 21 | 22 | /// 23 | /// The object for implementing an Add-in. 24 | /// 25 | /// 26 | /// TODO: Create a new GUID for this class using Tools...Create GUID 27 | /// TODO: Create a new ProgId for this class 28 | /// TODO: In the AddInSetup installer project, change the registry key for HKLM\Software\Mindjet\MindManager\5\AddIns\Mindjet.com.Sample.AddIn.1 to the new ProgID. 29 | /// TODO: In the AddInSetup installer project, change the Description in HKLM\Software\Mindjet\MindManager\5\AddIns\ProgID to a relevant value. 30 | /// TODO: In the AddInSetup installer project, change the FriendlyName in HKLM\Software\Mindjet\MindManager\5\AddIns\ProgID to a relevant value. 31 | /// TODO: In the AddInSetup installer project properties, change the Author property to the author of the add-in. 32 | /// TODO: In the AddInSetup installer project properties, change the Description property to the description of the add-in. 33 | /// TODO: In the AddInSetup installer project properties, change the Manufacturer property to the manufacturer of the add-in. 34 | /// TODO: In the AddInSetup installer project properties, change the Title property to the title of the add-in. 35 | /// TODO: In the AddInSetup installer project properties, create a new Upgrade Code by clicking on the ... in the UpgradeCode property. 36 | /// TODO: In the AddInSetup installer project properties, change the version property to the version of the add-in. 37 | [GuidAttribute("8851764E-7D2C-48d2-9CC9-419A06E8F6D5"), ProgId("Mindjet.com.Sample.AddIn.1")] 38 | public class Connect : Object, Extensibility.IDTExtensibility2 39 | { 40 | #region Constructors/Destructor 41 | /// 42 | /// Implements the constructor for the Add-in object. 43 | /// Place your initialization code within this method. 44 | /// 45 | public Connect() 46 | { 47 | 48 | } 49 | #endregion 50 | 51 | #region Overrides 52 | 53 | /// 54 | /// Implements the OnConnection method of the IDTExtensibility2 interface. 55 | /// Receives notification that the Add-in is being loaded. 56 | /// 57 | /// 58 | /// Root object of the host application. 59 | /// 60 | /// 61 | /// Describes how the Add-in is being loaded. 62 | /// 63 | /// 64 | /// Object representing this Add-in. 65 | /// 66 | /// 67 | public void OnConnection(object application, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom) 68 | { 69 | try 70 | { 71 | MindManager.Application app = (MindManager.Application) application; 72 | 73 | //TODO: Connect the Add-in 74 | } 75 | catch(System.Exception e) 76 | { 77 | Mindjet.Utility.HandleError(e); 78 | } 79 | } 80 | 81 | 82 | /// 83 | /// Implements the OnDisconnection method of the IDTExtensibility2 interface. 84 | /// Receives notification that the Add-in is being unloaded. 85 | /// 86 | /// 87 | /// Describes how the Add-in is being unloaded. 88 | /// 89 | /// 90 | /// Array of parameters that are host application specific. 91 | /// 92 | /// 93 | public void OnDisconnection(Extensibility.ext_DisconnectMode disconnectMode, ref System.Array custom) 94 | { 95 | try 96 | { 97 | //TODO: Disconnect the add-in 98 | } 99 | catch(System.Exception e) 100 | { 101 | Mindjet.Utility.HandleError(e); 102 | } 103 | } 104 | 105 | 106 | /// 107 | /// Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. 108 | /// Receives notification that the collection of Add-ins has changed. 109 | /// 110 | /// 111 | /// Array of parameters that are host application specific. 112 | /// 113 | /// 114 | public void OnAddInsUpdate(ref System.Array custom) 115 | { 116 | try 117 | { 118 | } 119 | catch(System.Exception e) 120 | { 121 | Mindjet.Utility.HandleError(e); 122 | } 123 | } 124 | 125 | 126 | /// 127 | /// Implements the OnStartupComplete method of the IDTExtensibility2 interface. 128 | /// Receives notification that the host application has completed loading. 129 | /// 130 | /// 131 | /// Array of parameters that are host application specific. 132 | /// 133 | /// 134 | public void OnStartupComplete(ref System.Array custom) 135 | { 136 | try 137 | { 138 | } 139 | catch(System.Exception e) 140 | { 141 | Mindjet.Utility.HandleError(e); 142 | } 143 | } 144 | 145 | 146 | /// 147 | /// Implements the OnBeginShutdown method of the IDTExtensibility2 interface. 148 | /// Receives notification that the host application is being unloaded. 149 | /// 150 | /// 151 | /// Array of parameters that are host application specific. 152 | /// 153 | /// 154 | public void OnBeginShutdown(ref System.Array custom) 155 | { 156 | try 157 | { 158 | } 159 | catch(System.Exception e) 160 | { 161 | Mindjet.Utility.HandleError(e); 162 | } 163 | } 164 | #endregion 165 | } 166 | } -------------------------------------------------------------------------------- /examples/CSharpAddIn/AddIn.csproj: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 25 | 45 | 65 | 66 | 67 | 71 | 75 | 79 | 83 | 88 | 93 | 98 | 103 | 108 | 116 | 124 | 125 | 126 | 127 | 128 | 133 | 138 | 143 | 148 | 153 | 154 | 155 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/documentation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AddIn 5 | 6 | 7 | 8 | 9 | The object for implementing an Add-in. 10 | 11 | 12 | TODO: Create a new GUID for this class using Tools...Create GUID 13 | TODO: Create a new ProgId for this class 14 | TODO: In the AddInSetup installer project, change the registry key for HKLM\Software\Mindjet\MindManager\5\AddIns\Mindjet.com.Sample.AddIn.1 to the new ProgID. 15 | TODO: In the AddInSetup installer project, change the Description in HKLM\Software\Mindjet\MindManager\5\AddIns\ProgID to a relevant value. 16 | TODO: In the AddInSetup installer project, change the FriendlyName in HKLM\Software\Mindjet\MindManager\5\AddIns\ProgID to a relevant value. 17 | TODO: In the AddInSetup installer project properties, change the Author property to the author of the add-in. 18 | TODO: In the AddInSetup installer project properties, change the Description property to the description of the add-in. 19 | TODO: In the AddInSetup installer project properties, change the Manufacturer property to the manufacturer of the add-in. 20 | TODO: In the AddInSetup installer project properties, change the Title property to the title of the add-in. 21 | TODO: In the AddInSetup installer project properties, create a new Upgrade Code by clicking on the ... in the UpgradeCode property. 22 | TODO: In the AddInSetup installer project properties, change the version property to the version of the add-in. 23 | 24 | 25 | 26 | Implements the constructor for the Add-in object. 27 | Place your initialization code within this method. 28 | 29 | 30 | 31 | 32 | Implements the OnConnection method of the IDTExtensibility2 interface. 33 | Receives notification that the Add-in is being loaded. 34 | 35 | 36 | Root object of the host application. 37 | 38 | 39 | Describes how the Add-in is being loaded. 40 | 41 | 42 | Object representing this Add-in. 43 | 44 | 45 | 46 | 47 | 48 | Implements the OnDisconnection method of the IDTExtensibility2 interface. 49 | Receives notification that the Add-in is being unloaded. 50 | 51 | 52 | Describes how the Add-in is being unloaded. 53 | 54 | 55 | Array of parameters that are host application specific. 56 | 57 | 58 | 59 | 60 | 61 | Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. 62 | Receives notification that the collection of Add-ins has changed. 63 | 64 | 65 | Array of parameters that are host application specific. 66 | 67 | 68 | 69 | 70 | 71 | Implements the OnStartupComplete method of the IDTExtensibility2 interface. 72 | Receives notification that the host application has completed loading. 73 | 74 | 75 | Array of parameters that are host application specific. 76 | 77 | 78 | 79 | 80 | 81 | Implements the OnBeginShutdown method of the IDTExtensibility2 interface. 82 | Receives notification that the host application is being unloaded. 83 | 84 | 85 | Array of parameters that are host application specific. 86 | 87 | 88 | 89 | 90 | 91 | Summary description for Installer1. 92 | 93 | 94 | 95 | 96 | Required designer variable. 97 | 98 | 99 | 100 | 101 | Default constructor 102 | 103 | 104 | 105 | 106 | Clean up any resources being used. 107 | 108 | 109 | 110 | 111 | Register the assembly for COM interop 112 | 113 | 114 | 115 | 116 | 117 | Unregister the assembly 118 | 119 | 120 | 121 | 122 | 123 | Required method for Designer support - do not modify 124 | the contents of this method with the code editor. 125 | 126 | 127 | 128 | 129 | Utility Class 130 | 131 | 132 | 133 | 134 | Default Constructor 135 | 136 | 137 | 138 | 139 | Show a message box with the error details. 140 | 141 | an exception 142 | 143 | 144 | 145 | Release A COM object 146 | 147 | 148 | 149 | 150 | 151 | 152 | the Assembly Title 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /examples/CSharpAddIn/bin/Debug/documentation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AddIn 5 | 6 | 7 | 8 | 9 | The object for implementing an Add-in. 10 | 11 | 12 | TODO: Create a new GUID for this class using Tools...Create GUID 13 | TODO: Create a new ProgId for this class 14 | TODO: In the AddInSetup installer project, change the registry key for HKLM\Software\Mindjet\MindManager\5\AddIns\Mindjet.com.Sample.AddIn.1 to the new ProgID. 15 | TODO: In the AddInSetup installer project, change the Description in HKLM\Software\Mindjet\MindManager\5\AddIns\ProgID to a relevant value. 16 | TODO: In the AddInSetup installer project, change the FriendlyName in HKLM\Software\Mindjet\MindManager\5\AddIns\ProgID to a relevant value. 17 | TODO: In the AddInSetup installer project properties, change the Author property to the author of the add-in. 18 | TODO: In the AddInSetup installer project properties, change the Description property to the description of the add-in. 19 | TODO: In the AddInSetup installer project properties, change the Manufacturer property to the manufacturer of the add-in. 20 | TODO: In the AddInSetup installer project properties, change the Title property to the title of the add-in. 21 | TODO: In the AddInSetup installer project properties, create a new Upgrade Code by clicking on the ... in the UpgradeCode property. 22 | TODO: In the AddInSetup installer project properties, change the version property to the version of the add-in. 23 | 24 | 25 | 26 | Implements the constructor for the Add-in object. 27 | Place your initialization code within this method. 28 | 29 | 30 | 31 | 32 | Implements the OnConnection method of the IDTExtensibility2 interface. 33 | Receives notification that the Add-in is being loaded. 34 | 35 | 36 | Root object of the host application. 37 | 38 | 39 | Describes how the Add-in is being loaded. 40 | 41 | 42 | Object representing this Add-in. 43 | 44 | 45 | 46 | 47 | 48 | Implements the OnDisconnection method of the IDTExtensibility2 interface. 49 | Receives notification that the Add-in is being unloaded. 50 | 51 | 52 | Describes how the Add-in is being unloaded. 53 | 54 | 55 | Array of parameters that are host application specific. 56 | 57 | 58 | 59 | 60 | 61 | Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. 62 | Receives notification that the collection of Add-ins has changed. 63 | 64 | 65 | Array of parameters that are host application specific. 66 | 67 | 68 | 69 | 70 | 71 | Implements the OnStartupComplete method of the IDTExtensibility2 interface. 72 | Receives notification that the host application has completed loading. 73 | 74 | 75 | Array of parameters that are host application specific. 76 | 77 | 78 | 79 | 80 | 81 | Implements the OnBeginShutdown method of the IDTExtensibility2 interface. 82 | Receives notification that the host application is being unloaded. 83 | 84 | 85 | Array of parameters that are host application specific. 86 | 87 | 88 | 89 | 90 | 91 | Summary description for Installer1. 92 | 93 | 94 | 95 | 96 | Required designer variable. 97 | 98 | 99 | 100 | 101 | Default constructor 102 | 103 | 104 | 105 | 106 | Clean up any resources being used. 107 | 108 | 109 | 110 | 111 | Register the assembly for COM interop 112 | 113 | 114 | 115 | 116 | 117 | Unregister the assembly 118 | 119 | 120 | 121 | 122 | 123 | Required method for Designer support - do not modify 124 | the contents of this method with the code editor. 125 | 126 | 127 | 128 | 129 | Utility Class 130 | 131 | 132 | 133 | 134 | Default Constructor 135 | 136 | 137 | 138 | 139 | Show a message box with the error details. 140 | 141 | an exception 142 | 143 | 144 | 145 | Release A COM object 146 | 147 | 148 | 149 | 150 | 151 | 152 | the Assembly Title 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /examples/MM2LaTeX/MindMan2LaTeX.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 54 | 55 | 62 | 63 | 64 | 65 | 66 | 67 | %% 68 | %% This document was automatically generated from a Mindmap (MindManager X5) 69 | %% 70 | \documentclass{article} 71 | 72 | 73 | 74 | \begin{document} 75 | \maketitle 76 | \tableofcontents 77 | \newpage 78 | 79 | 80 | 81 | \end{document} 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | \author{ 94 | 95 | } 96 | 97 | 98 | 99 | 100 | 101 | \date{ 102 | 103 | } 104 | 105 | 106 | 107 | 108 | 109 | \title{ 110 | 111 | } 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 136 | 137 | 140 | 141 | 142 | 143 | 144 | \begin{itemize} 145 | 146 | 147 | 148 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | \end{itemize} 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 175 | 176 | 177 | \item 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 188 | 189 | 190 | \ 191 | 192 | 193 | 194 | 195 | 196 | section{ 197 | } 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | sub 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 219 | 220 | 221 | 222 | 223 | 224 | \textit{ 225 | 226 | } 227 | 228 | 229 | 230 | \textbf{ 231 | 232 | } 233 | 234 | 235 | 236 | %% include image 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | \begin{itemize} 258 | 259 | 260 | 261 | \item 262 | 263 | 264 | 265 | \end{itemize} 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | -------------------------------------------------------------------------------- /examples/references/macReferences.mmbas: -------------------------------------------------------------------------------- 1 | '----------------------------------------------------------------------------- 2 | 'macReferences 3 | 'Description: Macro used to insert in text references from a reference list 4 | ' into topic Notes. The macro should be saved and added to the 5 | ' Notes context menu. Right clicking from the desired insertion 6 | ' point within the notes will provide the user with a list of 7 | ' available references for insertion. For this macro to work 8 | ' it requires a defined basic ordering idea or main topic 9 | ' called "References" under which the subtopics are the 10 | ' individual references. The format should be of the type 11 | ' "Smith, 2000". Currently the macro relies on a standard 12 | ' reference of author date. In the future it may be possible 13 | ' to modify the code to cope with a wider array of referencing 14 | ' situations. 15 | 'Author: Created by Trent Jordan 16 | 'Date: 21 May 2005 17 | '----------------------------------------------------------------------------- 18 | Option Explicit 19 | Option Base 1 20 | 21 | 'Variable used to define the path of the document 22 | Dim mstrPath As String 23 | 24 | 'Constant used to define the name of this macro. Used in error tracking 25 | Const mstrcMac As String = "macReferences" 26 | 27 | 28 | Sub Main 29 | Dim docActive As Document 30 | Dim topActive As Topic 31 | Dim topRef As Topic 32 | Dim topCentral As Topic 33 | Dim etopBOI As Topic 34 | Dim etopRef As Topic 35 | Dim astrReferences$() 36 | Dim iint As Integer 37 | Dim strRef As String 38 | Dim intOpt As Integer 39 | Dim lngCursor As Long 40 | 41 | Const strcProc As String = "Main" 42 | 43 | On Error GoTo Main_Error 44 | 45 | '!!Important: This constant is used to define the text/name of the main 46 | 'topic which contains all the references as subtopics. There must be a 47 | 'main topic titled according to this string for the macro to work. 48 | Const strcReferenceTopic As String = "References" 49 | 50 | 'Define the active document 51 | Set docActive = ActiveDocument 52 | mstrPath=docActive.Path 53 | 54 | 'Set variable topActive as the selected topic 55 | '?? Is this the best way to define the selected topic? 56 | Set topActive = ActiveDocument.Selection.PrimaryTopic 57 | 58 | 'Set variable topCentral as the central topic in the active document 59 | 'from where we search for the references. 60 | Set topCentral =docActive.CentralTopic 61 | 62 | 'This bit here doesn't work... it returns a value of 1. I have assigned 63 | 'the macro to the notes context window, so right clicking and why?? 64 | lngCursor = topActive.Notes.CursorPosition 65 | 66 | iint =0 67 | 'Loop through the main topics in order to find the References main topic 68 | For Each etopBOI In topCentral.SubTopics 69 | If etopBOI.Text = strcReferenceTopic Then 70 | 'Now loop through all the individual references and log them in 71 | 'the array astrReferences 72 | For Each etopRef In etopBOI.SubTopics 73 | iint = iint+1 74 | ReDim Preserve astrReferences$(iint) 75 | astrReferences$(iint)=etopRef.Text 76 | Next etopRef 77 | End If 78 | Next etopBOI 79 | 80 | 'If iint =0 then it means that no references were found and logged to the 81 | 'astrReferences array. So the user is shown a message before the macro 82 | 'is exited. 83 | If iint=0 Then 84 | MsgBox "No references could be found in the map",vbExclamation+vbOkOnly 85 | Exit Sub 86 | End If 87 | 88 | 'Define the userdialog box, which presents the user with the list of 89 | 'references from astrReferences. 90 | Begin Dialog UserDialog 390,196 ' %GRID:10,7,1,1 91 | ListBox 20,14,180,175,astrReferences$(),.strListChoice 92 | OKButton 260,140,90,21 93 | GroupBox 220,56,160,70,"Reference style",.GroupBox1 94 | OptionGroup .Options 95 | OptionButton 240,98,110,14,"(Smith, 2000)" 'Value 0 96 | OptionButton 240,77,110,14,"Smith (2000)" 'Value 1 97 | Text 220,14,160,35,"Insert a reference into the notes.",.Text1 98 | CancelButton 260,168,90,21 99 | End Dialog 100 | 101 | Dim dlg As UserDialog 102 | 103 | 'Define defaults for the dialog box 104 | dlg.Options = 1 105 | dlg.strListChoice = 0 106 | 107 | 'Display the dialog box, but cancel/end the macro if the cancel button 108 | 'is hit. 109 | If Dialog(dlg) <> -1 Then' show dialog (wait for ok) 110 | Exit Sub 111 | End If 112 | 113 | 'Set strRef to the selected option (note the option base for the dialog 114 | 'box is 0 so we have to add 1 to dlg.strListChoice. 115 | strRef = CStr(astrReferences$(CInt(dlg.strListChoice+1))) 116 | intOpt = dlg.Options 117 | 118 | 'Call the GetReferenceStyle function and modify the refernce accordingly 119 | strRef = GetReferenceStyle(intOpt, strRef) 120 | 121 | 'This is the other bit that doesn't work. If the macro had picked up the 122 | 'correct cursor position, we could ensure that that position was still 123 | 'selected at this point. 124 | topActive.Notes.CursorPosition = lngCursor 125 | 126 | topActive.Notes.Insert strRef 127 | 128 | Main_Exit: 129 | Exit Sub 130 | 131 | Main_Error: 132 | GlobalErrorHandler Err.Number, Err.Source, Err.Description, mstrcMac, strcProc, "", True 133 | GoTo Main_Exit 134 | 135 | End Sub 136 | 137 | Function GetReferenceStyle(ByVal rintOpt As Integer, ByVal rstrRef As String) As String 138 | 'Purpose: Modify a string reference that is in the form "Smith, 2000" into 139 | ' appropriate strings that can be inserted into text. 140 | 'Issues: Currently crude. Relies on the fact that the reference is entered 141 | ' with the last four characters in the string being the date. 142 | ' Obviously this will not always be the case. Hence this function 143 | ' can be improved to cater for other situations that currently won't 144 | ' work (e.g. "Smith n.d.") 145 | 146 | Dim strRefAuth As String 147 | Dim strRefDate As String 148 | 149 | Const strcProc As String = "GetReferenceStyle" 150 | 151 | On Error GoTo GetReferenceStyle_Error 152 | 153 | 'Extract the author(s) from the reference 154 | strRefAuth = Left(rstrRef,(Len(rstrRef)-6)) 155 | 156 | 'Extract the date from the reference 157 | strRefDate = Right(rstrRef$,4) 158 | 159 | Select Case rintOpt 160 | Case 1 'Style: ... Smith (2000) ... 161 | GetReferenceStyle = strRefAuth & " (" & strRefDate & ")" 162 | Case 0 'Style: ... (Smith, 2000) ... 163 | GetReferenceStyle = "(" & rstrRef & ")" 164 | End Select 165 | 166 | GetReferenceStyle_Exit: 167 | Exit Function 168 | 169 | GetReferenceStyle_Error: 170 | GlobalErrorHandler Err.Number, Err.Source, Err.Description, mstrcMac, strcProc, "", True 171 | GoTo GetReferenceStyle_Exit 172 | 173 | End Function 174 | 175 | 176 | Public Function GlobalErrorHandler(ByVal lngErrNumber As Long _ 177 | , ByVal strErrSource As String _ 178 | , ByVal strErrDescription As String _ 179 | , ByVal strModuleName As String _ 180 | , ByVal strProcedureName As String _ 181 | , ByVal strOtherText As String _ 182 | , Optional ByVal blnDisplayMsg As Boolean) As Boolean 183 | 'Purpose: To log errors in a text file 184 | 'Author: Adapted for use by Trent Jordan from www.accesswizards.com 185 | 'Returns: Returns 'True' (boolean) if error was successfully logged 186 | 187 | Const strcLogFile As String = "MindManger_Referencing.txt" 188 | Const strTitle As String = "Referencing" 189 | Const strAuthor As String = "Trent Jordan" 190 | Const strAuthorEmail As String = "trentandmary@optusnet.com.au" 191 | Dim strDir As String 192 | Dim strFullName As String 193 | 194 | On Error GoTo GlobalErrorHandler_err 195 | 196 | GlobalErrorHandler = False 197 | 198 | If IsNull(strErrDescription) Then 199 | strErrDescription = "No Description Returned" 200 | Else 201 | strErrDescription = RemoveErrorMsgCharacters(strErrDescription) 202 | End If 203 | 204 | If IsMissing(strOtherText) Then 205 | strOtherText = "" 206 | End If 207 | 208 | If IsMissing(blnDisplayMsg) Then 209 | blnDisplayMsg = True 210 | End If 211 | 212 | strDir = mstrPath 213 | 214 | strFullName = strDir & "\" & strcLogFile 215 | Open strFullName For Append As #1 216 | 217 | Write #1, "Error logged at: " & Now() 218 | On Error Resume Next 219 | 'Ignores any errors that may occur when retrieving local and network user names. 220 | On Error GoTo GlobalErrorHandler_err 221 | Write #1, "Err Number: " & lngErrNumber 222 | Write #1, "Err Source: " & strErrSource 223 | Write #1, "Err Description: " & strErrDescription 224 | Write #1, "Module: " & strModuleName 225 | Write #1, "Procedure: " & strProcedureName 226 | Write #1, "Notes: " & strOtherText 227 | Write #1, 228 | Close #1 229 | 230 | If blnDisplayMsg = True Then 231 | MsgBox "The following error occurred in " & strTitle & " :" & vbCrLf & vbCrLf & _ 232 | "Error Number: " & lngErrNumber & vbCrLf & _ 233 | "Error Description: " & strErrDescription, vbCritical + vbOkOnly 234 | End If 235 | 236 | GlobalErrorHandler = True 237 | 238 | GlobalErrorHandler_exit: 239 | Exit Function 240 | 241 | GlobalErrorHandler_err: 242 | MsgBox "An error occurred in the " & strTitle & " Global Error Handler. " _ 243 | & "Please note the details below and contact email " & strAuthor & " at '" & strAuthorEmail & " '" _ 244 | & vbNewLine & vbNewLine _ 245 | & "Err Number: " & lngErrNumber & vbNewLine _ 246 | & "Err Source: " & strErrSource & vbNewLine _ 247 | & "Err Description: " & strErrDescription & vbNewLine _ 248 | & "Module: " & strModuleName & vbNewLine _ 249 | & "Procedure: " & strProcedureName & vbNewLine _ 250 | & "Notes: " & strOtherText, vbExclamation + vbOkOnly 251 | 252 | GoTo GlobalErrorHandler_exit 253 | 254 | End Function 255 | 256 | Public Function RemoveErrorMsgCharacters(strErrorMsg As String) As String 257 | 'Purpose: To remove "@" characters from error message descriptions 258 | 259 | Dim intLen As Integer 260 | Dim iintLoop As Integer 261 | Dim strReturn As String 262 | Dim strChar As String 263 | 264 | intLen = Len(strErrorMsg) 265 | strReturn = "" 266 | For iintLoop = 1 To intLen 267 | strChar = Mid(strErrorMsg, iintLoop, 1) 268 | If strChar <> "@" Then 269 | strReturn = strReturn & strChar 270 | End If 271 | Next iintLoop 272 | 273 | RemoveErrorMsgCharacters = strReturn 274 | 275 | End Function 276 | -------------------------------------------------------------------------------- /docs/xsl-reference/schemas.mindjet.com.MindManager.Core.2003.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | MindManager core schema 8 | 9 | 10 | *** Core simple types *** 11 | 12 | 13 | 14 | Globally unique identifier 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | Index path to the property within stack of containing group properties; used in shallow property references; represented in form of index array where last element is an index of pointing property and all preceding indexes describe path through stack of containing group properties 23 | 24 | 25 | 26 | 27 | 28 | 64-bit universal bit set 29 | 30 | 31 | 32 | 33 | 34 | 35 | *** Property and Property based types *** 36 | 37 | 38 | 39 | Property; should be contained by an object or a group property; generic property represents atomic application content with no identity; is a base for all properties; is abstract 40 | 41 | 42 | 43 | 44 | 45 | Property that contains value attributes; is a base for all properties; is abstract 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | Property that may occur more than one time inside of an object or a group property; is a base for specific multiple properties; is abstract 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | Property that contains a group of other properties; is a base for specific group properties; is abstract 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | Property that contains ad-hoc attributes and elements from other namespaces; is final 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | Property that contains zero or one object; is a base for type specific object properties; is abstract 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | Property that contains zero or more objects; is a base for type specific objects properties; is abstract 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | Property that contains or references binary block; is a base for binary block containing properties; is abstract 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | Property that contains plain text block; is a base for plain text block containing properties; is abstract 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | Property that contains XHTML text block; is a base for XHTML text block containing properties; is abstract 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | Property that contains set of indexed synchronization baselines; is final 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | Synchronization baseline; is an internal part of Baselines property; is final 156 | 157 | 158 | 159 | 160 | 161 | *** Object type *** 162 | 163 | 164 | 165 | Object with identity and generation mask; should be either global or contained by one object property or objects property; generic object represents identified object with specific set of properties; is a base for all objects; is abstract 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | *** Clip and ClipObject type *** 177 | 178 | 179 | 180 | Clip that contains zero or more clip objects; represents clipboard content; is final 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | Clip object that contains object itself with its location described with containing object reference and containing property reference; represents one generic object contained by clip; is final 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | *** Clip element *** 199 | 200 | 201 | 202 | Clip global element 203 | 204 | 205 | 206 | *** Reference types *** 207 | 208 | 209 | 210 | Reference to object identified by object's unique identifier; should reference zero (unresolved reference) or one object; is final 211 | 212 | 213 | 214 | 215 | 216 | Reference to property identified by qualified name, containing property reference and index path; may be shallow or deep; is final 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | -------------------------------------------------------------------------------- /examples/resource-cross-reference/ToolsCntOutItem.mmbas: -------------------------------------------------------------------------------- 1 | '#Reference {A5082CA1-0580-4287-B3D5-91B0FDB3C0FE}#1.0#0#C:\Program Files\Mindjet\MindManager 5\Mm5WebExport.dll#Mm5webexport 1.0 Type Library 2 | '#Uses "TOCHandler.cls" 3 | '#Uses "GlobalUtilities.mmbas" 4 | '#Uses "GlobalTypes.mmbas" 5 | 6 | Dim CurrentBranchLevel As Long 7 | Dim LevelCounter As Long 8 | Dim TheOutlineNumber As String 9 | Dim MainTopicCounter As Long 10 | Dim LastLevel As Long 11 | 12 | Dim s As Long 13 | Dim CurrentOutlineNumber As String 14 | Dim NumberOfLevelsToJumpDown As Long 15 | 16 | Type resource_pointer 17 | htmlfile As String 18 | htmlbookmark As String 19 | topicName As String 20 | taskPriority As Long 21 | End Type 22 | 23 | Type resource_name 24 | res_name As String 25 | res_ndx As Long 26 | End Type 27 | 28 | Dim resource_names( 1 To 1000 ) As resource_name 29 | Dim resource_pointers( 1 To 1000, 1 To 1000 ) As resource_pointer 30 | Dim resource_ndx As Long 31 | 32 | 33 | Option Explicit 34 | 35 | Sub Main 36 | 37 | Dim addin As Mm5WebExportAddIn 38 | Dim webex As WebExport 39 | Dim aPage As Mm5WebExportLib.Page 40 | 41 | Set addin = WebExportHelper.WebExportAddIn 42 | Set webex = addin.ActiveWebExport 43 | 44 | Dim oneDoc As Document 45 | Dim oneTopic As Topic 46 | 47 | Dim count As Long 48 | Dim bodyString As String 49 | 50 | Dim resource_mapping As String 51 | Dim tmp_priority As String 52 | 53 | Dim x As Long 54 | Dim y As Long 55 | Dim z As Long 56 | 57 | On Error GoTo ReportError 58 | 59 | webex.Trace("Entering ToolsCntOutItem.mmbas",2) 60 | 'webex.MessageBox("Entering ToolsCntOutItem.mmbas") 61 | 62 | ' Outline level counter initialization 63 | LastLevel = 0 64 | MainTopicCounter = 0 65 | 66 | ' Get the central topic object 67 | Set oneTopic = webex.ActiveTopic 68 | Set oneDoc = oneTopic.Document 69 | Set oneTopic = oneDoc.CentralTopic 70 | 71 | webex.Trace("Page_Tools_Utilities_Contents_OutlineItem - Starting recursive call",1) 72 | 73 | ' Recursive map traversal 74 | Call MapTraversal(oneTopic, bodyString, webex) 75 | 76 | ' Now, go through the stores resource tagged entries, and create a table of contents entry for all those records in that table 77 | ' Should show up as a standard Entry listing at the bottom of the table of contents each time. 78 | 79 | ' Only make this output table if there are resources asssigned 80 | 81 | resource_mapping = "" 82 | 83 | If resource_ndx > 0 Then 84 | 85 | ' If we got any entries, let's sort them by name first 86 | 87 | 88 | Call bubblesort_names( webex ) 89 | 90 | ' Now start generating the TOC 91 | 92 | Call insert_toc( resource_mapping, 1, "Resource Crossreference", "", "", webex ) 93 | 94 | For x = 1 To resource_ndx 95 | 96 | y = resource_names( x ).res_ndx 97 | 98 | Call insert_toc( resource_mapping, 2, resource_names( x ).res_name, "", "", webex ) 99 | 100 | z = 1 101 | 102 | While z <= 1000 And resource_pointers( y, z ).htmlbookmark <> "" 103 | 104 | Select Case resource_pointers( y, z).taskPriority 105 | Case 0 106 | tmp_priority = "No priority - " 107 | Case Else 108 | tmp_priority = "P" + CStr( resource_pointers( y, z).taskPriority ) + " - " 109 | End Select 110 | 111 | Call insert_toc( resource_mapping, 3, fix_title( tmp_priority + resource_pointers( y, z).topicName ), resource_pointers( y, z).htmlfile, resource_pointers( y, z).htmlbookmark, webex ) 112 | 113 | z = z + 1 114 | 115 | Wend 116 | 117 | If z > 1 Then 118 | 119 | resource_mapping = resource_mapping + "]," + Chr$(10) 120 | 121 | End If 122 | 123 | Next x 124 | 125 | resource_mapping = resource_mapping + "]," + Chr$(10) 126 | 127 | End If 128 | 129 | resource_mapping = resource_mapping + "] ];" 130 | 131 | 'webex.MessageBox( resource_mapping ) 132 | 133 | webex.WriteFile( webex.AbsoluteExportDirectory + "resource_mapping.js", resource_mapping) 134 | 135 | ' Store our result 136 | webex.PushString(bodyString) 137 | 138 | webex.Trace("Exiting ToolsCntOutItem.mmbas",2) 139 | 140 | Exit Sub 141 | 142 | ReportError: 143 | ProcessError(webex) 144 | Exit Sub 145 | 146 | End Sub 147 | 148 | Function MapTraversal(ByVal oneTopic As Topic, ByRef bodyString As String, ByRef webex As WebExport) 149 | 150 | Dim oneTOCHandler As TOCHandler 151 | Dim nextTopic As Topic 152 | Dim TopicCount As Integer 153 | Dim LocalTemplate As String 154 | Dim LocalTopicString As String 155 | Dim k As Long 156 | Dim l As Long 157 | Dim TheTOCNumber As String 158 | Dim TopicText As String 159 | Dim TopicLink As HyperlinkData 160 | 161 | ' *** Parameters added to support provided a resource listing at the end of the table of contents 162 | 163 | Dim oneTask As Task 164 | Dim htmlfile As String 165 | Dim htmlbookmark As String 166 | Dim names(1 To 255) As String 167 | Dim names_ndx As Long 168 | Dim x As Long 169 | 170 | 'webex.MessageBox( "Got to MapTraversal" ) 171 | 172 | Set oneTOCHandler = New TOCHandler 173 | 174 | ' Keep track of "recurse level" 175 | LevelCounter = LevelCounter + 1 176 | 177 | TopicCount = oneTopic.SubTopics(False).Count 178 | 179 | ' Check and see if this task has resources assigned, so that we can create our quick link index at the end of things 180 | 181 | Set oneTask = oneTopic.Task 182 | If oneTask.Resources <> "" Then 183 | 184 | webex.FilenameAndBookmarkFromTopic( oneTopic, htmlfile, htmlbookmark ) 185 | 186 | 187 | ' For each new name, figure out the sort order of the names 188 | ' Seperate out the names found by "," markers 189 | 190 | names_ndx = 0 191 | 192 | Call parse_names( oneTask.Resources, names(), names_ndx, webex ) 193 | 194 | For x = 1 To names_ndx 195 | 196 | Call insert_entry( names(x), htmlfile, htmlbookmark, oneTopic.Text, oneTask.Priority ,webex ) 197 | 198 | Next x 199 | 200 | End If 201 | 202 | For k = 1 To TopicCount 203 | 204 | Set nextTopic = oneTopic.SubTopics(False).Item(k) 205 | 206 | TheTOCNumber = oneTOCHandler.GetOutlineNumberForTopic(nextTopic, _ 207 | webex.GetParameter("Strings.Show.NumberToLevel")) 208 | 209 | TopicLink = TopicHyperlink(webex, nextTopic) 210 | 211 | webex.SetParameter("CustomParameter.TopicHyperlink", TopicLink.Url) 212 | webex.SetParameter("CustomParameter.TopicText", VerifyTopicText(webex, nextTopic)) 213 | webex.SetParameter("CustomParameter.TopicTarget", TargetAttribute(TopicLink)) 214 | 215 | ' Enforce maximum "TOC level" 216 | 'If LevelCounter > webex.GetParameter("Strings.Miscellaneous.TableOfContentsOutlineNumbers") Then 217 | ' webex.SetParameter("CustomParameter.TOCOutlineNumberToWrite", "") 218 | ' Else 219 | webex.SetParameter("CustomParameter.TOCOutlineNumberToWrite", TheTOCNumber) 220 | 'End If 221 | 222 | ' Enforce maximum "indentation levels" 223 | If LevelCounter > 9 Then 224 | webex.SetParameter("CustomParameter.TOCOutlineLevel", "x") 225 | Else 226 | webex.SetParameter("CustomParameter.TOCOutlineLevel", LevelCounter) 227 | End If 228 | 229 | LocalTemplate = webex.ReadFile("ToolsCntOutItem.htm") 230 | LocalTopicString = LocalTemplate 231 | 232 | ' Process our template and replace parameters, then store new bodystring 233 | ProcessString webex, LocalTopicString 234 | bodyString = bodyString + LocalTopicString 235 | 236 | ' Recursive call 237 | Call MapTraversal(nextTopic, bodyString, webex) 238 | 239 | Next k 240 | 241 | ' Close open levels as we exit recursive loop 242 | 'bodyString = bodyString + "" + vbCrLf 243 | 244 | ' Keep track of recurse level 245 | LevelCounter = LevelCounter - 1 246 | 247 | End Function 248 | 249 | Sub parse_names( the_name As String, ByRef parsed_names() As String, ByRef parsed_names_ndx As Long , ByRef webex As WebExport) 250 | 251 | ' Extract all the resource names into an array, so that each name can be listed individually 252 | 253 | Dim tmp_str As String 254 | Dim tmp_pos As Long 255 | Dim tmp_parsed As String 256 | 257 | tmp_str = the_name 258 | 259 | tmp_pos = InStr( 1, tmp_str, "," ) 260 | 261 | While tmp_pos <> 0 Or Len( Trim( tmp_str ) ) > 0 262 | 263 | If tmp_pos > 1 Then 264 | tmp_parsed = Trim( Left( tmp_str, tmp_pos - 1 ) ) 265 | tmp_str = Trim( Mid( tmp_str, tmp_pos+1, Len(tmp_str) ) ) 266 | ElseIf tmp_pos = 0 Then 267 | tmp_parsed = Trim( tmp_str) 268 | tmp_str = "" 269 | End If 270 | 271 | If tmp_parsed <> "" Then 272 | 'webex.MessageBox( "Parsed the name: " + tmp_parsed ) 273 | parsed_names_ndx = parsed_names_ndx + 1 274 | parsed_names( parsed_names_ndx ) = tmp_parsed 275 | End If 276 | 277 | tmp_pos = InStr( 1, tmp_str, "," ) 278 | 279 | Wend 280 | 281 | End Sub 282 | Sub insert_entry( this_name As String, htmlfile As String, htmlbookmark As String, this_topic As String, this_priority As Long, ByRef webex As WebExport ) 283 | 284 | Dim x As Long 285 | Dim cur_ndx As Long 286 | Dim cur_entry As Long 287 | Dim tmp_str As String 288 | 289 | cur_entry = 0 290 | cur_ndx = 0 291 | 292 | ' Figure out where in the resource name array we have to put this name 293 | ' If we have a new name, it gets inserted into the array at the correct order 294 | 295 | x = 1 296 | 297 | While x <= resource_ndx And cur_ndx = 0 298 | 299 | If resource_names( x ).res_name = this_name Then 300 | 'webex.MessageBox( "Found matching resource: " + resource_names( x ).res_name + "=" + this_name ) 301 | cur_ndx = x 302 | End If 303 | 304 | x = x + 1 305 | 306 | Wend 307 | 308 | If cur_ndx = 0 Then 309 | 310 | 'webex.MessageBox( "Adding resource to the end of the array -> " + this_name) 311 | 312 | resource_ndx = resource_ndx + 1 313 | 314 | cur_ndx = x 315 | 316 | ' Store the name and index in our name storage area 317 | 318 | resource_names( cur_ndx ).res_name = this_name 319 | resource_names( cur_ndx ).res_ndx = resource_ndx 320 | 321 | End If 322 | 323 | ' Now figure out where we can put this pointer to the resource data 324 | 325 | x = 1 326 | 327 | While x <= 1000 And cur_entry = 0 328 | 329 | If resource_pointers( cur_ndx, x ).htmlbookmark = "" Then 330 | cur_entry = x 331 | End If 332 | 333 | x = x + 1 334 | 335 | Wend 336 | 337 | ' Store the particular resource entry for this topic 338 | 339 | resource_pointers( cur_ndx, cur_entry).htmlbookmark = htmlbookmark 340 | resource_pointers( cur_ndx, cur_entry).htmlfile = htmlfile 341 | resource_pointers( cur_ndx, cur_entry).topicName = this_topic 342 | resource_pointers( cur_ndx, cur_entry).taskPriority = this_priority 343 | 344 | 345 | End Sub 346 | 347 | Sub display_arrays( ByRef webex As WebExport ) 348 | 349 | Dim x As Long 350 | Dim y As Long 351 | Dim tmp_str As String 352 | 353 | webex.MessageBox( "Resource_ndx: " + CStr(resource_ndx ) ) 354 | 355 | For x = 1 To resource_ndx 356 | 357 | webex.MessageBox( "Displaying the list of names" ) 358 | 359 | webex.MessageBox( "Resource_Sorted: " + CStr( resource_names( x ).res_ndx ) ) 360 | 361 | webex.MessageBox( "Resource name: " + resource_names( resource_names( x ).res_ndx ).res_name ) 362 | 363 | y = 1 364 | While y <= 1000 And resource_pointers( resource_names( x ).res_ndx, y ).htmlbookmark <> "" 365 | 366 | tmp_str = resource_pointers( resource_names( x ).res_ndx, y ).htmlfile + "#" + resource_pointers( resource_names( x ).res_ndx, y ).htmlbookmark + " -> " + resource_pointers( resource_names( x ).res_ndx, y ).topicName 367 | 368 | webex.MessageBox( " Pointer found: " + tmp_str ) 369 | 370 | y = y + 1 371 | 372 | Wend 373 | 374 | Next x 375 | 376 | End Sub 377 | 378 | 379 | Sub insert_toc( ByRef bodyString As String, ind_level As Long, entry_title As String, entry_htmlfile As String, entry_htmlbookmark As String, ByRef webex As WebExport ) 380 | 381 | If ind_level < 3 Then 382 | 383 | bodyString = bodyString + "['" + entry_title + "','',{'sb':' '}," + Chr$(10) 384 | 385 | Else 386 | 387 | bodyString = bodyString + "['" + entry_title + "','" + entry_htmlfile + "#" + entry_htmlbookmark + "',{'tt':'" + entry_title + "','sb':'" + entry_htmlfile + "#" + entry_htmlbookmark + "'},]," + Chr$(10) 388 | 389 | End If 390 | 391 | 392 | End Sub 393 | 394 | Sub bubblesort_names( webex As WebExport) 395 | 396 | Dim EventLoop As Long 397 | Dim intCounter As Long 398 | Dim tmp_name As String 399 | Dim tmp_ndx As Long 400 | 401 | ' Sort the names, and retain the tracking index to the main task entries 402 | 403 | For EventLoop = 1 To resource_ndx 404 | 405 | For intCounter = 1 To (resource_ndx - 1) 406 | 407 | If resource_names(intCounter).res_name > resource_names(intCounter + 1).res_name Then 408 | 409 | ' Swap around the entries 410 | 411 | tmp_name = resource_names(intCounter).res_name 412 | resource_names(intCounter).res_name = resource_names(intCounter + 1).res_name 413 | resource_names(intCounter + 1).res_name = tmp_name 414 | 415 | ' Make sure the index tracks with the name 416 | 417 | tmp_ndx = resource_names(intCounter).res_ndx 418 | resource_names(intCounter).res_ndx = resource_names(intCounter + 1).res_ndx 419 | resource_names(intCounter + 1).res_ndx = tmp_ndx 420 | 421 | End If 422 | 423 | Next intCounter 424 | 425 | Next EventLoop 426 | 427 | End Sub 428 | 429 | Function fix_title( the_name As String) As String 430 | 431 | Dim tmp_str As String 432 | Dim tmp_ndx As Long 433 | 434 | 435 | For tmp_ndx = 1 To Len(the_name ) 436 | 437 | If Mid( the_name, tmp_ndx, 1 ) <> "'" Then 438 | tmp_str = tmp_str + Mid( the_name, tmp_ndx, 1 ) 439 | End If 440 | 441 | Next tmp_ndx 442 | 443 | fix_title = tmp_str 444 | 445 | End Function 446 | -------------------------------------------------------------------------------- /docs/API-Object-Reference/Mind Manager Object Model Reference for V7.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Mind Manager Object Model Reference for V7
4 | 5 | 6 | 7 | 11 | 33 | 34 | 35 | 38 | 39 | 40 | 43 | 44 |
8 | 12 | 13 |
14 | 15 | 16 | Home 17 | 18 | 19 | 20 | | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 | 32 |
36 |
Welcome to the MindManager 7 DevZone!
37 |
41 | 42 |
45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 64 | 218 | 219 |
53 | 54 | 55 | 56 | 61 | 62 | 63 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 87 | 103 | 106 | 107 | 108 | 109 | 115 | 119 | 120 | 121 | 122 | 181 | 185 | 186 | 187 | 188 | 189 | 190 | 204 | 208 | 212 | 213 | 214 |
74 | 75 | 76 | Home 77 | > 78 | 79 | 80 | 81 | 82 | 5. Object Model Reference 83 | 84 | 85 | 86 | 88 | 89 | 90 | 91 | 92 | Previous 93 | 94 |    95 | 96 | 97 | Next 98 | 99 | 100 | 101 | 102 | 105 |
110 |
111 |
113 |
114 |
118 |
123 | 124 | 125 | 135 | 136 |
128 | 129 | 130 | 5. Object Model Reference 131 | 134 |
137 | 138 | 139 |
The MindManager 7 Object Model Reference details all the properties and methods that can be 140 | used to programmatically work with MindManager. This is key information for all add-in and macro 141 | developers.
142 | 143 | 144 | 145 | 146 |
147 | 148 | 149 |
150 |
Links
151 |
152 | 153 |
154 | 155 | 156 | 157 | Click here to read the article 158 | 159 | 160 |
161 | 162 | 163 |
164 | 165 | 166 | 167 | Click here to download the map. 168 | 169 | 170 |
171 | 172 | 173 |
174 |
175 | 176 | 177 |
178 | 179 | 180 |
184 |
191 |
192 |
193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 |
202 |
203 |
205 | 206 |      207 | 211 |
215 | 216 | 217 |
220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 231 | 238 | 239 | 240 | 246 | 247 | 248 | 250 |
229 |
230 |
232 |
233 | 234 | Powered By MindManager 6 235 | 236 |
237 |
241 |
242 | Last updated: 243 | 6/11/2007 244 |
245 |
249 |
251 | 252 | 253 | 254 | 255 | 256 | 257 |

-------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------