blob: 15cb5a051c1f2becfd0d6e36caed7d4eb044f5c2 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
*
*/
#ifndef __GETSCILABPREFERENCES_H__
#define __GETSCILABPREFERENCES_H__
#include "dynlib_preferences_scilab.h"
typedef struct
{
const char * heapSize;
const char * adaptToDisplay;
const char * columnsToDisplay;
const char * linesToDisplay;
const char * historySaveAfter;
const char * historyFile;
const char * historyLines;
const char * historyEnable;
const char * ieee;
const char * format;
const char * formatWidth;
const char * language;
const char * startup_dir_use;
const char * startup_dir_default;
const char * startup_dir_previous;
} ScilabPreferences;
#define HEAPSIZE_XPATH (const xmlChar*)"//general/body/java-heap-memory/@heap-size"
#define ADAPTTODISPLAY_XPATH (const xmlChar*)"//console/body/display/@adapt-to-display"
#define COLUMNSTODISPLAY_XPATH (const xmlChar*)"//console/body/display/@columns-to-display"
#define LINESTODISPLAY_XPATH (const xmlChar*)"//console/body/display/@lines-to-display"
#define HISTORYSAVEAFTER_XPATH (const xmlChar*)"//command-history/body/history-save/@after"
#define HISTORYFILE_XPATH (const xmlChar*)"//command-history/body/history-settings/@history-file"
#define HISTORYLINES_XPATH (const xmlChar*)"//command-history/body/history-settings/@history-lines"
#define HISTORYENABLE_XPATH (const xmlChar*)"//command-history/body/history-settings/@enable"
#define IEEE_XPATH (const xmlChar*)"//general/body/environment/@fpe"
#define FORMAT_XPATH (const xmlChar*)"//general/body/environment/@printing-format"
#define FORMATWIDTH_XPATH (const xmlChar*)"//general/body/environment/@width"
#define LANGUAGE_XPATH (const xmlChar*)"//general/body/languages/@lang"
#define STARTUP_DIR_USE_XPATH (const xmlChar*)"//general/body/startup/@use"
#define STARTUP_DIR_DEFAULT_XPATH (const xmlChar*)"//general/body/startup/@default"
#define STARTUP_DIR_PREVIOUS_XPATH (const xmlChar*)"//general/body/startup/@previous"
PREFERENCES_SCILAB_IMPEXP const ScilabPreferences * getScilabPreferences(void);
PREFERENCES_SCILAB_IMPEXP void reloadScilabPreferences(void);
PREFERENCES_SCILAB_IMPEXP void clearScilabPreferences(void);
PREFERENCES_SCILAB_IMPEXP char * getPrefAttributeValue(const char * xpath, const char * attribute);
PREFERENCES_SCILAB_IMPEXP char ** getPrefAttributesValues(const char * xpath, const char ** attributes, const unsigned int attrLen);
PREFERENCES_SCILAB_IMPEXP void setAttributesValues(const char * xpath, const char ** attributes, const unsigned int kvLen);
PREFERENCES_SCILAB_IMPEXP void setPrefAttributesValues(const char * xpath, const char ** kv, const unsigned int kvLen);
#endif // __GETSCILABPREFERENCES_H__
|