Removed list and numbering paragraph styles and related option page
This commit is contained in:
@@ -198,9 +198,6 @@ Resource RID_OFADLG_OPTIONS_TREE_PAGES
|
||||
< "View" ; RID_SW_TP_CONTENT_OPT ;> ;
|
||||
< "Formatting Aids" ; RID_SW_TP_OPTSHDWCRSR ; > ;
|
||||
< "Grid" ; RID_SVXPAGE_GRID ; > ;
|
||||
< "Basic Fonts (Western)" ;RID_SW_TP_STD_FONT ; > ;
|
||||
< "Basic Fonts (Asian)" ;RID_SW_TP_STD_FONT_CJK ; > ;
|
||||
< "Basic Fonts (CTL)" ; RID_SW_TP_STD_FONT_CTL ; > ;
|
||||
< "Print" ; RID_SW_TP_OPTPRINT_PAGE ; > ;
|
||||
< "Table" ; RID_SW_TP_OPTTABLE_PAGE ; > ;
|
||||
< "Changes" ; RID_SW_TP_REDLINE_OPT ; > ;
|
||||
|
@@ -130,12 +130,9 @@
|
||||
|
||||
// IDs of options pages of applications
|
||||
#define RID_SW_TP_MAILCONFIG (RID_OFA_START + 102)
|
||||
#define RID_SW_TP_STD_FONT_CJK (RID_OFA_START + 247)
|
||||
#define RID_SW_TP_STD_FONT_CTL (RID_OFA_START + 251)
|
||||
#define RID_SW_TP_OPTLOAD_PAGE (RID_OFA_START + 214)
|
||||
#define RID_SW_TP_CONTENT_OPT (RID_OFA_START + 206)
|
||||
#define RID_SW_TP_OPTSHDWCRSR (RID_OFA_START + 211)
|
||||
#define RID_SW_TP_STD_FONT (RID_OFA_START + 208)
|
||||
#define RID_SW_TP_OPTPRINT_PAGE (RID_OFA_START + 209)
|
||||
#define RID_SW_TP_OPTTABLE_PAGE (RID_OFA_START + 210)
|
||||
#define RID_SW_TP_REDLINE_OPT (RID_OFA_START + 212)
|
||||
|
@@ -148,7 +148,6 @@
|
||||
//die RID_??_TP_* stehen nochmal im offids.hrc
|
||||
#define RID_SW_TP_CONTENT_OPT (RID_OFA_START + 206)
|
||||
#define RID_SW_TP_LAYOUT_OPT (RID_OFA_START + 207)
|
||||
#define RID_SW_TP_STD_FONT (RID_OFA_START + 208)
|
||||
#define RID_SW_TP_OPTPRINT_PAGE (RID_OFA_START + 209)
|
||||
#define RID_SW_TP_OPTTABLE_PAGE (RID_OFA_START + 210)
|
||||
#define RID_SW_TP_OPTSHDWCRSR (RID_OFA_START + 211)
|
||||
@@ -187,11 +186,9 @@
|
||||
#define RID_SW_TP_HTML_OPTGRID_PAGE (RID_OFA_START + 244)
|
||||
#define OFA_TP_TABPROPERTIES_TEXT (RID_OFA_START + 245)
|
||||
#define RID_SW_TP_HTML_OPTSHDWCRSR (RID_OFA_START + 246)
|
||||
#define RID_SW_TP_STD_FONT_CJK (RID_OFA_START + 247)
|
||||
#define RID_SC_TP_PRINT (RID_OFA_START + 248)
|
||||
#define OFA_TP_HELPERPROG (RID_OFA_START + 249)
|
||||
#define OFA_TP_MEMORY (RID_OFA_START + 250)
|
||||
#define RID_SW_TP_STD_FONT_CTL (RID_OFA_START + 251)
|
||||
#define RID_OFA_TP_INTERNATIONAL (RID_OFA_START + 252) // 4 SC & ID 4 resource
|
||||
#define RID_OFA_TP_INTERNATIONAL_SD (RID_OFA_START + 253) // 4 SD
|
||||
#define RID_OFA_TP_INTERNATIONAL_IMPR (RID_OFA_START + 254) // 4 impress
|
||||
|
@@ -206,7 +206,6 @@
|
||||
#define TP_LAYOUT_OPT (RC_GLOBALS_BEGIN + 44)
|
||||
#define TP_CONTENT_OPT (RC_GLOBALS_BEGIN + 45)
|
||||
#define TP_HTML_OPT (RC_GLOBALS_BEGIN + 46)
|
||||
#define TP_STD_FONT (RC_GLOBALS_BEGIN + 47)
|
||||
#define TP_CONDCOLL (RC_GLOBALS_BEGIN + 48)
|
||||
|
||||
#define TP_FRM_WRAP (RC_GLOBALS_BEGIN + 49)
|
||||
|
@@ -248,7 +248,6 @@
|
||||
#define HID_CHAR_URL "SW_HID_CHAR_URL"
|
||||
#define HID_CONTENT_OPT "SW_HID_CONTENT_OPT"
|
||||
#define HID_LAYOUT_OPT "SW_HID_LAYOUT_OPT"
|
||||
#define HID_STD_FONT "SW_HID_STD_FONT"
|
||||
#define HID_COND_COLL "SW_HID_COND_COLL"
|
||||
#define HID_FRM_ADD "SW_HID_FRM_ADD"
|
||||
#define HID_TABLE_TEXTFLOW "SW_HID_TABLE_TEXTFLOW"
|
||||
|
@@ -100,49 +100,6 @@
|
||||
|
||||
// Gruppe Listen
|
||||
#define STR_POOLCOLL_NUMBUL_BASE (RC_POOLCOLL_LISTS_BEGIN+ 0)
|
||||
// Untergruppe Nummerierung
|
||||
#define STR_POOLCOLL_NUM_LEVEL1S (RC_POOLCOLL_LISTS_BEGIN+ 1)
|
||||
#define STR_POOLCOLL_NUM_LEVEL1 (RC_POOLCOLL_LISTS_BEGIN+ 2)
|
||||
#define STR_POOLCOLL_NUM_LEVEL1E (RC_POOLCOLL_LISTS_BEGIN+ 3)
|
||||
#define STR_POOLCOLL_NUM_NONUM1 (RC_POOLCOLL_LISTS_BEGIN+ 4)
|
||||
#define STR_POOLCOLL_NUM_LEVEL2S (RC_POOLCOLL_LISTS_BEGIN+ 5)
|
||||
#define STR_POOLCOLL_NUM_LEVEL2 (RC_POOLCOLL_LISTS_BEGIN+ 6)
|
||||
#define STR_POOLCOLL_NUM_LEVEL2E (RC_POOLCOLL_LISTS_BEGIN+ 7)
|
||||
#define STR_POOLCOLL_NUM_NONUM2 (RC_POOLCOLL_LISTS_BEGIN+ 8)
|
||||
#define STR_POOLCOLL_NUM_LEVEL3S (RC_POOLCOLL_LISTS_BEGIN+ 9)
|
||||
#define STR_POOLCOLL_NUM_LEVEL3 (RC_POOLCOLL_LISTS_BEGIN+ 10)
|
||||
#define STR_POOLCOLL_NUM_LEVEL3E (RC_POOLCOLL_LISTS_BEGIN+ 11)
|
||||
#define STR_POOLCOLL_NUM_NONUM3 (RC_POOLCOLL_LISTS_BEGIN+ 12)
|
||||
#define STR_POOLCOLL_NUM_LEVEL4S (RC_POOLCOLL_LISTS_BEGIN+ 13)
|
||||
#define STR_POOLCOLL_NUM_LEVEL4 (RC_POOLCOLL_LISTS_BEGIN+ 14)
|
||||
#define STR_POOLCOLL_NUM_LEVEL4E (RC_POOLCOLL_LISTS_BEGIN+ 15)
|
||||
#define STR_POOLCOLL_NUM_NONUM4 (RC_POOLCOLL_LISTS_BEGIN+ 16)
|
||||
#define STR_POOLCOLL_NUM_LEVEL5S (RC_POOLCOLL_LISTS_BEGIN+ 17)
|
||||
#define STR_POOLCOLL_NUM_LEVEL5 (RC_POOLCOLL_LISTS_BEGIN+ 18)
|
||||
#define STR_POOLCOLL_NUM_LEVEL5E (RC_POOLCOLL_LISTS_BEGIN+ 19)
|
||||
#define STR_POOLCOLL_NUM_NONUM5 (RC_POOLCOLL_LISTS_BEGIN+ 20)
|
||||
|
||||
// Untergruppe Aufzaehlung
|
||||
#define STR_POOLCOLL_BUL_LEVEL1S (RC_POOLCOLL_LISTS_BEGIN+ 21)
|
||||
#define STR_POOLCOLL_BUL_LEVEL1 (RC_POOLCOLL_LISTS_BEGIN+ 22)
|
||||
#define STR_POOLCOLL_BUL_LEVEL1E (RC_POOLCOLL_LISTS_BEGIN+ 23)
|
||||
#define STR_POOLCOLL_BUL_NONUM1 (RC_POOLCOLL_LISTS_BEGIN+ 24)
|
||||
#define STR_POOLCOLL_BUL_LEVEL2S (RC_POOLCOLL_LISTS_BEGIN+ 25)
|
||||
#define STR_POOLCOLL_BUL_LEVEL2 (RC_POOLCOLL_LISTS_BEGIN+ 26)
|
||||
#define STR_POOLCOLL_BUL_LEVEL2E (RC_POOLCOLL_LISTS_BEGIN+ 27)
|
||||
#define STR_POOLCOLL_BUL_NONUM2 (RC_POOLCOLL_LISTS_BEGIN+ 28)
|
||||
#define STR_POOLCOLL_BUL_LEVEL3S (RC_POOLCOLL_LISTS_BEGIN+ 29)
|
||||
#define STR_POOLCOLL_BUL_LEVEL3 (RC_POOLCOLL_LISTS_BEGIN+ 30)
|
||||
#define STR_POOLCOLL_BUL_LEVEL3E (RC_POOLCOLL_LISTS_BEGIN+ 31)
|
||||
#define STR_POOLCOLL_BUL_NONUM3 (RC_POOLCOLL_LISTS_BEGIN+ 32)
|
||||
#define STR_POOLCOLL_BUL_LEVEL4S (RC_POOLCOLL_LISTS_BEGIN+ 33)
|
||||
#define STR_POOLCOLL_BUL_LEVEL4 (RC_POOLCOLL_LISTS_BEGIN+ 34)
|
||||
#define STR_POOLCOLL_BUL_LEVEL4E (RC_POOLCOLL_LISTS_BEGIN+ 35)
|
||||
#define STR_POOLCOLL_BUL_NONUM4 (RC_POOLCOLL_LISTS_BEGIN+ 36)
|
||||
#define STR_POOLCOLL_BUL_LEVEL5S (RC_POOLCOLL_LISTS_BEGIN+ 37)
|
||||
#define STR_POOLCOLL_BUL_LEVEL5 (RC_POOLCOLL_LISTS_BEGIN+ 38)
|
||||
#define STR_POOLCOLL_BUL_LEVEL5E (RC_POOLCOLL_LISTS_BEGIN+ 39)
|
||||
#define STR_POOLCOLL_BUL_NONUM5 (RC_POOLCOLL_LISTS_BEGIN+ 40)
|
||||
|
||||
// Sonderbereiche
|
||||
// Untergruppe Header
|
||||
|
@@ -248,52 +248,6 @@ RES_POOLCOLL_TEXT_END,
|
||||
RES_POOLCOLL_LISTS_BEGIN = COLL_LISTS_BITS,
|
||||
|
||||
RES_POOLCOLL_NUMBUL_BASE = RES_POOLCOLL_LISTS_BEGIN, // Base list.
|
||||
|
||||
// Subgroup numberings.
|
||||
RES_POOLCOLL_NUM_LEVEL1S, // Start 1st level.
|
||||
RES_POOLCOLL_NUM_LEVEL1, // 1st level.
|
||||
RES_POOLCOLL_NUM_LEVEL1E, // End 1st level.
|
||||
RES_POOLCOLL_NUM_NONUM1, // No numbering.
|
||||
RES_POOLCOLL_NUM_LEVEL2S, // Start 2nd level.
|
||||
RES_POOLCOLL_NUM_LEVEL2, // 2nd level.
|
||||
RES_POOLCOLL_NUM_LEVEL2E, // End 2nd level.
|
||||
RES_POOLCOLL_NUM_NONUM2, // No numbering.
|
||||
RES_POOLCOLL_NUM_LEVEL3S, // Start 3rd level.
|
||||
RES_POOLCOLL_NUM_LEVEL3, // 3rd level.
|
||||
RES_POOLCOLL_NUM_LEVEL3E, // End 3rd level.
|
||||
RES_POOLCOLL_NUM_NONUM3, // No numbering.
|
||||
RES_POOLCOLL_NUM_LEVEL4S, // Start 4th level.
|
||||
RES_POOLCOLL_NUM_LEVEL4, // 4th level.
|
||||
RES_POOLCOLL_NUM_LEVEL4E, // End 4th level.
|
||||
RES_POOLCOLL_NUM_NONUM4, // No numbering.
|
||||
RES_POOLCOLL_NUM_LEVEL5S, // Start 5th level.
|
||||
RES_POOLCOLL_NUM_LEVEL5, // 5th level.
|
||||
RES_POOLCOLL_NUM_LEVEL5E, // End 5th level.
|
||||
RES_POOLCOLL_NUM_NONUM5, // No numbering.
|
||||
|
||||
|
||||
//Subgroup bullets.
|
||||
RES_POOLCOLL_BUL_LEVEL1S, // Start 1st level.
|
||||
RES_POOLCOLL_BUL_LEVEL1, // 1st level.
|
||||
RES_POOLCOLL_BUL_LEVEL1E, // End 1st level
|
||||
RES_POOLCOLL_BUL_NONUM1, // No numbering.
|
||||
RES_POOLCOLL_BUL_LEVEL2S, // Start 2nd level.
|
||||
RES_POOLCOLL_BUL_LEVEL2, // 2nd level.
|
||||
RES_POOLCOLL_BUL_LEVEL2E, // End 2nd level.
|
||||
RES_POOLCOLL_BUL_NONUM2, // No numbering.
|
||||
RES_POOLCOLL_BUL_LEVEL3S, // Start 3rd level.
|
||||
RES_POOLCOLL_BUL_LEVEL3, // 3rd Level.
|
||||
RES_POOLCOLL_BUL_LEVEL3E, // End 3rd level.
|
||||
RES_POOLCOLL_BUL_NONUM3, // No numbering.
|
||||
RES_POOLCOLL_BUL_LEVEL4S, // Start 4th level.
|
||||
RES_POOLCOLL_BUL_LEVEL4, // 4th level.
|
||||
RES_POOLCOLL_BUL_LEVEL4E, // End 4th level.
|
||||
RES_POOLCOLL_BUL_NONUM4, // No numbering.
|
||||
RES_POOLCOLL_BUL_LEVEL5S, // Start 5th level.
|
||||
RES_POOLCOLL_BUL_LEVEL5, // 5th level.
|
||||
RES_POOLCOLL_BUL_LEVEL5E, // End 5th Level.
|
||||
RES_POOLCOLL_BUL_NONUM5, // No numbering.
|
||||
|
||||
RES_POOLCOLL_LISTS_END,
|
||||
|
||||
|
||||
|
@@ -746,199 +746,6 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( sal_uInt16 nId, bool bRegardLanguage )
|
||||
break;
|
||||
|
||||
|
||||
|
||||
case RES_POOLCOLL_NUM_LEVEL1S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL1,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 0 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL1:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL1,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 0 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL1E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL1,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 0 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_NONUM1:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM1,
|
||||
0, SwNumRule::GetNumIndent( 0 ), 0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL2S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL2,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 1 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL2:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL2,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 1 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL2E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL2,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 1 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_NONUM2:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM2,
|
||||
0, SwNumRule::GetNumIndent( 1 ), 0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL3S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL3,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 2 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL3:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL3,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 2 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL3E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL3,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 2 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_NONUM3:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM3,
|
||||
0, SwNumRule::GetNumIndent( 2 ), 0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL4S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL4,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 3 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL4:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL4,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 3 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL4E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL4,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 3 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_NONUM4:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM4,
|
||||
0, SwNumRule::GetNumIndent( 3 ), 0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL5S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL5,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 4 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL5:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL5,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 4 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_LEVEL5E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_LEVEL5,
|
||||
lNumFirstLineOffset, SwNumRule::GetNumIndent( 4 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_NUM_NONUM5:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_NUM_NONUM5,
|
||||
0, SwNumRule::GetNumIndent( 4 ), 0, PT_6 );
|
||||
break;
|
||||
|
||||
case RES_POOLCOLL_BUL_LEVEL1S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL1,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 0 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL1:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL1,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 0 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL1E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL1,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 0 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_NONUM1:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_NONUM1,
|
||||
0, SwNumRule::GetBullIndent( 0 ), 0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL2S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL2,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 1 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL2:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL2,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 1 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL2E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL2,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 1 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_NONUM2:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_NONUM2,
|
||||
0, SwNumRule::GetBullIndent( 1 ), 0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL3S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL3,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 2 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL3:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL3,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 2 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL3E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL3,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 2 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_NONUM3:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_NONUM3,
|
||||
0, SwNumRule::GetBullIndent( 2 ), 0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL4S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL4,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 3 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL4:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL4,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 3 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL4E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL4,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 3 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_NONUM4:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_NONUM4,
|
||||
0, SwNumRule::GetBullIndent( 3 ), 0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL5S:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL5,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 4 ),
|
||||
PT_12, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL5:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL5,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 4 ),
|
||||
0, PT_6 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_LEVEL5E:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_LEVEL5,
|
||||
lBullFirstLineOffset, SwNumRule::GetBullIndent( 4 ),
|
||||
0, PT_12 );
|
||||
break;
|
||||
case RES_POOLCOLL_BUL_NONUM5:
|
||||
lcl_SetNumBul( this, pNewColl, aSet, RES_POOLCOLL_BUL_NONUM5,
|
||||
0, SwNumRule::GetBullIndent( 4 ), 0, PT_6 );
|
||||
break;
|
||||
|
||||
case RES_POOLCOLL_DOC_TITEL: // Doc. Titel
|
||||
{
|
||||
SetAllScriptItem( aSet, SvxWeightItem( WEIGHT_BOLD, RES_CHRATR_WEIGHT ) );
|
||||
|
@@ -1543,7 +1543,6 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
|
||||
else
|
||||
{
|
||||
bChgBullet = sal_True;
|
||||
SetColl( static_cast<sal_uInt16>(RES_POOLCOLL_BUL_LEVEL1 + ( Min( nLvl, cnNumBullColls ) * 4 )) );
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1639,8 +1638,6 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( !aFlags.bAFmtByInput )
|
||||
SetColl( static_cast<sal_uInt16>(RES_POOLCOLL_NUM_LEVEL1 + ( Min( nLvl, cnNumBullColls ) * 4 ) ));
|
||||
else
|
||||
bChgEnum = sal_False;
|
||||
}
|
||||
|
@@ -234,26 +234,10 @@ sal_uInt16 MSWordStyles::GetWWId( const SwFmt& rFmt ) const
|
||||
case RES_POOLCOLL_ENDNOTE: nRet = 43; break;
|
||||
case RES_POOLCOLL_TOX_AUTHORITIESH: nRet = 44; break;
|
||||
case RES_POOLCOLL_TOX_CNTNTH: nRet = 46; break;
|
||||
case RES_POOLCOLL_BUL_LEVEL1: nRet = 48; break;
|
||||
case RES_POOLCOLL_LISTS_BEGIN: nRet = 47; break;
|
||||
case RES_POOLCOLL_NUM_LEVEL1: nRet = 49; break;
|
||||
case RES_POOLCOLL_BUL_LEVEL2: nRet = 54; break;
|
||||
case RES_POOLCOLL_BUL_LEVEL3: nRet = 55; break;
|
||||
case RES_POOLCOLL_BUL_LEVEL4: nRet = 56; break;
|
||||
case RES_POOLCOLL_BUL_LEVEL5: nRet = 57; break;
|
||||
case RES_POOLCOLL_NUM_LEVEL2: nRet = 58; break;
|
||||
case RES_POOLCOLL_NUM_LEVEL3: nRet = 59; break;
|
||||
case RES_POOLCOLL_NUM_LEVEL4: nRet = 60; break;
|
||||
case RES_POOLCOLL_NUM_LEVEL5: nRet = 61; break;
|
||||
case RES_POOLCOLL_DOC_TITEL: nRet = 62; break;
|
||||
case RES_POOLCOLL_SIGNATURE: nRet = 64; break;
|
||||
case RES_POOLCOLL_TEXT: nRet = 66; break;
|
||||
case RES_POOLCOLL_TEXT_MOVE: nRet = 67; break;
|
||||
case RES_POOLCOLL_BUL_NONUM1: nRet = 68; break;
|
||||
case RES_POOLCOLL_BUL_NONUM2: nRet = 69; break;
|
||||
case RES_POOLCOLL_BUL_NONUM3: nRet = 70; break;
|
||||
case RES_POOLCOLL_BUL_NONUM4: nRet = 71; break;
|
||||
case RES_POOLCOLL_BUL_NONUM5: nRet = 72; break;
|
||||
case RES_POOLCOLL_DOC_SUBTITEL: nRet = 74; break;
|
||||
case RES_POOLCOLL_GREETING: nRet = 75; break;
|
||||
case RES_POOLCOLL_TEXT_IDENT: nRet = 77; break;
|
||||
|
@@ -124,32 +124,6 @@
|
||||
#define CB_HIDDEN_TEXT 93
|
||||
#define CB_TEXT_PLACEHOLDER 94
|
||||
|
||||
|
||||
// Tabpage Basic Fonts
|
||||
#define FT_STANDARD 90
|
||||
#define LB_STANDARD 91
|
||||
#define FT_TITLE 92
|
||||
#define LB_TITLE 93
|
||||
#define FT_LIST 94
|
||||
#define LB_LIST 95
|
||||
#define FT_LABEL 96
|
||||
#define LB_LABEL 97
|
||||
#define FT_IDX 98
|
||||
#define LB_IDX 99
|
||||
#define FL_STDCHR 100
|
||||
#define PB_STANDARD 101
|
||||
#define CB_DOCONLY 102
|
||||
#define ST_SCRIPT_WESTERN 103
|
||||
#define ST_SCRIPT_ASIAN 104
|
||||
#define ST_SCRIPT_CTL 105
|
||||
#define FT_TYPE 106
|
||||
#define FT_SIZE 107
|
||||
#define LB_STANDARD_SIZE 108
|
||||
#define LB_TITLE_SIZE 109
|
||||
#define LB_LIST_SIZE 110
|
||||
#define LB_LABEL_SIZE 111
|
||||
#define LB_INDEX_SIZE 112
|
||||
|
||||
//Tabpage Table
|
||||
#define CB_HEADER 101
|
||||
#define CB_REPEAT_HEADER 102
|
||||
|
@@ -451,181 +451,6 @@ TabPage TP_OPTPRINT_PAGE
|
||||
/* */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
TabPage TP_STD_FONT
|
||||
{
|
||||
HelpID = HID_STD_FONT ;
|
||||
Size = MAP_APPFONT ( 260 , 185 ) ;
|
||||
Hide = TRUE ;
|
||||
FixedLine FL_STDCHR
|
||||
{
|
||||
Pos = MAP_APPFONT ( 6 , 3 ) ;
|
||||
Size = MAP_APPFONT ( 248 , 8 ) ;
|
||||
Text [ en-US ] = "Basic fonts (%1)";
|
||||
};
|
||||
FixedText FT_TYPE
|
||||
{
|
||||
Pos = MAP_APPFONT ( 63 , 14 ) ;
|
||||
Size = MAP_APPFONT ( 100 , 8 ) ;
|
||||
Text [ en-US ] = "Font";
|
||||
};
|
||||
FixedText FT_SIZE
|
||||
{
|
||||
Pos = MAP_APPFONT ( 204 , 14 ) ;
|
||||
Size = MAP_APPFONT ( 40 , 8 ) ;
|
||||
Text [ en-US ] = "Size";
|
||||
};
|
||||
MetricBox LB_STANDARD_SIZE
|
||||
{
|
||||
HelpID = "sw:MetricBox:TP_STD_FONT:LB_STANDARD_SIZE";
|
||||
Pos = MAP_APPFONT ( 204 , 25 ) ;
|
||||
Size = MAP_APPFONT ( 30 , 60 ) ;
|
||||
Border = TRUE ;
|
||||
DropDown = TRUE;
|
||||
};
|
||||
MetricBox LB_TITLE_SIZE
|
||||
{
|
||||
HelpID = "sw:MetricBox:TP_STD_FONT:LB_TITLE_SIZE";
|
||||
Pos = MAP_APPFONT ( 204 , 42 ) ;
|
||||
Size = MAP_APPFONT ( 30 , 60 ) ;
|
||||
Border = TRUE ;
|
||||
DropDown = TRUE;
|
||||
};
|
||||
MetricBox LB_LIST_SIZE
|
||||
{
|
||||
HelpID = "sw:MetricBox:TP_STD_FONT:LB_LIST_SIZE";
|
||||
Pos = MAP_APPFONT ( 204 , 59 ) ;
|
||||
Size = MAP_APPFONT ( 30 , 60 ) ;
|
||||
Border = TRUE ;
|
||||
DropDown = TRUE;
|
||||
};
|
||||
MetricBox LB_LABEL_SIZE
|
||||
{
|
||||
HelpID = "sw:MetricBox:TP_STD_FONT:LB_LABEL_SIZE";
|
||||
Pos = MAP_APPFONT ( 204 , 76 ) ;
|
||||
Size = MAP_APPFONT ( 30 , 60 ) ;
|
||||
Border = TRUE ;
|
||||
DropDown = TRUE;
|
||||
};
|
||||
MetricBox LB_INDEX_SIZE
|
||||
{
|
||||
HelpID = "sw:MetricBox:TP_STD_FONT:LB_INDEX_SIZE";
|
||||
Pos = MAP_APPFONT ( 204 , 93 ) ;
|
||||
Size = MAP_APPFONT ( 30 , 60 ) ;
|
||||
Border = TRUE ;
|
||||
DropDown = TRUE;
|
||||
};
|
||||
FixedText FT_STANDARD
|
||||
{
|
||||
Pos = MAP_APPFONT ( 12 , 26 ) ;
|
||||
Size = MAP_APPFONT ( 48 , 10 ) ;
|
||||
Left = TRUE ;
|
||||
Text [ en-US ] = "De~fault" ;
|
||||
};
|
||||
FixedText FT_TITLE
|
||||
{
|
||||
Pos = MAP_APPFONT ( 12 , 43 ) ;
|
||||
Size = MAP_APPFONT ( 48 , 10 ) ;
|
||||
Text [ en-US ] = "Headin~g" ;
|
||||
Left = TRUE ;
|
||||
};
|
||||
FixedText FT_LIST
|
||||
{
|
||||
Pos = MAP_APPFONT ( 12 , 60 ) ;
|
||||
Size = MAP_APPFONT ( 48 , 10 ) ;
|
||||
Text [ en-US ] = "~List" ;
|
||||
Left = TRUE ;
|
||||
};
|
||||
FixedText FT_LABEL
|
||||
{
|
||||
Pos = MAP_APPFONT ( 12 , 77 ) ;
|
||||
Size = MAP_APPFONT ( 48 , 10 ) ;
|
||||
Text [ en-US ] = "C~aption" ;
|
||||
Left = TRUE ;
|
||||
};
|
||||
FixedText FT_IDX
|
||||
{
|
||||
Pos = MAP_APPFONT ( 12 , 94 ) ;
|
||||
Size = MAP_APPFONT ( 48 , 10 ) ;
|
||||
Text [ en-US ] = "~Index" ;
|
||||
Left = TRUE ;
|
||||
};
|
||||
ComboBox LB_STANDARD
|
||||
{
|
||||
HelpID = "sw:ComboBox:TP_STD_FONT:LB_STANDARD";
|
||||
Pos = MAP_APPFONT ( 63 , 25 ) ;
|
||||
Size = MAP_APPFONT ( 135 , 73 ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
Sort = TRUE ;
|
||||
};
|
||||
ComboBox LB_TITLE
|
||||
{
|
||||
HelpID = "sw:ComboBox:TP_STD_FONT:LB_TITLE";
|
||||
Pos = MAP_APPFONT ( 63 , 42 ) ;
|
||||
Size = MAP_APPFONT ( 135, 73 ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
Sort = TRUE ;
|
||||
};
|
||||
ComboBox LB_LIST
|
||||
{
|
||||
HelpID = "sw:ComboBox:TP_STD_FONT:LB_LIST";
|
||||
Pos = MAP_APPFONT ( 63 , 59 ) ;
|
||||
Size = MAP_APPFONT ( 135 , 73 ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
Sort = TRUE ;
|
||||
};
|
||||
ComboBox LB_LABEL
|
||||
{
|
||||
HelpID = "sw:ComboBox:TP_STD_FONT:LB_LABEL";
|
||||
Pos = MAP_APPFONT ( 63 , 76 ) ;
|
||||
Size = MAP_APPFONT ( 135 , 73 ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
Sort = TRUE ;
|
||||
};
|
||||
ComboBox LB_IDX
|
||||
{
|
||||
HelpID = "sw:ComboBox:TP_STD_FONT:LB_IDX";
|
||||
Pos = MAP_APPFONT ( 63 , 94 ) ;
|
||||
Size = MAP_APPFONT ( 135, 73 ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
Sort = TRUE ;
|
||||
};
|
||||
CheckBox CB_DOCONLY
|
||||
{
|
||||
HelpID = "sw:CheckBox:TP_STD_FONT:CB_DOCONLY";
|
||||
Pos = MAP_APPFONT ( 12 , 111 ) ;
|
||||
Size = MAP_APPFONT ( 147 , 10 ) ;
|
||||
Text [ en-US ] = "C~urrent document only" ;
|
||||
};
|
||||
PushButton PB_STANDARD
|
||||
{
|
||||
HelpID = "sw:PushButton:TP_STD_FONT:PB_STANDARD";
|
||||
Pos = MAP_APPFONT ( 204 , 165 ) ;
|
||||
Size = MAP_APPFONT ( 50 , 14 ) ;
|
||||
Text [ en-US ] = "~Default" ;
|
||||
};
|
||||
String ST_SCRIPT_ASIAN
|
||||
{
|
||||
Text [ en-US ] = "Asian";
|
||||
};
|
||||
String ST_SCRIPT_CTL
|
||||
{
|
||||
Text [ en-US ] = "CTL";
|
||||
};
|
||||
String ST_SCRIPT_WESTERN
|
||||
{
|
||||
Text [ en-US ] = "Western";
|
||||
};
|
||||
};
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
TabPage TP_OPTTABLE_PAGE
|
||||
{
|
||||
HelpID = HID_OPTTABLE_PAGE ;
|
||||
|
@@ -554,577 +554,6 @@ void SwAddPrinterTabPage::PageCreated (SfxAllItemSet aSet)
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------
|
||||
Tabpage Standardfonts
|
||||
--------------------------------------------------*/
|
||||
SwStdFontTabPage::SwStdFontTabPage( Window* pParent,
|
||||
const SfxItemSet& rSet ) :
|
||||
SfxTabPage( pParent, SW_RES( TP_STD_FONT ), rSet),
|
||||
aStdChrFL (this, SW_RES(FL_STDCHR )),
|
||||
aTypeFT( this, SW_RES( FT_TYPE )),
|
||||
|
||||
aStandardLbl(this, SW_RES(FT_STANDARD)),
|
||||
aStandardBox(this, SW_RES(LB_STANDARD)),
|
||||
|
||||
aHeightFT( this, SW_RES( FT_SIZE )),
|
||||
aStandardHeightLB(this, SW_RES( LB_STANDARD_SIZE )),
|
||||
|
||||
aTitleLbl (this, SW_RES(FT_TITLE )),
|
||||
aTitleBox (this, SW_RES(LB_TITLE )),
|
||||
aTitleHeightLB( this, SW_RES( LB_TITLE_SIZE )),
|
||||
|
||||
aListLbl (this, SW_RES(FT_LIST )),
|
||||
aListBox (this, SW_RES(LB_LIST )),
|
||||
aListHeightLB( this, SW_RES( LB_LIST_SIZE )),
|
||||
|
||||
aLabelLbl (this, SW_RES(FT_LABEL )),
|
||||
aLabelBox (this, SW_RES(LB_LABEL )),
|
||||
aLabelHeightLB( this, SW_RES( LB_LABEL_SIZE )),
|
||||
|
||||
aIdxLbl (this, SW_RES(FT_IDX )),
|
||||
aIdxBox (this, SW_RES(LB_IDX )),
|
||||
aIndexHeightLB( this, SW_RES( LB_INDEX_SIZE )),
|
||||
|
||||
aDocOnlyCB (this, SW_RES(CB_DOCONLY )),
|
||||
aStandardPB (this, SW_RES(PB_STANDARD)),
|
||||
pPrt(0),
|
||||
pFontList(0),
|
||||
pFontConfig(0),
|
||||
pWrtShell(0),
|
||||
eLanguage( GetAppLanguage() ),
|
||||
|
||||
bListDefault(sal_False),
|
||||
bSetListDefault(sal_True),
|
||||
bLabelDefault(sal_False),
|
||||
bSetLabelDefault(sal_True),
|
||||
bIdxDefault(sal_False),
|
||||
bSetIdxDefault(sal_True),
|
||||
bDeletePrinter(sal_False),
|
||||
|
||||
bListHeightDefault (sal_False),
|
||||
bSetListHeightDefault (sal_False),
|
||||
bLabelHeightDefault (sal_False),
|
||||
bSetLabelHeightDefault(sal_False),
|
||||
bIndexHeightDefault (sal_False),
|
||||
bSetIndexHeightDefault (sal_False),
|
||||
|
||||
nFontGroup(FONT_GROUP_DEFAULT),
|
||||
|
||||
sScriptWestern(SW_RES(ST_SCRIPT_WESTERN)),
|
||||
sScriptAsian(SW_RES(ST_SCRIPT_ASIAN)),
|
||||
sScriptComplex(SW_RES(ST_SCRIPT_CTL))
|
||||
{
|
||||
FreeResource();
|
||||
aStandardPB.SetClickHdl(LINK(this, SwStdFontTabPage, StandardHdl));
|
||||
aStandardBox.SetModifyHdl( LINK(this, SwStdFontTabPage, ModifyHdl));
|
||||
aListBox .SetModifyHdl( LINK(this, SwStdFontTabPage, ModifyHdl));
|
||||
aLabelBox .SetModifyHdl( LINK(this, SwStdFontTabPage, ModifyHdl));
|
||||
aIdxBox .SetModifyHdl( LINK(this, SwStdFontTabPage, ModifyHdl));
|
||||
Link aFocusLink = LINK( this, SwStdFontTabPage, LoseFocusHdl);
|
||||
aStandardBox.SetLoseFocusHdl( aFocusLink );
|
||||
aTitleBox .SetLoseFocusHdl( aFocusLink );
|
||||
aListBox .SetLoseFocusHdl( aFocusLink );
|
||||
aLabelBox .SetLoseFocusHdl( aFocusLink );
|
||||
aIdxBox .SetLoseFocusHdl( aFocusLink );
|
||||
|
||||
Link aModifyHeightLink( LINK( this, SwStdFontTabPage, ModifyHeightHdl));
|
||||
aStandardHeightLB.SetModifyHdl( aModifyHeightLink );
|
||||
aTitleHeightLB. SetModifyHdl( aModifyHeightLink );
|
||||
aListHeightLB. SetModifyHdl( aModifyHeightLink );
|
||||
aLabelHeightLB. SetModifyHdl( aModifyHeightLink );
|
||||
aIndexHeightLB. SetModifyHdl( aModifyHeightLink );
|
||||
|
||||
aDocOnlyCB.Check(SW_MOD()->GetModuleConfig()->IsDefaultFontInCurrDocOnly());
|
||||
}
|
||||
|
||||
SwStdFontTabPage::~SwStdFontTabPage()
|
||||
{
|
||||
if(bDeletePrinter)
|
||||
delete pPrt;
|
||||
}
|
||||
|
||||
SfxTabPage* SwStdFontTabPage::Create( Window* pParent,
|
||||
const SfxItemSet& rAttrSet )
|
||||
{
|
||||
return new SwStdFontTabPage(pParent, rAttrSet);
|
||||
}
|
||||
|
||||
void lcl_SetColl(SwWrtShell* pWrtShell, sal_uInt16 nType,
|
||||
SfxPrinter* pPrt, const String& rStyle,
|
||||
sal_uInt16 nFontWhich)
|
||||
{
|
||||
Font aFont( rStyle, Size( 0, 10 ) );
|
||||
if( pPrt )
|
||||
aFont = pPrt->GetFontMetric( aFont );
|
||||
SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(nType);
|
||||
pColl->SetFmtAttr(SvxFontItem(aFont.GetFamily(), aFont.GetName(),
|
||||
aEmptyStr, aFont.GetPitch(), aFont.GetCharSet(), nFontWhich));
|
||||
}
|
||||
|
||||
void lcl_SetColl(SwWrtShell* pWrtShell, sal_uInt16 nType,
|
||||
sal_Int32 nHeight, sal_uInt16 nFontHeightWhich)
|
||||
{
|
||||
float fSize = (float)nHeight / 10;
|
||||
nHeight = CalcToUnit( fSize, SFX_MAPUNIT_TWIP );
|
||||
SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(nType);
|
||||
pColl->SetFmtAttr(SvxFontHeightItem(nHeight, 100, nFontHeightWhich));
|
||||
}
|
||||
|
||||
sal_Bool SwStdFontTabPage::FillItemSet( SfxItemSet& )
|
||||
{
|
||||
sal_Bool bNotDocOnly = !aDocOnlyCB.IsChecked();
|
||||
SW_MOD()->GetModuleConfig()->SetDefaultFontInCurrDocOnly(!bNotDocOnly);
|
||||
|
||||
String sStandard = aStandardBox.GetText();
|
||||
String sTitle = aTitleBox .GetText();
|
||||
String sList = aListBox .GetText();
|
||||
String sLabel = aLabelBox .GetText();
|
||||
String sIdx = aIdxBox .GetText();
|
||||
String sStandardBak = aStandardBox.GetSavedValue();
|
||||
String sTitleBak = aTitleBox .GetSavedValue();
|
||||
String sListBak = aListBox .GetSavedValue();
|
||||
String sLabelBak = aLabelBox .GetSavedValue();
|
||||
String sIdxBak = aIdxBox .GetSavedValue();
|
||||
|
||||
bool bStandardHeightChanged = aStandardHeightLB.GetSavedValue() != aStandardHeightLB.GetText();
|
||||
bool bTitleHeightChanged = aTitleHeightLB.GetSavedValue() != aTitleHeightLB.GetText();
|
||||
bool bListHeightChanged = aListHeightLB.GetSavedValue() != aListHeightLB.GetText() && (!bListHeightDefault || !bSetListHeightDefault );
|
||||
bool bLabelHeightChanged = aLabelHeightLB.GetSavedValue() != aLabelHeightLB.GetText() && (!bLabelHeightDefault || !bSetLabelHeightDefault );
|
||||
bool bIndexHeightChanged = aIndexHeightLB.GetSavedValue() != aIndexHeightLB.GetText() && (!bIndexHeightDefault || !bSetIndexHeightDefault );
|
||||
if(bNotDocOnly)
|
||||
{
|
||||
pFontConfig->SetFontStandard(sStandard, nFontGroup);
|
||||
pFontConfig->SetFontOutline(sTitle, nFontGroup);
|
||||
pFontConfig->SetFontList(sList, nFontGroup);
|
||||
pFontConfig->SetFontCaption(sLabel, nFontGroup);
|
||||
pFontConfig->SetFontIndex(sIdx, nFontGroup);
|
||||
if(bStandardHeightChanged)
|
||||
{
|
||||
float fSize = (float)aStandardHeightLB.GetValue() / 10;
|
||||
pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_STANDARD, nFontGroup );
|
||||
}
|
||||
if(bTitleHeightChanged)
|
||||
{
|
||||
float fSize = (float)aTitleHeightLB.GetValue() / 10;
|
||||
pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_OUTLINE, nFontGroup );
|
||||
}
|
||||
if(bListHeightChanged)
|
||||
{
|
||||
float fSize = (float)aListHeightLB.GetValue() / 10;
|
||||
pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_LIST, nFontGroup );
|
||||
}
|
||||
if(bLabelHeightChanged)
|
||||
{
|
||||
float fSize = (float)aLabelHeightLB.GetValue() / 10;
|
||||
pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_CAPTION, nFontGroup );
|
||||
}
|
||||
if(bIndexHeightChanged)
|
||||
{
|
||||
float fSize = (float)aIndexHeightLB.GetValue() / 10;
|
||||
pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_INDEX, nFontGroup );
|
||||
}
|
||||
}
|
||||
if(pWrtShell)
|
||||
{
|
||||
pWrtShell->StartAllAction();
|
||||
SfxPrinter* pPrinter = pWrtShell->getIDocumentDeviceAccess()->getPrinter( false );
|
||||
sal_Bool bMod = sal_False;
|
||||
sal_uInt16 nFontWhich = sal::static_int_cast< sal_uInt16, RES_CHRATR >(
|
||||
nFontGroup == FONT_GROUP_DEFAULT ? RES_CHRATR_FONT :
|
||||
FONT_GROUP_CJK == nFontGroup ? RES_CHRATR_CJK_FONT : RES_CHRATR_CTL_FONT);
|
||||
sal_uInt16 nFontHeightWhich = sal::static_int_cast< sal_uInt16, RES_CHRATR >(
|
||||
nFontGroup == FONT_GROUP_DEFAULT ? RES_CHRATR_FONTSIZE :
|
||||
FONT_GROUP_CJK == nFontGroup ? RES_CHRATR_CJK_FONTSIZE : RES_CHRATR_CTL_FONTSIZE);
|
||||
if(sStandard != sShellStd)
|
||||
{
|
||||
Font aFont( sStandard, Size( 0, 10 ) );
|
||||
if( pPrinter )
|
||||
aFont = pPrinter->GetFontMetric( aFont );
|
||||
pWrtShell->SetDefault(SvxFontItem(aFont.GetFamily(), aFont.GetName(),
|
||||
aEmptyStr, aFont.GetPitch(), aFont.GetCharSet(), nFontWhich));
|
||||
SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_STANDARD);
|
||||
pColl->ResetFmtAttr(nFontWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if(bStandardHeightChanged)
|
||||
{
|
||||
float fSize = (float)aStandardHeightLB.GetValue() / 10;
|
||||
pWrtShell->SetDefault(SvxFontHeightItem( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), 100, nFontHeightWhich ) );
|
||||
SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_STANDARD);
|
||||
pColl->ResetFmtAttr(nFontHeightWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
|
||||
if(sTitle != sShellTitle )
|
||||
{
|
||||
lcl_SetColl(pWrtShell, RES_POOLCOLL_HEADLINE_BASE, pPrinter, sTitle, nFontWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if(bTitleHeightChanged)
|
||||
{
|
||||
lcl_SetColl(pWrtShell, RES_POOLCOLL_HEADLINE_BASE,
|
||||
sal::static_int_cast< sal_uInt16, sal_Int64 >(aTitleHeightLB.GetValue()), nFontHeightWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if(sList != sShellList && (!bListDefault || !bSetListDefault ))
|
||||
{
|
||||
lcl_SetColl(pWrtShell, RES_POOLCOLL_NUMBUL_BASE, pPrinter, sList, nFontWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if(bListHeightChanged)
|
||||
{
|
||||
lcl_SetColl(pWrtShell, RES_POOLCOLL_NUMBUL_BASE,
|
||||
sal::static_int_cast< sal_uInt16, sal_Int64 >(aListHeightLB.GetValue()), nFontHeightWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if(sLabel != sShellLabel && (!bLabelDefault || !bSetLabelDefault))
|
||||
{
|
||||
lcl_SetColl(pWrtShell, RES_POOLCOLL_LABEL, pPrinter, sLabel, nFontWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if(bLabelHeightChanged)
|
||||
{
|
||||
lcl_SetColl(pWrtShell, RES_POOLCOLL_LABEL,
|
||||
sal::static_int_cast< sal_uInt16, sal_Int64 >(aLabelHeightLB.GetValue()), nFontHeightWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if(sIdx != sShellIndex && (!bIdxDefault || !bSetIdxDefault))
|
||||
{
|
||||
lcl_SetColl(pWrtShell, RES_POOLCOLL_REGISTER_BASE, pPrinter, sIdx, nFontWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if(bIndexHeightChanged)
|
||||
{
|
||||
lcl_SetColl(pWrtShell, RES_POOLCOLL_REGISTER_BASE,
|
||||
sal::static_int_cast< sal_uInt16, sal_Int64 >(aIndexHeightLB.GetValue()), nFontHeightWhich);
|
||||
bMod = sal_True;
|
||||
}
|
||||
if ( bMod )
|
||||
pWrtShell->SetModified();
|
||||
pWrtShell->EndAllAction();
|
||||
}
|
||||
|
||||
return sal_False;
|
||||
}
|
||||
|
||||
void SwStdFontTabPage::Reset( const SfxItemSet& rSet)
|
||||
{
|
||||
const SfxPoolItem* pLang;
|
||||
sal_uInt16 nLangSlot = nFontGroup == FONT_GROUP_DEFAULT ? SID_ATTR_LANGUAGE :
|
||||
FONT_GROUP_CJK == nFontGroup ? SID_ATTR_CHAR_CJK_LANGUAGE : SID_ATTR_CHAR_CTL_LANGUAGE;
|
||||
|
||||
|
||||
if( SFX_ITEM_SET == rSet.GetItemState(nLangSlot, sal_False, &pLang))
|
||||
eLanguage = ((const SvxLanguageItem*)pLang)->GetValue();
|
||||
|
||||
String sTmp(aStdChrFL.GetText());
|
||||
String sToReplace = sScriptWestern;
|
||||
if(FONT_GROUP_CJK == nFontGroup )
|
||||
sToReplace = sScriptAsian;
|
||||
else if(FONT_GROUP_CTL == nFontGroup )
|
||||
sToReplace = sScriptComplex;
|
||||
|
||||
sTmp.SearchAndReplaceAscii("%1", sToReplace);
|
||||
aStdChrFL.SetText(sTmp);
|
||||
const SfxPoolItem* pItem;
|
||||
|
||||
if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_PRINTER, sal_False, &pItem))
|
||||
{
|
||||
pPrt = (SfxPrinter*)((const SwPtrItem*)pItem)->GetValue();
|
||||
}
|
||||
else
|
||||
{
|
||||
SfxItemSet* pPrinterSet = new SfxItemSet( *rSet.GetPool(),
|
||||
SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
|
||||
SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
|
||||
0 );
|
||||
pPrt = new SfxPrinter(pPrinterSet);
|
||||
bDeletePrinter = sal_True;
|
||||
}
|
||||
pFontList = new FontList( pPrt );
|
||||
// #i94536# prevent duplication of font entries when 'reset' button is pressed
|
||||
if( !aStandardBox.GetEntryCount() )
|
||||
{
|
||||
// get the set of disctinct available family names
|
||||
std::set< String > aFontNames;
|
||||
int nFontNames = pPrt->GetDevFontCount();
|
||||
for( int i = 0; i < nFontNames; i++ )
|
||||
{
|
||||
FontInfo aInf( pPrt->GetDevFont( i ) );
|
||||
aFontNames.insert( aInf.GetName() );
|
||||
}
|
||||
|
||||
// insert to listboxes
|
||||
for( std::set< String >::const_iterator it = aFontNames.begin();
|
||||
it != aFontNames.end(); ++it )
|
||||
{
|
||||
aStandardBox.InsertEntry( *it );
|
||||
aTitleBox .InsertEntry( *it );
|
||||
aListBox .InsertEntry( *it );
|
||||
aLabelBox .InsertEntry( *it );
|
||||
aIdxBox .InsertEntry( *it );
|
||||
}
|
||||
}
|
||||
if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_STDFONTS, sal_False, &pItem))
|
||||
{
|
||||
pFontConfig = (SwStdFontConfig*)((const SwPtrItem*)pItem)->GetValue();
|
||||
}
|
||||
|
||||
if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_WRTSHELL, sal_False, &pItem))
|
||||
{
|
||||
pWrtShell = (SwWrtShell*)((const SwPtrItem*)pItem)->GetValue();
|
||||
}
|
||||
String sStdBackup;
|
||||
String sOutBackup;
|
||||
String sListBackup;
|
||||
String sCapBackup;
|
||||
String sIdxBackup;
|
||||
sal_Int32 nStandardHeight = -1;
|
||||
sal_Int32 nTitleHeight = -1;
|
||||
sal_Int32 nListHeight = -1;
|
||||
sal_Int32 nLabelHeight = -1;
|
||||
sal_Int32 nIndexHeight = -1;
|
||||
|
||||
if(!pWrtShell)
|
||||
{
|
||||
sStdBackup = pFontConfig->GetFontStandard(nFontGroup);
|
||||
sOutBackup = pFontConfig->GetFontOutline(nFontGroup);
|
||||
sListBackup= pFontConfig->GetFontList(nFontGroup);
|
||||
sCapBackup = pFontConfig->GetFontCaption(nFontGroup);
|
||||
sIdxBackup = pFontConfig->GetFontIndex(nFontGroup);
|
||||
nStandardHeight = pFontConfig->GetFontHeight( FONT_STANDARD, nFontGroup, eLanguage );
|
||||
nTitleHeight = pFontConfig->GetFontHeight( FONT_OUTLINE , nFontGroup, eLanguage );
|
||||
nListHeight = pFontConfig->GetFontHeight( FONT_LIST , nFontGroup, eLanguage );
|
||||
nLabelHeight = pFontConfig->GetFontHeight( FONT_CAPTION , nFontGroup, eLanguage );
|
||||
nIndexHeight = pFontConfig->GetFontHeight( FONT_INDEX , nFontGroup, eLanguage );
|
||||
if( nStandardHeight <= 0)
|
||||
nStandardHeight = pFontConfig->GetDefaultHeightFor( FONT_STANDARD + nFontGroup * FONT_PER_GROUP, eLanguage);
|
||||
if( nTitleHeight <= 0)
|
||||
nTitleHeight = pFontConfig->GetDefaultHeightFor( FONT_OUTLINE + nFontGroup * FONT_PER_GROUP, eLanguage);
|
||||
if( nListHeight <= 0)
|
||||
nListHeight = pFontConfig->GetDefaultHeightFor( FONT_LIST + nFontGroup * FONT_PER_GROUP, eLanguage);
|
||||
if( nLabelHeight <= 0)
|
||||
nLabelHeight = pFontConfig->GetDefaultHeightFor( FONT_CAPTION + nFontGroup * FONT_PER_GROUP, eLanguage);
|
||||
if( nIndexHeight <= 0)
|
||||
nIndexHeight = pFontConfig->GetDefaultHeightFor( FONT_INDEX + nFontGroup * FONT_PER_GROUP, eLanguage);
|
||||
|
||||
aDocOnlyCB.Enable(sal_False);
|
||||
}
|
||||
else
|
||||
{
|
||||
SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_STANDARD);
|
||||
const SvxFontItem& rFont = !nFontGroup ? pColl->GetFont() :
|
||||
FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont();
|
||||
sShellStd = sStdBackup = rFont.GetFamilyName();
|
||||
|
||||
sal_uInt16 nFontHeightWhich = sal::static_int_cast< sal_uInt16, RES_CHRATR >(
|
||||
nFontGroup == FONT_GROUP_DEFAULT ? RES_CHRATR_FONTSIZE :
|
||||
FONT_GROUP_CJK == nFontGroup ? RES_CHRATR_CJK_FONTSIZE : RES_CHRATR_CTL_FONTSIZE );
|
||||
const SvxFontHeightItem& rFontHeightStandard = (const SvxFontHeightItem& )pColl->GetFmtAttr(nFontHeightWhich);
|
||||
nStandardHeight = (sal_Int32)rFontHeightStandard.GetHeight();
|
||||
|
||||
pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_HEADLINE_BASE);
|
||||
const SvxFontItem& rFontHL = !nFontGroup ? pColl->GetFont() :
|
||||
FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont();
|
||||
sShellTitle = sOutBackup = rFontHL.GetFamilyName();
|
||||
|
||||
const SvxFontHeightItem& rFontHeightTitle = (const SvxFontHeightItem&)pColl->GetFmtAttr( nFontHeightWhich, sal_True );
|
||||
nTitleHeight = (sal_Int32)rFontHeightTitle.GetHeight();
|
||||
|
||||
sal_uInt16 nFontWhich = sal::static_int_cast< sal_uInt16, RES_CHRATR >(
|
||||
nFontGroup == FONT_GROUP_DEFAULT ? RES_CHRATR_FONT :
|
||||
FONT_GROUP_CJK == nFontGroup ? RES_CHRATR_CJK_FONT : RES_CHRATR_CTL_FONT);
|
||||
pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_NUMBUL_BASE);
|
||||
const SvxFontItem& rFontLS = !nFontGroup ? pColl->GetFont() :
|
||||
FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont();
|
||||
bListDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, sal_False);
|
||||
sShellList = sListBackup = rFontLS.GetFamilyName();
|
||||
|
||||
const SvxFontHeightItem& rFontHeightList = (const SvxFontHeightItem&)pColl->GetFmtAttr(nFontHeightWhich, sal_True);
|
||||
nListHeight = (sal_Int32)rFontHeightList.GetHeight();
|
||||
bListHeightDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, sal_False);
|
||||
|
||||
|
||||
pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_LABEL);
|
||||
bLabelDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, sal_False);
|
||||
const SvxFontItem& rFontCP = !nFontGroup ? pColl->GetFont() :
|
||||
FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont();
|
||||
sShellLabel = sCapBackup = rFontCP.GetFamilyName();
|
||||
const SvxFontHeightItem& rFontHeightLabel = (const SvxFontHeightItem&)pColl->GetFmtAttr(nFontHeightWhich, sal_True);
|
||||
nLabelHeight = (sal_Int32)rFontHeightLabel.GetHeight();
|
||||
bLabelHeightDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, sal_False);
|
||||
|
||||
pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_REGISTER_BASE);
|
||||
bIdxDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, sal_False);
|
||||
const SvxFontItem& rFontIDX = !nFontGroup ? pColl->GetFont() :
|
||||
FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont();
|
||||
sShellIndex = sIdxBackup = rFontIDX.GetFamilyName();
|
||||
const SvxFontHeightItem& rFontHeightIndex = (const SvxFontHeightItem&)pColl->GetFmtAttr(nFontHeightWhich, sal_True);
|
||||
nIndexHeight = (sal_Int32)rFontHeightIndex.GetHeight();
|
||||
bIndexHeightDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, sal_False);
|
||||
}
|
||||
aStandardBox.SetText(sStdBackup );
|
||||
aTitleBox .SetText(sOutBackup );
|
||||
aListBox .SetText(sListBackup);
|
||||
aLabelBox .SetText(sCapBackup );
|
||||
aIdxBox .SetText(sIdxBackup );
|
||||
|
||||
FontInfo aFontInfo( pFontList->Get(sStdBackup, sStdBackup) );
|
||||
aStandardHeightLB.Fill( &aFontInfo, pFontList );
|
||||
aFontInfo = pFontList->Get(sOutBackup, sOutBackup );
|
||||
aTitleHeightLB.Fill( &aFontInfo, pFontList );
|
||||
aFontInfo = pFontList->Get(sListBackup,sListBackup);
|
||||
aListHeightLB.Fill( &aFontInfo, pFontList );
|
||||
aFontInfo = pFontList->Get(sCapBackup, sCapBackup );
|
||||
aLabelHeightLB.Fill( &aFontInfo, pFontList );
|
||||
aFontInfo = pFontList->Get(sIdxBackup, sIdxBackup );
|
||||
aIndexHeightLB.Fill( &aFontInfo, pFontList );
|
||||
|
||||
aStandardHeightLB.SetValue( CalcToPoint( nStandardHeight, SFX_MAPUNIT_TWIP, 10 ) );
|
||||
aTitleHeightLB. SetValue( CalcToPoint( nTitleHeight , SFX_MAPUNIT_TWIP, 10 ) );
|
||||
aListHeightLB. SetValue( CalcToPoint( nListHeight , SFX_MAPUNIT_TWIP, 10 ) );
|
||||
aLabelHeightLB. SetValue( CalcToPoint( nLabelHeight , SFX_MAPUNIT_TWIP, 10 ));
|
||||
aIndexHeightLB. SetValue( CalcToPoint( nIndexHeight , SFX_MAPUNIT_TWIP, 10 ));
|
||||
|
||||
aStandardBox.SaveValue();
|
||||
aTitleBox .SaveValue();
|
||||
aListBox .SaveValue();
|
||||
aLabelBox .SaveValue();
|
||||
aIdxBox .SaveValue();
|
||||
|
||||
aStandardHeightLB.SaveValue();
|
||||
aTitleHeightLB. SaveValue();
|
||||
aListHeightLB. SaveValue();
|
||||
aLabelHeightLB. SaveValue();
|
||||
aIndexHeightLB. SaveValue();
|
||||
}
|
||||
|
||||
IMPL_LINK( SwStdFontTabPage, StandardHdl, PushButton *, EMPTYARG )
|
||||
{
|
||||
sal_uInt8 nFontOffset = nFontGroup * FONT_PER_GROUP;
|
||||
aStandardBox.SetText(SwStdFontConfig::GetDefaultFor(FONT_STANDARD + nFontOffset, eLanguage));
|
||||
aTitleBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_OUTLINE + nFontOffset, eLanguage));
|
||||
aListBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_LIST + nFontOffset, eLanguage));
|
||||
aLabelBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_CAPTION + nFontOffset, eLanguage));
|
||||
aIdxBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_INDEX + nFontOffset, eLanguage));
|
||||
|
||||
aStandardBox.SaveValue();
|
||||
aTitleBox .SaveValue();
|
||||
aListBox .SaveValue();
|
||||
aLabelBox .SaveValue();
|
||||
aIdxBox .SaveValue();
|
||||
|
||||
aStandardHeightLB.SetValue( CalcToPoint(
|
||||
SwStdFontConfig::GetDefaultHeightFor(FONT_STANDARD + nFontOffset, eLanguage),
|
||||
SFX_MAPUNIT_TWIP, 10 ) );
|
||||
aTitleHeightLB .SetValue(CalcToPoint(
|
||||
SwStdFontConfig::GetDefaultHeightFor(FONT_OUTLINE +
|
||||
nFontOffset, eLanguage), SFX_MAPUNIT_TWIP, 10 ));
|
||||
aListHeightLB .SetValue(CalcToPoint(
|
||||
SwStdFontConfig::GetDefaultHeightFor(FONT_LIST + nFontOffset, eLanguage),
|
||||
SFX_MAPUNIT_TWIP, 10 ));
|
||||
aLabelHeightLB .SetValue(CalcToPoint(
|
||||
SwStdFontConfig::GetDefaultHeightFor(FONT_CAPTION + nFontOffset, eLanguage),
|
||||
SFX_MAPUNIT_TWIP, 10 ));
|
||||
aIndexHeightLB .SetValue(CalcToPoint(
|
||||
SwStdFontConfig::GetDefaultHeightFor(FONT_INDEX + nFontOffset, eLanguage),
|
||||
SFX_MAPUNIT_TWIP, 10 ));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
IMPL_LINK( SwStdFontTabPage, ModifyHdl, ComboBox*, pBox )
|
||||
{
|
||||
if(pBox == &aStandardBox)
|
||||
{
|
||||
String sEntry = pBox->GetText();
|
||||
if(bSetListDefault && bListDefault)
|
||||
aListBox.SetText(sEntry);
|
||||
if(bSetLabelDefault && bLabelDefault)
|
||||
aLabelBox.SetText(sEntry);
|
||||
if(bSetIdxDefault && bIdxDefault)
|
||||
aIdxBox.SetText(sEntry);
|
||||
}
|
||||
else if(pBox == &aListBox)
|
||||
{
|
||||
bSetListDefault = sal_False;
|
||||
}
|
||||
else if(pBox == &aLabelBox)
|
||||
{
|
||||
bSetLabelDefault = sal_False;
|
||||
}
|
||||
else if(pBox == &aIdxBox)
|
||||
{
|
||||
bSetIdxDefault = sal_False;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
IMPL_LINK( SwStdFontTabPage, ModifyHeightHdl, FontSizeBox*, pBox )
|
||||
{
|
||||
if(pBox == &aStandardHeightLB)
|
||||
{
|
||||
sal_Int64 nValue = pBox->GetValue(FUNIT_TWIP);
|
||||
if(bSetListHeightDefault && bListHeightDefault)
|
||||
aListHeightLB.SetValue(nValue, FUNIT_TWIP);
|
||||
if(bSetLabelHeightDefault && bLabelHeightDefault)
|
||||
aLabelHeightLB.SetValue(nValue, FUNIT_TWIP);
|
||||
if(bSetIndexHeightDefault && bIndexHeightDefault)
|
||||
aIndexHeightLB.SetValue(nValue, FUNIT_TWIP);
|
||||
}
|
||||
else if(pBox == &aListHeightLB)
|
||||
{
|
||||
bSetListHeightDefault = sal_False;
|
||||
}
|
||||
else if(pBox == &aLabelHeightLB)
|
||||
{
|
||||
bSetLabelHeightDefault = sal_False;
|
||||
}
|
||||
else if(pBox == &aIndexHeightLB)
|
||||
{
|
||||
bSetIndexHeightDefault = sal_False;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
IMPL_LINK( SwStdFontTabPage, LoseFocusHdl, ComboBox*, pBox )
|
||||
{
|
||||
FontSizeBox* pHeightLB = 0;
|
||||
String sEntry = pBox->GetText();
|
||||
if(pBox == &aStandardBox)
|
||||
{
|
||||
pHeightLB = &aStandardHeightLB;
|
||||
}
|
||||
else if(pBox == &aTitleBox)
|
||||
{
|
||||
pHeightLB = &aTitleHeightLB;
|
||||
}
|
||||
else if(pBox == &aListBox)
|
||||
{
|
||||
pHeightLB = &aListHeightLB;
|
||||
}
|
||||
else if(pBox == &aLabelBox)
|
||||
{
|
||||
pHeightLB = &aLabelHeightLB;
|
||||
}
|
||||
else /*if(pBox == &aIdxBox)*/
|
||||
{
|
||||
pHeightLB = &aIndexHeightLB;
|
||||
}
|
||||
FontInfo aFontInfo( pFontList->Get(sEntry, sEntry) );
|
||||
pHeightLB->Fill( &aFontInfo, pFontList );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void SwStdFontTabPage::PageCreated (SfxAllItemSet aSet)
|
||||
{
|
||||
SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt16Item, SID_FONTMODE_TYPE, sal_False);
|
||||
if (pFlagItem)
|
||||
SetFontMode(sal::static_int_cast< sal_uInt8, sal_uInt16>( pFlagItem->GetValue()));
|
||||
}
|
||||
|
||||
SwTableOptionsTabPage::SwTableOptionsTabPage( Window* pParent, const SfxItemSet& rSet ) :
|
||||
SfxTabPage(pParent, SW_RES(TP_OPTTABLE_PAGE), rSet),
|
||||
aTableFL (this, SW_RES(FL_TABLE )),
|
||||
|
@@ -1640,12 +1640,6 @@ CreateTabPage SwAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nI
|
||||
case RID_SW_TP_OPTPRINT_PAGE:
|
||||
pRet = SwAddPrinterTabPage::Create;
|
||||
break;
|
||||
case TP_STD_FONT :
|
||||
case RID_SW_TP_STD_FONT:
|
||||
case RID_SW_TP_STD_FONT_CJK:
|
||||
case RID_SW_TP_STD_FONT_CTL:
|
||||
pRet = SwStdFontTabPage::Create;
|
||||
break;
|
||||
case TP_OPTTABLE_PAGE :
|
||||
case RID_SW_TP_HTML_OPTTABLE_PAGE:
|
||||
case RID_SW_TP_OPTTABLE_PAGE:
|
||||
|
@@ -43,7 +43,6 @@
|
||||
#include <fontcfg.hxx>
|
||||
class SvStringsDtor;
|
||||
class SfxPrinter;
|
||||
class SwStdFontConfig;
|
||||
class SwWrtShell;
|
||||
class FontList;
|
||||
|
||||
@@ -157,90 +156,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
class SwStdFontTabPage : public SfxTabPage
|
||||
{
|
||||
FixedLine aStdChrFL ;
|
||||
|
||||
FixedText aTypeFT;
|
||||
|
||||
FixedText aStandardLbl;
|
||||
ComboBox aStandardBox;
|
||||
|
||||
FixedText aHeightFT;
|
||||
FontSizeBox aStandardHeightLB;
|
||||
|
||||
FixedText aTitleLbl ;
|
||||
ComboBox aTitleBox ;
|
||||
FontSizeBox aTitleHeightLB;
|
||||
|
||||
FixedText aListLbl ;
|
||||
ComboBox aListBox ;
|
||||
FontSizeBox aListHeightLB;
|
||||
|
||||
FixedText aLabelLbl ;
|
||||
ComboBox aLabelBox ;
|
||||
FontSizeBox aLabelHeightLB;
|
||||
|
||||
FixedText aIdxLbl ;
|
||||
ComboBox aIdxBox ;
|
||||
FontSizeBox aIndexHeightLB;
|
||||
|
||||
CheckBox aDocOnlyCB ;
|
||||
PushButton aStandardPB;
|
||||
|
||||
String sShellStd;
|
||||
String sShellTitle;
|
||||
String sShellList;
|
||||
String sShellLabel;
|
||||
String sShellIndex;
|
||||
|
||||
SfxPrinter* pPrt;
|
||||
FontList* pFontList;
|
||||
SwStdFontConfig* pFontConfig;
|
||||
SwWrtShell* pWrtShell;
|
||||
LanguageType eLanguage;
|
||||
// only defaults were there? they were signed with the boxes
|
||||
sal_Bool bListDefault :1;
|
||||
sal_Bool bSetListDefault :1;
|
||||
sal_Bool bLabelDefault :1;
|
||||
sal_Bool bSetLabelDefault :1;
|
||||
sal_Bool bIdxDefault :1;
|
||||
sal_Bool bSetIdxDefault :1;
|
||||
sal_Bool bDeletePrinter :1;
|
||||
|
||||
sal_Bool bListHeightDefault :1;
|
||||
sal_Bool bSetListHeightDefault :1;
|
||||
sal_Bool bLabelHeightDefault :1;
|
||||
sal_Bool bSetLabelHeightDefault :1;
|
||||
sal_Bool bIndexHeightDefault :1;
|
||||
sal_Bool bSetIndexHeightDefault :1;
|
||||
|
||||
sal_uInt8 nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL]
|
||||
|
||||
String sScriptWestern;
|
||||
String sScriptAsian;
|
||||
String sScriptComplex;
|
||||
|
||||
DECL_LINK( StandardHdl, PushButton * );
|
||||
DECL_LINK( ModifyHdl, ComboBox * );
|
||||
DECL_LINK( ModifyHeightHdl, FontSizeBox * );
|
||||
DECL_LINK( LoseFocusHdl, ComboBox * );
|
||||
|
||||
SwStdFontTabPage( Window* pParent,
|
||||
const SfxItemSet& rSet );
|
||||
~SwStdFontTabPage();
|
||||
|
||||
public:
|
||||
static SfxTabPage* Create( Window* pParent,
|
||||
const SfxItemSet& rAttrSet );
|
||||
|
||||
virtual sal_Bool FillItemSet( SfxItemSet& rSet );
|
||||
virtual void Reset( const SfxItemSet& rSet );
|
||||
|
||||
void SetFontMode(sal_uInt8 nGroup) {nFontGroup = nGroup;}
|
||||
virtual void PageCreated (SfxAllItemSet aSet);
|
||||
};
|
||||
|
||||
class SwTableOptionsTabPage : public SfxTabPage
|
||||
{
|
||||
FixedLine aTableFL;
|
||||
|
@@ -252,166 +252,6 @@ String STR_POOLCOLL_HEADLINE10
|
||||
{
|
||||
Text [ en-US ] = "Heading 10" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL1S
|
||||
{
|
||||
Text [ en-US ] = "Numbering 1 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL1
|
||||
{
|
||||
Text [ en-US ] = "Numbering 1" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL1E
|
||||
{
|
||||
Text [ en-US ] = "Numbering 1 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_NONUM1
|
||||
{
|
||||
Text [ en-US ] = "Numbering 1 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL2S
|
||||
{
|
||||
Text [ en-US ] = "Numbering 2 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL2
|
||||
{
|
||||
Text [ en-US ] = "Numbering 2" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL2E
|
||||
{
|
||||
Text [ en-US ] = "Numbering 2 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_NONUM2
|
||||
{
|
||||
Text [ en-US ] = "Numbering 2 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL3S
|
||||
{
|
||||
Text [ en-US ] = "Numbering 3 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL3
|
||||
{
|
||||
Text [ en-US ] = "Numbering 3" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL3E
|
||||
{
|
||||
Text [ en-US ] = "Numbering 3 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_NONUM3
|
||||
{
|
||||
Text [ en-US ] = "Numbering 3 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL4S
|
||||
{
|
||||
Text [ en-US ] = "Numbering 4 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL4
|
||||
{
|
||||
Text [ en-US ] = "Numbering 4" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL4E
|
||||
{
|
||||
Text [ en-US ] = "Numbering 4 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_NONUM4
|
||||
{
|
||||
Text [ en-US ] = "Numbering 4 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL5S
|
||||
{
|
||||
Text [ en-US ] = "Numbering 5 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL5
|
||||
{
|
||||
Text [ en-US ] = "Numbering 5" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_LEVEL5E
|
||||
{
|
||||
Text [ en-US ] = "Numbering 5 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_NUM_NONUM5
|
||||
{
|
||||
Text [ en-US ] = "Numbering 5 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL1S
|
||||
{
|
||||
Text [ en-US ] = "List 1 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL1
|
||||
{
|
||||
Text [ en-US ] = "List 1" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL1E
|
||||
{
|
||||
Text [ en-US ] = "List 1 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_NONUM1
|
||||
{
|
||||
Text [ en-US ] = "List 1 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL2S
|
||||
{
|
||||
Text [ en-US ] = "List 2 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL2
|
||||
{
|
||||
Text [ en-US ] = "List 2" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL2E
|
||||
{
|
||||
Text [ en-US ] = "List 2 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_NONUM2
|
||||
{
|
||||
Text [ en-US ] = "List 2 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL3S
|
||||
{
|
||||
Text [ en-US ] = "List 3 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL3
|
||||
{
|
||||
Text [ en-US ] = "List 3" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL3E
|
||||
{
|
||||
Text [ en-US ] = "List 3 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_NONUM3
|
||||
{
|
||||
Text [ en-US ] = "List 3 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL4S
|
||||
{
|
||||
Text [ en-US ] = "List 4 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL4
|
||||
{
|
||||
Text [ en-US ] = "List 4" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL4E
|
||||
{
|
||||
Text [ en-US ] = "List 4 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_NONUM4
|
||||
{
|
||||
Text [ en-US ] = "List 4 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL5S
|
||||
{
|
||||
Text [ en-US ] = "List 5 Start" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL5
|
||||
{
|
||||
Text [ en-US ] = "List 5" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_LEVEL5E
|
||||
{
|
||||
Text [ en-US ] = "List 5 End" ;
|
||||
};
|
||||
String STR_POOLCOLL_BUL_NONUM5
|
||||
{
|
||||
Text [ en-US ] = "List 5 Cont." ;
|
||||
};
|
||||
String STR_POOLCOLL_HEADER
|
||||
{
|
||||
Text [ en-US ] = "Header" ;
|
||||
|
Reference in New Issue
Block a user