summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-11 09:36:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-11 09:36:19 +0000
commitd63540aebd7654bf70d4a250406d983560fbb45a (patch)
tree1762021760878eb8d199edd133eb2cdf76755140 /cui
parent73b5d115766e59154d3e398be45f06c35e670635 (diff)
Describe fonts the same way as the default font dialogs on each platform do
i.e. Windows: Font, Style, Size http://msdn.microsoft.com/en-us/library/ms646958%28v=vs.85%29.aspx MacOsX: Family, Typeface, Size http://sketchup.google.com/crimages/layout-set-ShowFonts-mac-en.jpg GNOME: Family, Style, Size http://live.gnome.org/Design/GTKFontDialog/UsabilityEvaluations
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/chardlg.cxx24
-rw-r--r--cui/source/tabpages/chardlg.hrc4
-rw-r--r--cui/source/tabpages/chardlg.src24
3 files changed, 44 insertions, 8 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 2a1119288a20..9b7585eb2926 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -621,6 +621,30 @@ SvxCharNamePage::SvxCharNamePage( Window* pParent, const SfxItemSet& rInSet ) :
m_pColorLB = new ColorListBox( this, CUI_RES( LB_COLOR2 ) );
}
+ //In MacOSX the standard dialogs name font-name, font-style as
+ //Family, Typeface
+ //In GNOME the standard dialogs name font-name, font-style as
+ //Family, Style
+ //In Windows the standard dialogs name font-name, font-style as
+ //Font, Style
+#ifdef WNT
+ String sFontFamilyString(CUI_RES(STR_CHARNAME_FONT));
+#else
+ String sFontFamilyString(CUI_RES(STR_CHARNAME_FAMILY));
+#endif
+ m_pWestFontNameFT->SetText(sFontFamilyString);
+ m_pEastFontNameFT->SetText(sFontFamilyString);
+ m_pCTLFontNameFT->SetText(sFontFamilyString);
+
+#ifdef MACOSX
+ String sFontStyleString(CUI_RES(STR_CHARNAME_TYPEFACE));
+#else
+ String sFontStyleString(CUI_RES(STR_CHARNAME_STYLE));
+#endif
+ m_pWestFontStyleFT->SetText(sFontStyleString);
+ m_pEastFontStyleFT->SetText(sFontStyleString);
+ m_pCTLFontStyleFT->SetText(sFontStyleString);
+
m_pWestLine ->Show( bCJK );
m_pColorFL ->Show( bCJK );
diff --git a/cui/source/tabpages/chardlg.hrc b/cui/source/tabpages/chardlg.hrc
index 3d12b5f3bd0b..0d583b0431e8 100644
--- a/cui/source/tabpages/chardlg.hrc
+++ b/cui/source/tabpages/chardlg.hrc
@@ -70,6 +70,10 @@
#define STR_CHARNAME_NOSTYLE 150
#define STR_CHARNAME_TRANSPARENT 151
+#define STR_CHARNAME_FAMILY 152
+#define STR_CHARNAME_FONT 153
+#define STR_CHARNAME_STYLE 154
+#define STR_CHARNAME_TYPEFACE 155
// EffectsPage --------------------------------------------------------------
diff --git a/cui/source/tabpages/chardlg.src b/cui/source/tabpages/chardlg.src
index 9673fc950f3f..0d3960fd219c 100644
--- a/cui/source/tabpages/chardlg.src
+++ b/cui/source/tabpages/chardlg.src
@@ -48,13 +48,11 @@ TabPage RID_SVXPAGE_CHAR_NAME
{
Pos = MAP_APPFONT ( 12 , 14 );
Size = MAP_APPFONT ( 80 , 8 );
- Text [ en-US ] = "Font";
};
FixedText FT_WEST_NAME_NOCJK
{
Pos = MAP_APPFONT ( 12 , 6 );
Size = MAP_APPFONT ( 112 , 8 );
- Text [ en-US ] = "~Font";
};
ComboBox LB_WEST_NAME
{
@@ -76,13 +74,11 @@ TabPage RID_SVXPAGE_CHAR_NAME
{
Pos = MAP_APPFONT ( 96 , 14 );
Size = MAP_APPFONT ( 40 , 8 );
- Text [ en-US ] = "~Typeface";
};
FixedText FT_WEST_STYLE_NOCJK
{
Pos = MAP_APPFONT ( 130 , 6 );
Size = MAP_APPFONT ( 72 , 8 );
- Text [ en-US ] = "~Typeface";
};
ComboBox LB_WEST_STYLE
{
@@ -182,7 +178,6 @@ TabPage RID_SVXPAGE_CHAR_NAME
{
Pos = MAP_APPFONT ( 12 , 54 );
Size = MAP_APPFONT ( 80 , 8 );
- Text [ en-US ] = "Font";
};
ComboBox LB_EAST_NAME
{
@@ -196,7 +191,6 @@ TabPage RID_SVXPAGE_CHAR_NAME
{
Pos = MAP_APPFONT ( 96 , 54 );
Size = MAP_APPFONT ( 40 , 8 );
- Text [ en-US ] = "T~ypeface";
};
ComboBox LB_EAST_STYLE
{
@@ -252,7 +246,6 @@ TabPage RID_SVXPAGE_CHAR_NAME
{
Pos = MAP_APPFONT ( 12 , 94 );
Size = MAP_APPFONT ( 80 , 8 );
- Text [ en-US ] = "Font";
};
ComboBox LB_CTL_NAME
{
@@ -266,7 +259,6 @@ TabPage RID_SVXPAGE_CHAR_NAME
{
Pos = MAP_APPFONT ( 96 , 94 );
Size = MAP_APPFONT ( 40 , 8 );
- Text [ en-US ] = "Ty~peface";
};
ComboBox LB_CTL_STYLE
{
@@ -353,6 +345,22 @@ TabPage RID_SVXPAGE_CHAR_NAME
{
Text [ en-US ] = "Transparent";
};
+ String STR_CHARNAME_FAMILY
+ {
+ Text [ en-US ] = "Family";
+ };
+ String STR_CHARNAME_FONT
+ {
+ Text [ en-US ] = "Font";
+ };
+ String STR_CHARNAME_STYLE
+ {
+ Text [ en-US ] = "Style";
+ };
+ String STR_CHARNAME_TYPEFACE
+ {
+ Text [ en-US ] = "Typeface";
+ };
};
// RID_SVXPAGE_CHAR_EFFECTS ---------------------------------------------------