summaryrefslogtreecommitdiffstats
path: root/src/extension/api.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/extension/api.cpp
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/extension/api.cpp')
-rw-r--r--src/extension/api.cpp92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/extension/api.cpp b/src/extension/api.cpp
new file mode 100644
index 000000000..d88541f3f
--- /dev/null
+++ b/src/extension/api.cpp
@@ -0,0 +1,92 @@
+namespace Inkscape {
+namespace Extension {
+namespace API {
+
+doc file_open (gchar * uri, Inkscape::Extension::Input * ext) { }
+bool file_save (SPDocument * doc, gchar * uri, Inkscape::Extension::Output * ext) { }
+bool print_doc (SPDOcument * doc) { }
+
+array getElements(string element_name) { }
+string getElementName() { }
+string getElementByID(string id) { }
+string getElementID() { }
+hash getAttributes() { }
+string getAttribute(string attribute) { }
+bool SetAttribute(string name, string value) { }
+bool SetAttributes(hash) { }
+bool hasChildren() { }
+array getChildren() { }
+obj getFirstChild() { }
+obj getLastChild() { }
+array getSiblings() { }
+obj getNextSibling() { }
+obj getPrevSibling() { }
+int getChildIndex() { }
+obj getChildAtIndex(int index) { }
+obj getParent() { }
+array getParents() { }
+bool isAncestor(obj) { }
+bool isDescendant(obj) { }
+cdata getCDATA() { }
+
+/** looks up the numerical ID of the given verb name. (E.g., it could
+ pull it out of the SPVerbActionDef props[] static object) */
+int verb_find(string verb_name) { }
+
+/** retrieves the Action object for the verb in the given view */
+action verb_get_action(int verb, int view) { }
+
+/** retrieves the view, given the action object */
+view action_get_view(int action) { }
+
+/** invokes the Action for the verb. It validates the parameters and
+ calls the appropriate listener that will handle the action. */
+void action_perform(int action, int data, int pdata) { }
+
+void action_set_active(int action, int state, int data) { }
+
+void action_set_sensitive(int action, int state, int data) { }
+
+void prefs_set_int_attribute(string path, string attr, int value) { }
+
+int prefs_get_int_attribute(string path, string attr, gint def) { }
+
+int prefs_get_int_attribute_limited(string path, string attr, int def, int min, int max) { }
+
+void prefs_set_double_attribute(string path, string attr, double value) { }
+
+double prefs_get_double_attribute(string path, string attr, double def) { }
+
+double prefs_get_double_attribute_limited(string path, string attr, double def, double min, double max) { }
+
+string prefs_get_string_attribute(string path, string attr) { }
+
+void prefs_set_string_attribute(string path, string attr, string value) { }
+
+void prefs_set_recent_file(string uri, string name) { }
+
+string[] prefs_get_recent_files() { }
+
+/** returns a pointer to an instance of the desired stock object in
+ the current doc, importing the object if necessary. */
+obj get_stock_item(string urn) { }
+
+/** adds a new stock SVG def to the Inkscape Application. All
+ currently loaded and new documents will have access to the item. */
+void set_stock_item_from_svg(void) { }
+
+/** This function gets the variable by the name 'name' with the data
+ in 'data'. It can be a boolean, integer or a string. */
+get_param (gchar * name, bool data) { }
+get_param (gchar * name, int data) { }
+get_param (gchar * name, gchar * data) { }
+
+/** This function sets the variable by the name 'name' with the data
+ in 'data'. It can be a boolean, integer or a string. In the
+ case of the string it is copied. */
+set_param (gchar * name, bool data) { }
+set_param (gchar * name, int data) { }
+set_param (gchar * name, gchar * data) { }
+
+
+} } } /* namespaces Inkscape::Extension::API */