LibreOffice Module sw (master) 1
|
#include <sal/types.h>
#include <rtl/ustring.hxx>
#include "SwGetPoolIdFromName.hxx"
#include "swdllapi.h"
#include <unordered_map>
#include <vector>
Go to the source code of this file.
Classes | |
class | SwStyleNameMapper |
Typedefs | |
typedef std::unordered_map< OUString, sal_uInt16 > | NameToIdHash |
This class holds all data about the names of styles used in the user interface (UI names...these are localised into different languages). More... | |
typedef std::unordered_map<OUString, sal_uInt16> NameToIdHash |
This class holds all data about the names of styles used in the user interface (UI names...these are localised into different languages).
These UI names are loaded from the resource files on demand.
It also holds all information about the 'Programmatic' names of styles which remain static (and are hardcoded in the corresponding cxx file) for all languages.
This class also provides static functions which can be used for the following conversions:
The relationship of these tables to the style families is as follows:
Therefore, when there is a danger of a nameclash, the boolean bDisambiguate must be set to true in the SwStyleNameMapper call (it defaults to false). This will cause the following to happen:
If the UI style name either equals a programmatic name or already ends with " (user)", then it must append " (user)" to the end.
When a programmatic name is being converted to a UI name, if it ends in " (user)", we simply remove it.
Definition at line 74 of file SwStyleNameMapper.hxx.