#include "ut_types.h"
#include "ut_compiler.h"
#include <glib.h>
#include <gsf/gsf.h>
#include <time.h>
Go to the source code of this file.
Classes | |
struct | _UT_GOFilePermissions |
Typedefs | |
typedef typedefABI_W_NO_CONST_QUAL ABI_W_POP G_BEGIN_DECLS struct _UT_GOFilePermissions | UT_GOFilePermissions |
Enumerations | |
enum | UT_GODotDot { UT_GO_DOTDOT_SYNTACTIC, UT_GO_DOTDOT_TEST, UT_GO_DOTDOT_LEAVE } |
Functions | |
ABI_EXPORT gboolean | UT_go_path_is_uri (const char *path) |
ABI_EXPORT gboolean | UT_go_path_is_path (const char *path) |
ABI_EXPORT char * | UT_go_filename_simplify (const char *filename, UT_GODotDot dotdot, gboolean make_absolute) |
ABI_EXPORT char * | UT_go_url_simplify (const char *uri) |
ABI_EXPORT char * | UT_go_filename_from_uri (const char *uri) |
ABI_EXPORT char * | UT_go_filename_to_uri (const char *filename) |
ABI_EXPORT char * | UT_go_url_resolve_relative (const char *ref_uri, const char *rel_uri) |
ABI_EXPORT char * | UT_go_url_make_relative (const char *uri, const char *ref_uri) |
ABI_EXPORT char * | UT_go_shell_arg_to_uri (const char *arg) |
ABI_EXPORT char * | UT_go_basename_from_uri (const char *uri) |
UT_go_basename_from_uri: : | |
ABI_EXPORT char * | UT_go_dirname_from_uri (const char *uri, gboolean brief) |
UT_go_dirname_from_uri: : | |
ABI_EXPORT gboolean | UT_go_directory_create (char const *uri, GError **err) |
ABI_EXPORT GsfInput * | UT_go_file_open (char const *uri, GError **err) |
UT_go_file_open : : : GError. | |
ABI_EXPORT GsfOutput * | UT_go_file_create (char const *uri, GError **err) |
ABI_EXPORT gboolean | UT_go_file_remove (char const *uri, GError **err) |
ABI_EXPORT gboolean | UT_go_file_exists (char const *uri) |
ABI_EXPORT UT_GOFilePermissions * | UT_go_get_file_permissions (char const *uri) |
ABI_EXPORT void | UT_go_set_file_permissions (char const *uri, UT_GOFilePermissions *file_permissions) |
ABI_EXPORT time_t | UT_go_file_get_date_accessed (char const *uri) |
ABI_EXPORT time_t | UT_go_file_get_date_modified (char const *uri) |
ABI_EXPORT time_t | UT_go_file_get_date_changed (char const *uri) |
ABI_EXPORT GError * | UT_go_url_show (gchar const *url) |
ABI_EXPORT gchar * | UT_go_get_mime_type (gchar const *uri) |
ABI_EXPORT gint | UT_go_utf8_collate_casefold (const char *a, const char *b) |
typedef typedefABI_W_NO_CONST_QUAL ABI_W_POP G_BEGIN_DECLS struct _UT_GOFilePermissions UT_GOFilePermissions |
enum UT_GODotDot |
ABI_EXPORT char* UT_go_basename_from_uri | ( | const char * | uri | ) |
UT_go_basename_from_uri: :
Decode the final path component. Returns as UTF-8 encoded suitable for display.
Referenced by IE_Exp_HTML::_createChapter(), AccountHandler::_handlePacket(), XAP_FrameImpl::_updateTitle(), fp_FieldShortFileNameRun::calculateValue(), IE_Exp_HTML_NavigationHelper::getFilenameByPosition(), IE_Exp_HTML_DataExporter::IE_Exp_HTML_DataExporter(), AbiCollab::startRecording(), ServiceAccountHandler::startSession(), and UT_go_basename().
ABI_EXPORT gboolean UT_go_directory_create | ( | char const * | uri, | |
GError ** | err | |||
) |
Referenced by s_XSL_FO_Listener::_handleDataItems(), s_WML_Listener::_handleDataItems(), s_DocBook_Listener::_handleDataItems(), IE_Exp_HTML_FileExporter::_init(), IE_Exp_EPUB::_writeDocument(), IE_Imp_EPUB::createFileByPath(), IE_Exp_EPUB::EPUB2_writeStructure(), IE_Exp_EPUB::EPUB3_writeStructure(), IE_Imp_EPUB::uncompress(), and IE_Exp::writeBufferToFile().
ABI_EXPORT char* UT_go_dirname_from_uri | ( | const char * | uri, | |
gboolean | brief | |||
) |
UT_go_dirname_from_uri: :
: if TRUE, hide "file://" if present.
Decode the all but the final path component. Returns as UTF-8 encoded suitable for display.
References UT_go_filename_from_uri().
Referenced by s_LaTeX_Listener::_handleImage(), and XAP_UnixDialog_FileOpenSaveAs::runModal().
ABI_EXPORT GsfOutput* UT_go_file_create | ( | char const * | uri, | |
GError ** | err | |||
) |
References UT_go_file_create_impl().
Referenced by IE_Exp_HTML::_createChapter(), s_XSL_FO_Listener::_handleDataItems(), s_WML_Listener::_handleDataItems(), s_KWord_1_Listener::_handleDataItems(), s_DocBook_Listener::_handleDataItems(), IE_Exp::_openFile(), IE_Imp_EPUB::createFileByPath(), AP_CocoaPlugin_FramelessDocument::exportDocumentToFile:exportOptions:, AP_UnixDialog_RDFEditor::onExportRDFXML(), FakeAccountHandler::process(), abiword_document::save(), SaveBindings_invoke(), IE_Exp_HTML_FileExporter::saveData(), AbiCollabSessionManager::storeProfile(), IE_Exp::writeBufferToFile(), and UT_ByteBuf::writeToURI().
ABI_EXPORT gboolean UT_go_file_exists | ( | char const * | uri | ) |
Referenced by XAP_UnixDialog_FileOpenSaveAs::_run_gtk_main(), and IE_Imp_EPUB::createFileByPath().
ABI_EXPORT time_t UT_go_file_get_date_accessed | ( | char const * | uri | ) |
References UT_GO_FILE_DATE_TYPE_ACCESSED, and UT_go_file_get_date().
ABI_EXPORT time_t UT_go_file_get_date_changed | ( | char const * | uri | ) |
References UT_GO_FILE_DATE_TYPE_CHANGED, and UT_go_file_get_date().
ABI_EXPORT time_t UT_go_file_get_date_modified | ( | char const * | uri | ) |
References UT_GO_FILE_DATE_TYPE_MODIFIED, and UT_go_file_get_date().
ABI_EXPORT GsfInput* UT_go_file_open | ( | char const * | uri, | |
GError ** | err | |||
) |
UT_go_file_open : : : GError.
Try all available methods to open a file or return an error
References UT_go_file_open_impl().
Referenced by PD_Document::_importFile(), abiword_document::abiword_document(), IE_Exp_EPUB::compress(), IE_ImpGraphic::constructImporter(), IE_Imp::constructImporter(), IE_MailMerge::constructMerger(), DiskSessionRecorder::getPackets(), IE_Imp::importFile(), IE_ImpGraphic::importGraphic(), UT_ByteBuf::insertFromURI(), LoadBindings::LoadBindings(), IE_Imp::loadFile(), IE_ImpGraphic::loadGraphic(), LoadKeybindings(), AbiCollabSessionManager::loadProfile(), IE_MailMerge_Delimiter_Listener::mergeFile(), AP_UnixDialog_RDFEditor::onImportRDFXML(), XAP_UnixDialog_FileOpenSaveAs::previewPicture(), and IE_Imp_EPUB::readStructure().
ABI_EXPORT gboolean UT_go_file_remove | ( | char const * | uri, | |
GError ** | err | |||
) |
References UT_go_filename_from_uri().
Referenced by IE_Exp::_abortFile(), IE_Exp::_closeFile(), IE_Exp_EPUB::_writeDocument(), IE_Exp_EPUB::compress(), and FakeAccountHandler::process().
ABI_EXPORT char* UT_go_filename_from_uri | ( | const char * | uri | ) |
Referenced by AP_Win32Dialog_New::_doChoose(), IE_Exp_OpenDocument::_openFile(), XAP_Frame::_removeAutoSaveFile(), XAP_Dialog_PluginManager::activatePlugin(), IE_Exp_EPUB::compress(), IE_MailMerge_XML_Listener::convertURI(), Defun(), Defun1(), s_AskRevertFile(), XAP_Dialog_Print::setDocumentPathname(), IE_Imp_EPUB::uncompress(), UT_go_dirname_from_uri(), UT_go_file_create_impl(), UT_go_file_get_date(), UT_go_file_open_impl(), UT_go_file_remove(), UT_go_get_file_permissions(), UT_go_set_file_permissions(), UT_go_shell_arg_to_uri(), and UT_go_url_simplify().
ABI_EXPORT char* UT_go_filename_simplify | ( | const char * | filename, | |
UT_GODotDot | dotdot, | |||
gboolean | make_absolute | |||
) |
References UT_GO_DOTDOT_SYNTACTIC, and UT_GO_DOTDOT_TEST.
Referenced by UT_go_filename_to_uri().
ABI_EXPORT char* UT_go_filename_to_uri | ( | const char * | filename | ) |
References UT_GO_DOTDOT_TEST, and UT_go_filename_simplify().
Referenced by AbiCollab_Command::_doCmdDebug(), AbiCollab_Command::_doCmdRegression(), XAP_Win32FrameImpl::_FrameWndProc(), XAP_Win32Dialog_FileOpenSaveAs::_previewPicture(), IE_Imp_PDF::_runConversion(), AP_Win32Dialog_New::_setFileName(), IE_Exp_EPUB::_writeDocument(), abi_plugin_register(), abiword_document::abiword_document(), IE_Imp_EPUB::createFileByPath(), Defun1(), DiskSessionRecorder::DiskSessionRecorder(), AP_UnixDialog_New::event_Ok(), AbiCollabSessionManager::loadProfile(), XAP_Frame::makeBackupName(), XAP_Win32Slurp::processCommand(), XAP_Win32Dialog_FileOpenSaveAs::runModal(), XAP_UnixDialog_FileOpenSaveAs::runModal(), abiword_document::save(), SaveBindings_invoke(), XAP_Prefs::startElement(), AbiCollabSessionManager::storeProfile(), IE_Imp_EPUB::uncompress(), UT_filenameToUri(), UT_go_shell_arg_to_uri(), and UT_go_url_simplify().
ABI_EXPORT UT_GOFilePermissions* UT_go_get_file_permissions | ( | char const * | uri | ) |
References UT_go_filename_from_uri().
Referenced by XAP_FrameImpl::_updateTitle().
ABI_EXPORT gchar* UT_go_get_mime_type | ( | gchar const * | uri | ) |
Referenced by IE_Exp_EPUB::getMimeType(), and s_mapMimeToUriType().
ABI_EXPORT gboolean UT_go_path_is_path | ( | const char * | path | ) |
Referenced by XAP_UnixDialog_FileOpenSaveAs::runModal().
ABI_EXPORT gboolean UT_go_path_is_uri | ( | const char * | path | ) |
Referenced by IE_Imp_RTF::_parseFldinstBlock(), XAP_Frame::_removeAutoSaveFile(), FV_View::cmdInsertHyperlink(), IE_MailMerge_XML_Listener::convertURI(), FV_View::gotoTarget(), XAP_Frame::makeBackupName(), XAP_UnixDialog_FileOpenSaveAs::runModal(), AP_Dialog_InsertHyperlink::setDoc(), XAP_Dialog_Print::setDocumentPathname(), XAP_Prefs::startElement(), UT_go_file_create_impl(), and UT_pathSuffix().
ABI_EXPORT void UT_go_set_file_permissions | ( | char const * | uri, | |
UT_GOFilePermissions * | file_permissions | |||
) |
References UT_go_filename_from_uri(), and UT_UNUSED.
ABI_EXPORT char* UT_go_shell_arg_to_uri | ( | const char * | arg | ) |
References gchar, is_fd_uri(), UT_go_filename_from_uri(), UT_go_filename_to_uri(), and UT_go_url_simplify().
Referenced by AP_Convert::convertTo(), AP_App::openCmdLineFiles(), and AP_Convert::print().
ABI_EXPORT char* UT_go_url_make_relative | ( | const char * | uri, | |
const char * | ref_uri | |||
) |
References make_rel().
ABI_EXPORT char* UT_go_url_resolve_relative | ( | const char * | ref_uri, | |
const char * | rel_uri | |||
) |
References is_uri_relative(), make_full_uri_from_relative(), and UT_go_url_simplify().
Referenced by IE_Imp_XSL_FO::createImage(), IE_Imp_WML::createImage(), IE_Imp_DocBook::createImage(), and IE_Imp_XHTML::importImage().
ABI_EXPORT GError* UT_go_url_show | ( | gchar const * | url | ) |
References UT_Win32LocaleString::c_str(), and UT_Win32LocaleString::fromUTF8().
Referenced by XAP_UnixAppImpl::openURL(), and XAP_QtAppImpl::openURL().
ABI_EXPORT char* UT_go_url_simplify | ( | const char * | uri | ) |
References simplify_host_path(), UT_go_filename_from_uri(), and UT_go_filename_to_uri().
Referenced by UT_go_shell_arg_to_uri(), and UT_go_url_resolve_relative().
ABI_EXPORT gint UT_go_utf8_collate_casefold | ( | const char * | a, | |
const char * | b | |||
) |