35 if (
Manager::Get()->GetScriptingManager()->IsCurrentlyRunningScriptTrusted())
38 if (
Manager::Get()->GetConfigManager(
_T(
"security"))->ReadBool(operation,
false))
156 Manager::Get()->GetMacrosManager()->ReplaceMacros(defaultFile),
158 wxFD_OPEN | compatibility::wxHideReadonly);
213 if ( prepend_error && !error.
IsEmpty())
219 if (!prepend_error && !error.
IsEmpty())
235 SqPlus::SQClassDef<IONamespace>(
"IO").
237 #ifndef NO_INSECURE_SCRIPTS
258 #ifndef NO_INSECURE_SCRIPTS 259 SqPlus::BindConstant(
true,
"allowInsecureScripts");
261 SqPlus::BindConstant(
false,
"allowInsecureScripts");
262 #endif // NO_INSECURE_SCRIPTS
bool wxRmdir(const wxString &dir, int flags=0)
int Execute(const wxString &command)
bool wxRenameFile(const wxString &file1, const wxString &file2, bool overwrite=true)
bool wxRemoveFile(const wxString &file)
ConfigManager * GetConfigManager(const wxString &name_space) const
bool WriteFileContents(const wxString &filename, const wxString &contents)
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
wxString ExecuteAndGetOutput(const wxString &command)
bool wxFileExists(const wxString &filename)
bool DirectoryExists(const wxString &dir)
DLLIMPORT wxString ChooseDirectory(wxWindow *parent, const wxString &message=_("Select directory"), const wxString &initialPath=_T(""), const wxString &basePath=_T(""), bool askToMakeRelative=false, bool showCreateDirButton=false)
DLLIMPORT bool NormalizePath(wxFileName &f, const wxString &base)
bool wxDirExists(const wxString &dirname)
DLLIMPORT wxString GetStringFromArray(const wxArrayString &array, const wxString &separator=DEFAULT_ARRAY_SEP, bool SeparatorAtEnd=true)
void TrustCurrentlyRunningScript(bool permanently)
Security function to trust a script.
DLLIMPORT wxString cbReadFileContents(wxFile &file, wxFontEncoding encoding=wxFONTENCODING_SYSTEM)
Reads a wxString from a non-unicode file. File must be open. File is closed automatically.
void Write(const wxString &name, const wxString &value, bool ignoreEmpty=false)
wxString ReadFileContents(const wxString &filename)
wxString ChooseFile(const wxString &title, const wxString &defaultFile, const wxString &filter)
bool wxSetWorkingDirectory(const wxString &dir)
bool wxCopyFile(const wxString &file1, const wxString &file2, bool overwrite=true)
void SetCwd(const wxString &dir)
DLLIMPORT bool cbWrite(wxFile &file, const wxString &buff, wxFontEncoding encoding=wxFONTENCODING_SYSTEM)
Writes a wxString to a non-unicode file. File must be open. File is closed automatically.
bool RemoveDir(const wxString &src)
virtual wxString GetPath() const
bool SecurityAllows(const wxString &operation, const wxString &descr)
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
bool RemoveFile(const wxString &src)
bool CreateDirRecursively(const wxString &full_path, int perms)
ScriptingManager * GetScriptingManager() const
wxString ExecuteAndGetOutputAndError(const wxString &command, bool prepend_error=true)
wxString GetFullPath(wxPathFormat format=wxPATH_NATIVE) const
ScriptSecurityResponse GetResponse()
wxString ChooseDir(const wxString &message, const wxString &initialPath, bool showCreateDirButton)
bool RenameFile(const wxString &src, const wxString &dst)
static wxString Format(const wxString &format,...)
bool FileExists(const wxString &file)
bool CopyFile(const wxString &src, const wxString &dst, bool overwrite)
long wxExecute(const wxString &command, int flags=wxEXEC_ASYNC, wxProcess *callback=NULL, const wxExecuteEnv *env=NULL)