summaryrefslogtreecommitdiff
path: root/unotools/source/config/fontcfg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/fontcfg.cxx')
-rw-r--r--unotools/source/config/fontcfg.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index bd7f7e21330b..1da36a7e978c 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -448,12 +448,16 @@ static const char* const aImplKillTrailingWithExceptionsList[] =
nullptr
};
+namespace {
+
struct ImplFontAttrWeightSearchData
{
const char* mpStr;
FontWeight const meWeight;
};
+}
+
static ImplFontAttrWeightSearchData const aImplWeightAttrSearchList[] =
{
// the attribute names are ordered by "first match wins"
@@ -474,12 +478,16 @@ static ImplFontAttrWeightSearchData const aImplWeightAttrSearchList[] =
{ nullptr, WEIGHT_DONTKNOW },
};
+namespace {
+
struct ImplFontAttrWidthSearchData
{
const char* mpStr;
FontWidth const meWidth;
};
+}
+
static ImplFontAttrWidthSearchData const aImplWidthAttrSearchList[] =
{
{ "narrow", WIDTH_CONDENSED },
@@ -495,12 +503,16 @@ static ImplFontAttrWidthSearchData const aImplWidthAttrSearchList[] =
{ nullptr, WIDTH_DONTKNOW },
};
+namespace {
+
struct ImplFontAttrTypeSearchData
{
const char* mpStr;
ImplFontAttrs const mnType;
};
+}
+
static ImplFontAttrTypeSearchData const aImplTypeAttrSearchList[] =
{
{ "monotype", ImplFontAttrs::None },
@@ -734,12 +746,16 @@ void FontSubstConfiguration::getMapName( const OUString& rOrgName, OUString& rSh
}
}
+namespace {
+
struct StrictStringSort
{
bool operator()( const FontNameAttr& rLeft, const FontNameAttr& rRight )
{ return rLeft.Name.compareTo( rRight.Name ) < 0; }
};
+}
+
// The entries in this table must match the bits in the ImplFontAttrs enum.
static const char* const pAttribNames[] =
@@ -778,12 +794,16 @@ static const char* const pAttribNames[] =
"other"
};
+namespace {
+
struct enum_convert
{
const char* pName;
int const nEnum;
};
+}
+
static const enum_convert pWeightNames[] =
{
{ "normal", WEIGHT_NORMAL },