Plugins: Difference between revisions

From SMath Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
#* Plugin(s) will be installed.
#* Plugin(s) will be installed.


== Creating Plugins ==
== Plugins Development ==
For third-party developers, we provide the opportunity to create new [[Plugins]] according to customer requirements. You can use [[Plugins]] with source codes available as a reference. The repository is available at [https://smath.info/svn/public SMath SVN repository].
For third-party developers, we provide the opportunity to create new [[Plugins]] according to customer requirements. As an example you can use [[Plugins]] that have [[Open Source Code|source codes]] available.
 
== Creating Custom Plugin ==
To work with the custom plugin code on Windows please follow the following steps:
# Install the current current version of [https://smath.com/ru-RU/view/SMathStudio/download SMath Studio].
# Install the current current version of [https://visualstudio.microsoft.com/ru/vs/community/ Visual Studio Community].
# Create a '''Class Library (.Net Framework)''' project by specifying '''.Net Framework 2.0''' in the Framework field in the project creation dialogue.
# Implement one or more [[SMath Studio]] interfaces inherited from IPlugin:
#* '''IPluginLowLevelEvaluationFast''' - interception of operators and functions.
#* '''IPluginMathNumericEvaluation''' - interception of numerical computing.
#* '''IPluginCustomRegion''' - interception of a sheet item type creation.
#* '''IPluginRegionDrawing''' - interception of a formula element in a mathematical formula drawing.
#* '''IPluginSaveFileTypes''' - interception of calculation saving to the file.
#* '''IPluginOpenFileTypes''' - interception of calculation file opening.
#* '''IPluginDataInputOutput''' - customizing format for setting initial data and calculation results for automation and integration with other applications.
#* '''IPluginMenuExtender''' - extension of the program's main menu.


[[Category:Manual]]
[[Category:Manual]]
[[Category:SMath Studio]]
[[Category:SMath Studio]]

Revision as of 08:34, 22 August 2024

Introduction

The capabilities of the SMath Studio program can be expanded by installing Plugins. Plugins are divided into commercial and third-party and can affect the following functionality:

  1. Import and export documents in third-party application file formats.
  2. Symbolic and numerical calculations.
  3. Additional calculation sheet elements support.
  4. Additional elements in the program user interface (sidebar and main menu).

Plugins Installation

Plugins can be downloaded and installed into SMath Studio in a variety of ways, and the installation method does not affect the functionality provided. Some Plugins may require an Internet connection or additional libraries/programs installed on the operating system. To access information about technical requirements and limitations, please read the instructions for the Plugins themselves.

Online Installation

To install Plugins online you need:

  1. Open Extension Manager (using the main menu "Tools" > "Plugins...").
  2. Go to the Plugins tab and switch the source from "Local storage" to "Online gallery".
  3. Select the required plugin(s) from the list and click "Install".
  4. The plugin(s) will be installed and ready to use.

Offline Installation

To install Plugins offline you need:

  1. Using any computer with an Internet connection:
    • By going to the page User Profile - SMath make sure that you are using the account specified in the electronic license.
    • Go to the page: SMath Studio Plugins.
    • Download the Plugin(s) you are interested in ZIP format.
    • Please note that there is no need to unzip the downloaded ZIP files.
  2. On a computer where SMath Studio is installed without an Internet connection:
    • Transfer the downloaded files to your computer.
    • Using drag&drop, move the Plugin(s) one by one to the main program window.
    • Plugin(s) will be installed.

Plugins Development

For third-party developers, we provide the opportunity to create new Plugins according to customer requirements. As an example you can use Plugins that have source codes available.

Creating Custom Plugin

To work with the custom plugin code on Windows please follow the following steps:

  1. Install the current current version of SMath Studio.
  2. Install the current current version of Visual Studio Community.
  3. Create a Class Library (.Net Framework) project by specifying .Net Framework 2.0 in the Framework field in the project creation dialogue.
  4. Implement one or more SMath Studio interfaces inherited from IPlugin:
    • IPluginLowLevelEvaluationFast - interception of operators and functions.
    • IPluginMathNumericEvaluation - interception of numerical computing.
    • IPluginCustomRegion - interception of a sheet item type creation.
    • IPluginRegionDrawing - interception of a formula element in a mathematical formula drawing.
    • IPluginSaveFileTypes - interception of calculation saving to the file.
    • IPluginOpenFileTypes - interception of calculation file opening.
    • IPluginDataInputOutput - customizing format for setting initial data and calculation results for automation and integration with other applications.
    • IPluginMenuExtender - extension of the program's main menu.