LibreOffice Module shell (master) 1
|
#include <sal/config.h>
#include <memory>
#include <config.hxx>
#include <global.hxx>
#include <utilities.hxx>
Go to the source code of this file.
Functions | |
static std::wstring | StringToWString (const std::string &String, int codepage) |
static std::string | WStringToString (const std::wstring &String, int codepage) |
std::wstring | StringToWString (const std::string &String) |
Convert a string to a wstring using CP_ACP. More... | |
std::string | WStringToString (const std::wstring &String) |
Convert a wstring to a string using CP_ACP. More... | |
std::wstring | UTF8ToWString (const std::string &String) |
Convert a string to a wstring using CP_UTF8. More... | |
std::wstring | GetResString (int ResId) |
Retrieve a string from the resources of this module. More... | |
bool | HasOnlySpaces (const std::wstring &String) |
helper function to judge if the string is only has spaces. More... | |
std::wstring | getShortPathName (const std::wstring &aLongName) |
helper function to convert windows paths to short form. More... | |
LCID | LocaleSetToLCID (const LocaleSet_t &Locale) |
convert LocaleSet pair into Microsoft List of Locale ID (LCID) according to ISO-639 and ISO-3166. More... | |
HMODULE | GetCurrentModuleHandle () |
Variables | |
const size_t | MAX_RES_STRING = 1024 |
const wchar_t | SPACE_CHAR = L' ' |
HMODULE GetCurrentModuleHandle | ( | ) |
Definition at line 549 of file utilities.cxx.
References GetCurrentModuleHandle(), h, and OutputDebugStringFormatW().
Referenced by CPropertySheet::AddPages(), DllRegisterServer(), GetCurrentModuleHandle(), GetResString(), and list_view_builder::setup_list_view().
std::wstring GetResString | ( | int | ResId | ) |
Retrieve a string from the resources of this module.
Definition at line 81 of file utilities.cxx.
References GetCurrentModuleHandle(), MAX_RES_STRING, and OutputDebugStringFormatW().
Referenced by CPropertySheet::AddPages(), writer_document_statistic_reader::fill_description_section(), calc_document_statistic_reader::fill_description_section(), draw_impress_math_document_statistic_reader::fill_description_section(), document_statistic_reader::fill_origin_section(), CInfoTip::GetInfoTip(), CPropertySheet::InitPropPageStatistics(), and list_view_builder::setup_list_view().
std::wstring getShortPathName | ( | const std::wstring & | aLongName | ) |
helper function to convert windows paths to short form.
convert LocaleSet pair into Windows LCID identifier.
Definition at line 122 of file utilities.cxx.
References length.
Referenced by CThumbviewer::Extract(), CColumnInfo::GetItemData(), CPropertySheet::Initialize(), CInfoTip::Load(), and COooFilter::Load().
bool HasOnlySpaces | ( | const std::wstring & | String | ) |
helper function to judge if the string is only has spaces.
Definition at line 100 of file utilities.cxx.
References p, SPACE_CHAR, and String.
Referenced by CContentReader::characters(), and CMetaInfoReader::characters().
LCID LocaleSetToLCID | ( | const LocaleSet_t & | Locale | ) |
convert LocaleSet pair into Microsoft List of Locale ID (LCID) according to ISO-639 and ISO-3166.
http://etext.lib.virginia.edu/tei/iso639.html http://nl.ijs.si/gnusl/cee/std/ISO_3166.html
Locale,LocaleSet |
Definition at line 154 of file utilities.cxx.
References EMPTY_LOCALE, LANG_SPANISH, and Locale.
Referenced by COooFilter::GetChunk().
std::wstring StringToWString | ( | const std::string & | String | ) |
Convert a string to a wstring using CP_ACP.
Definition at line 63 of file utilities.cxx.
References String, and StringToWString().
|
static |
Definition at line 34 of file utilities.cxx.
References String.
Referenced by formatSizeOfFile(), iso8601_date_to_local_date(), StringToWString(), and UTF8ToWString().
std::wstring UTF8ToWString | ( | const std::string & | String | ) |
Convert a string to a wstring using CP_UTF8.
Definition at line 75 of file utilities.cxx.
References String, and StringToWString().
std::string WStringToString | ( | const std::wstring & | String | ) |
Convert a wstring to a string using CP_ACP.
Definition at line 69 of file utilities.cxx.
References String, and WStringToString().
|
static |
Definition at line 48 of file utilities.cxx.
References String.
Referenced by iso8601_date_to_local_date(), and WStringToString().
const size_t MAX_RES_STRING = 1024 |
Definition at line 31 of file utilities.cxx.
Referenced by GetResString().
const wchar_t SPACE_CHAR = L' ' |
Definition at line 32 of file utilities.cxx.
Referenced by HasOnlySpaces().