Lines 1064-1069
Link Here
|
1064 |
pTabViewShell->HideListBox(); // Autofilter-DropDown-Listbox |
1064 |
pTabViewShell->HideListBox(); // Autofilter-DropDown-Listbox |
1065 |
|
1065 |
|
1066 |
if ( (nSlot == SID_ATTR_CHAR_WEIGHT) |
1066 |
if ( (nSlot == SID_ATTR_CHAR_WEIGHT) |
|
|
1067 |
||(nSlot == SID_ATTR_CHAR_LANGUAGE) |
1067 |
||(nSlot == SID_ATTR_CHAR_POSTURE) |
1068 |
||(nSlot == SID_ATTR_CHAR_POSTURE) |
1068 |
||(nSlot == SID_ATTR_CHAR_UNDERLINE) |
1069 |
||(nSlot == SID_ATTR_CHAR_UNDERLINE) |
1069 |
||(nSlot == SID_ULINE_VAL_NONE) |
1070 |
||(nSlot == SID_ULINE_VAL_NONE) |
Lines 1075-1080
Link Here
|
1075 |
|
1076 |
|
1076 |
switch ( nSlot ) |
1077 |
switch ( nSlot ) |
1077 |
{ |
1078 |
{ |
|
|
1079 |
case SID_ATTR_CHAR_LANGUAGE: |
1080 |
{ |
1081 |
BYTE nScript = pTabViewShell->GetSelectionScriptType(); |
1082 |
SfxItemPool& rPool = GetPool(); |
1083 |
SvxScriptSetItem aSetItem( nSlot, rPool ); |
1084 |
|
1085 |
if ( pSet ) { |
1086 |
USHORT nWhich = rPool.GetWhich( nSlot ); |
1087 |
aSetItem.PutItemForScriptType( nScript, pNewSet->Get( nWhich ) ); |
1088 |
} else { |
1089 |
// what do we do if there are no new attributes? anything? |
1090 |
} |
1091 |
pTabViewShell->ApplyUserItemSet( aSetItem.GetItemSet() ); |
1092 |
pNewSet->Put( aSetItem.GetItemSet(), FALSE ); |
1093 |
|
1094 |
} |
1095 |
break; |
1096 |
|
1078 |
case SID_ATTR_CHAR_WEIGHT: |
1097 |
case SID_ATTR_CHAR_WEIGHT: |
1079 |
{ |
1098 |
{ |
1080 |
BYTE nScript = pTabViewShell->GetSelectionScriptType(); |
1099 |
BYTE nScript = pTabViewShell->GetSelectionScriptType(); |
Lines 1323-1328
Link Here
|
1323 |
|
1342 |
|
1324 |
switch ( nSlot ) |
1343 |
switch ( nSlot ) |
1325 |
{ |
1344 |
{ |
|
|
1345 |
case SID_ATTR_CHAR_LANGUAGE: |
1346 |
{ |
1347 |
BYTE nScript = pTabViewShell->GetSelectionScriptType(); |
1348 |
SfxItemPool& rPool = GetPool(); |
1349 |
SvxScriptSetItem aSetItem( nSlot, rPool ); |
1350 |
pTabViewShell->ApplyUserItemSet( aSetItem.GetItemSet() ); |
1351 |
SfxAllItemSet aNewSet( GetPool() ); |
1352 |
aNewSet.Put( aSetItem.GetItemSet(), FALSE ); |
1353 |
rBindings.Invalidate( nSlot ); |
1354 |
rBindings.Update( nSlot ); |
1355 |
} |
1356 |
break; |
1357 |
|
1326 |
case SID_ATTR_CHAR_FONT: |
1358 |
case SID_ATTR_CHAR_FONT: |
1327 |
case SID_ATTR_CHAR_FONTHEIGHT: |
1359 |
case SID_ATTR_CHAR_FONTHEIGHT: |
1328 |
pTabViewShell->ExecuteCellFormatDlg( rReq, TP_FONT ); // wenn ToolBar vertikal |
1360 |
pTabViewShell->ExecuteCellFormatDlg( rReq, TP_FONT ); // wenn ToolBar vertikal |
Lines 1378-1383
Link Here
|
1378 |
|
1410 |
|
1379 |
case SID_ATTR_CHAR_FONT: |
1411 |
case SID_ATTR_CHAR_FONT: |
1380 |
case SID_ATTR_CHAR_FONTHEIGHT: |
1412 |
case SID_ATTR_CHAR_FONTHEIGHT: |
|
|
1413 |
case SID_ATTR_CHAR_LANGUAGE: |
1381 |
{ |
1414 |
{ |
1382 |
BYTE nScript = pTabViewShell->GetSelectionScriptType(); |
1415 |
BYTE nScript = pTabViewShell->GetSelectionScriptType(); |
1383 |
|
1416 |
|
Lines 1594-1599
Link Here
|
1594 |
if (!nScript) nScript = pTabViewShell->GetSelectionScriptType(); |
1627 |
if (!nScript) nScript = pTabViewShell->GetSelectionScriptType(); |
1595 |
ScViewUtil::PutItemScript( rSet, rAttrSet, ATTR_FONT_HEIGHT, nScript ); |
1628 |
ScViewUtil::PutItemScript( rSet, rAttrSet, ATTR_FONT_HEIGHT, nScript ); |
1596 |
} |
1629 |
} |
|
|
1630 |
if ( rSet.GetItemState( ATTR_FONT_LANGUAGE ) != SFX_ITEM_UNKNOWN ) |
1631 |
{ |
1632 |
if (!nScript) nScript = pTabViewShell->GetSelectionScriptType(); |
1633 |
ScViewUtil::PutItemScript( rSet, rAttrSet, ATTR_FONT_LANGUAGE, nScript ); |
1634 |
} |
1597 |
|
1635 |
|
1598 |
while ( nWhich ) |
1636 |
while ( nWhich ) |
1599 |
{ |
1637 |
{ |
Lines 1651-1656
Link Here
|
1651 |
{ |
1689 |
{ |
1652 |
if (!nScript) nScript = pTabViewShell->GetSelectionScriptType(); |
1690 |
if (!nScript) nScript = pTabViewShell->GetSelectionScriptType(); |
1653 |
ScViewUtil::PutItemScript( rSet, rAttrSet, ATTR_FONT_POSTURE, nScript ); |
1691 |
ScViewUtil::PutItemScript( rSet, rAttrSet, ATTR_FONT_POSTURE, nScript ); |
|
|
1692 |
} |
1693 |
if ( rSet.GetItemState( ATTR_FONT_LANGUAGE ) != SFX_ITEM_UNKNOWN ) |
1694 |
{ |
1695 |
if (!nScript) nScript = pTabViewShell->GetSelectionScriptType(); |
1696 |
ScViewUtil::PutItemScript( rSet, rAttrSet, ATTR_FONT_LANGUAGE, nScript ); |
1654 |
} |
1697 |
} |
1655 |
|
1698 |
|
1656 |
SfxItemState eState; |
1699 |
SfxItemState eState; |