LibreOffice Module shell (master) 1
|
#include <algorithm>
#include <fileextensions.hxx>
#include <rtl/character.hxx>
#include <sal/macros.h>
Go to the source code of this file.
Functions | |
Filepath_t | get_file_name_extension (const Filepath_t &file_name) |
Return the extension of a file name without the '. More... | |
File_Type_t | get_file_type (const Filepath_t &file_name) |
Return the type of a file. More... | |
Variables | |
const std::wstring | WRITER_FILE_EXTENSIONS = L"sxwstwsxgodtottodm" |
const std::wstring | CALC_FILE_EXTENSIONS = L"sxcstcodsots" |
const std::wstring | DRAW_FILE_EXTENSIONS = L"sxdstdodgotg" |
const std::wstring | IMPRESS_FILE_EXTENSIONS = L"sxistiodpotp" |
const std::wstring | MATH_FILE_EXTENSIONS = L"sxmodf" |
const std::wstring | WEB_FILE_EXTENSIONS = L"oth" |
const std::wstring | DATABASE_FILE_EXTENSIONS = L"odb" |
const FileExtensionEntry | OOFileExtensionTable [] |
const size_t | OOFileExtensionTableSize = SAL_N_ELEMENTS(OOFileExtensionTable) |
Filepath_t get_file_name_extension | ( | const Filepath_t & | file_name | ) |
Return the extension of a file name without the '.
'
Definition at line 66 of file fileextensions.cxx.
References idx.
Referenced by get_file_type(), and CInfoTip::GetInfoTip().
File_Type_t get_file_type | ( | const Filepath_t & | file_name | ) |
Return the type of a file.
Definition at line 80 of file fileextensions.cxx.
References CALC, CALC_FILE_EXTENSIONS, DATABASE, DATABASE_FILE_EXTENSIONS, DRAW, DRAW_FILE_EXTENSIONS, get_file_name_extension(), IMPRESS, IMPRESS_FILE_EXTENSIONS, MATH, MATH_FILE_EXTENSIONS, UNKNOWN, WEB, WEB_FILE_EXTENSIONS, WRITER, and WRITER_FILE_EXTENSIONS.
const std::wstring CALC_FILE_EXTENSIONS = L"sxcstcodsots" |
Definition at line 27 of file fileextensions.cxx.
Referenced by get_file_type().
const std::wstring DATABASE_FILE_EXTENSIONS = L"odb" |
Definition at line 32 of file fileextensions.cxx.
Referenced by get_file_type().
const std::wstring DRAW_FILE_EXTENSIONS = L"sxdstdodgotg" |
Definition at line 28 of file fileextensions.cxx.
Referenced by get_file_type().
const std::wstring IMPRESS_FILE_EXTENSIONS = L"sxistiodpotp" |
Definition at line 29 of file fileextensions.cxx.
Referenced by get_file_type().
const std::wstring MATH_FILE_EXTENSIONS = L"sxmodf" |
Definition at line 30 of file fileextensions.cxx.
Referenced by get_file_type().
const FileExtensionEntry OOFileExtensionTable[] |
Definition at line 34 of file fileextensions.cxx.
const size_t OOFileExtensionTableSize = SAL_N_ELEMENTS(OOFileExtensionTable) |
Definition at line 60 of file fileextensions.cxx.
const std::wstring WEB_FILE_EXTENSIONS = L"oth" |
Definition at line 31 of file fileextensions.cxx.
Referenced by get_file_type().
const std::wstring WRITER_FILE_EXTENSIONS = L"sxwstwsxgodtottodm" |
Definition at line 26 of file fileextensions.cxx.
Referenced by get_file_type().