diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/IDocumentSettingAccess.hxx | 1 | ||||
-rw-r--r-- | sw/inc/doc.hxx | 1 | ||||
-rw-r--r-- | sw/source/core/crsr/bookmrk.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/doc/doc.cxx | 5 | ||||
-rw-r--r-- | sw/source/core/doc/docnew.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/inc/swfont.hxx | 3 | ||||
-rw-r--r-- | sw/source/core/txtnode/fntcap.cxx | 9 | ||||
-rw-r--r-- | sw/source/core/txtnode/swfont.cxx | 7 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 10 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlimp.cxx | 14 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/column.cxx | 19 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/column.hrc | 2 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/column.src | 92 | ||||
-rw-r--r-- | sw/source/ui/inc/column.hxx | 2 | ||||
-rw-r--r-- | sw/source/ui/uno/SwXDocumentSettings.cxx | 16 |
15 files changed, 102 insertions, 83 deletions
diff --git a/sw/inc/IDocumentSettingAccess.hxx b/sw/inc/IDocumentSettingAccess.hxx index 76e3d977d447..1dd769912c06 100644 --- a/sw/inc/IDocumentSettingAccess.hxx +++ b/sw/inc/IDocumentSettingAccess.hxx @@ -81,6 +81,7 @@ namespace com { namespace sun { namespace star { namespace i18n { struct Forbidd TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST, INVERT_BORDER_SPACING, COLLAPSE_EMPTY_CELL_PARA, + SMALL_CAPS_PERCENTAGE_66, // COMPATIBILITY FLAGS END BROWSE_MODE, diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index b90fe63e50d7..c640bafbf554 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -580,6 +580,7 @@ private: bool mbInvertBorderSpacing : 1; bool mbCollapseEmptyCellPara : 1; bool mbTabAtLeftIndentForParagraphsInList; // #i89181# - see above + bool mbSmallCapsPercentage66; bool mbLastBrowseMode : 1; diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index 30039539de96..3c039f917d4a 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -84,7 +84,8 @@ namespace rStart.nNode.GetNode().GetTxtNode(); SwTxtNode const*const pEndTxtNode = rEnd.nNode.GetNode().GetTxtNode(); const sal_Unicode ch_start=pStartTxtNode->GetTxt().GetChar(rStart.nContent.GetIndex()); - xub_StrLen nEndPos = rEnd == rStart ? rEnd.nContent.GetIndex() : rEnd.nContent.GetIndex() - 1; + xub_StrLen nEndPos = ( rEnd == rStart || rEnd.nContent.GetIndex() == 0 ) ? + rEnd.nContent.GetIndex() : rEnd.nContent.GetIndex() - 1; const sal_Unicode ch_end=pEndTxtNode->GetTxt().GetChar( nEndPos ); SwPaM aStartPaM(rStart); SwPaM aEndPaM(rEnd); diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 7c4e1984b819..e9ea7e9f30b0 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -201,6 +201,7 @@ bool SwDoc::get(/*[in]*/ DocumentSettingId id) const case TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST: return mbTabAtLeftIndentForParagraphsInList; case INVERT_BORDER_SPACING: return mbInvertBorderSpacing; case COLLAPSE_EMPTY_CELL_PARA: return mbCollapseEmptyCellPara; + case SMALL_CAPS_PERCENTAGE_66: return mbSmallCapsPercentage66; case BROWSE_MODE: return mbLastBrowseMode; // Attention: normally the ViewShell has to be asked! case HTML_MODE: return mbHTMLMode; @@ -331,6 +332,10 @@ void SwDoc::set(/*[in]*/ DocumentSettingId id, /*[in]*/ bool value) case COLLAPSE_EMPTY_CELL_PARA: mbCollapseEmptyCellPara = value; break; + + case SMALL_CAPS_PERCENTAGE_66: + mbSmallCapsPercentage66 = value; + break; // COMPATIBILITY FLAGS END case BROWSE_MODE: //can be used temporary (load/save) when no ViewShell is avaiable diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx index 5c18528525f7..439f83901aff 100644 --- a/sw/source/core/doc/docnew.cxx +++ b/sw/source/core/doc/docnew.cxx @@ -356,6 +356,7 @@ SwDoc::SwDoc() mbTabAtLeftIndentForParagraphsInList = false; // hidden #i89181# mbInvertBorderSpacing = false; // hidden mbCollapseEmptyCellPara = true; // hidden + mbSmallCapsPercentage66 = false; // hidden // // COMPATIBILITY FLAGS END diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx index f0cf7bab6a32..d99e368d861f 100644 --- a/sw/source/core/inc/swfont.hxx +++ b/sw/source/core/inc/swfont.hxx @@ -58,8 +58,9 @@ class SwSubFont : public SvxFont sal_uInt16 nOrgHeight; // Hoehe inkl. Escapement/Proportion sal_uInt16 nOrgAscent; // Ascent inkl. Escapement/Proportion sal_uInt16 nPropWidth; // proportional width + bool smallCapsPercentage66; inline SwSubFont() : aSize(0,0) - { pMagic = NULL; nFntIndex = nOrgHeight = nOrgAscent = 0; nPropWidth =100; } + { pMagic = NULL; nFntIndex = nOrgHeight = nOrgAscent = 0; nPropWidth =100; smallCapsPercentage66 = false; } sal_uInt16 CalcEscAscent( const sal_uInt16 nOldAscent ) const; sal_uInt16 CalcEscHeight( const sal_uInt16 nOldHeight, diff --git a/sw/source/core/txtnode/fntcap.cxx b/sw/source/core/txtnode/fntcap.cxx index 5696984a7dce..98337825271b 100644 --- a/sw/source/core/txtnode/fntcap.cxx +++ b/sw/source/core/txtnode/fntcap.cxx @@ -622,8 +622,13 @@ void SwSubFont::DoOnCapitals( SwDoCapitals &rDo ) else pBigFont = pLastFont; - // Hier entsteht der Kleinbuchstabenfont: - aFont.SetProportion( (aFont.GetPropr() * SMALL_CAPS_PERCENTAGE ) / 100L ); + // Older LO versions had 66 as the small caps percentage size, later changed to 80, + // therefore a backwards compatibility option is kept (otherwise layout is changed). + // NOTE: There are more uses of SMALL_CAPS_PERCENTAGE in editeng, but it seems they + // do not matter for Writer (and if they did it'd be pretty ugly to propagate + // the option there). + int smallCapsPercentage = smallCapsPercentage66 ? 66 : SMALL_CAPS_PERCENTAGE; + aFont.SetProportion( (aFont.GetPropr() * smallCapsPercentage ) / 100L ); pMagic2 = NULL; nIndex2 = 0; SwFntAccess *pSmallFontAccess = new SwFntAccess( pMagic2, nIndex2, &aFont, diff --git a/sw/source/core/txtnode/swfont.cxx b/sw/source/core/txtnode/swfont.cxx index cfa8036ecdce..35216ec19983 100644 --- a/sw/source/core/txtnode/swfont.cxx +++ b/sw/source/core/txtnode/swfont.cxx @@ -560,6 +560,12 @@ SwFont::SwFont( const SwAttrSet* pAttrSet, SetVertical( pAttrSet->GetCharRotate().GetValue() ); else SetVertical( 0 ); + if( pIDocumentSettingAccess && pIDocumentSettingAccess->get( IDocumentSettingAccess::SMALL_CAPS_PERCENTAGE_66 )) + { + aSub[ SW_LATIN ].smallCapsPercentage66 = true; + aSub[ SW_CJK ].smallCapsPercentage66 = true; + aSub[ SW_CTL ].smallCapsPercentage66 = true; + } } SwSubFont& SwSubFont::operator=( const SwSubFont &rFont ) @@ -571,6 +577,7 @@ SwSubFont& SwSubFont::operator=( const SwSubFont &rFont ) nOrgAscent = rFont.nOrgAscent; nPropWidth = rFont.nPropWidth; aSize = rFont.aSize; + smallCapsPercentage66 = rFont.smallCapsPercentage66; return *this; } diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 357aded1322d..497f8bc4f07b 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -1478,6 +1478,8 @@ void DocxAttributeOutput::TableCellProperties( ww8::WW8TableNodeInfoInner::Point // Cell prefered width SwTwips nWidth = GetGridCols( pTableTextNodeInfoInner )->at( pTableTextNodeInfoInner->getCell() ); + if ( pTableTextNodeInfoInner->getCell() ) + nWidth = nWidth - GetGridCols( pTableTextNodeInfoInner )->at( pTableTextNodeInfoInner->getCell() - 1 ); m_pSerializer->singleElementNS( XML_w, XML_tcW, FSNS( XML_w, XML_w ), OString::valueOf( sal_Int32( nWidth ) ).getStr( ), FSNS( XML_w, XML_type ), "dxa", @@ -1712,12 +1714,16 @@ void DocxAttributeOutput::TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t // Write the table grid infos m_pSerializer->startElementNS( XML_w, XML_tblGrid, FSEND ); - + sal_Int32 nPrv = 0; ww8::GridColsPtr pGridCols = GetGridCols( pTableTextNodeInfoInner ); for ( ww8::GridCols::const_iterator it = pGridCols->begin(); it != pGridCols->end(); ++it ) + { + sal_Int32 nWidth = sal_Int32( *it ) - nPrv; m_pSerializer->singleElementNS( XML_w, XML_gridCol, - FSNS( XML_w, XML_w ), OString::valueOf( sal_Int32( *it ) ).getStr( ), + FSNS( XML_w, XML_w ), OString::valueOf( nWidth ).getStr( ), FSEND ); + nPrv = sal_Int32( *it ); + } m_pSerializer->endElementNS( XML_w, XML_tblGrid ); } diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index b0904f059e0b..23e7d80cfe5f 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -1189,6 +1189,7 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC aSet.insert(String("UpdateFromTemplate", RTL_TEXTENCODING_ASCII_US)); aSet.insert(String("PrinterIndependentLayout", RTL_TEXTENCODING_ASCII_US)); aSet.insert(String("PrintEmptyPages", RTL_TEXTENCODING_ASCII_US)); + aSet.insert(String("SmallCapsPercentage66", RTL_TEXTENCODING_ASCII_US)); sal_Int32 nCount = aConfigProps.getLength(); const PropertyValue* pValues = aConfigProps.getConstArray(); @@ -1217,6 +1218,7 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC bool bClipAsCharacterAnchoredWriterFlyFrames( false ); bool bUnixForceZeroExtLeading = false; bool bUseOldPrinterMetrics = false; + bool bSmallCapsPercentage66 = false; OUString sRedlineProtectionKey( RTL_CONSTASCII_USTRINGPARAM( "RedlineProtectionKey" ) ); @@ -1284,6 +1286,8 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC bUnixForceZeroExtLeading = true; else if( pValues->Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("UseOldPrinterMetrics")) ) bUseOldPrinterMetrics = true; + else if( pValues->Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("SmallCapsPercentage66")) ) + bSmallCapsPercentage66 = true; } catch( Exception& ) { @@ -1429,6 +1433,16 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC } // <-- + // Old LO versions had 66 as the value for small caps percentage, later changed to 80. + // In order to keep backwards compatibility, SmallCapsPercentage66 option is written to .odt + // files, and the default for new documents is 'false'. Files without this option + // are considered to be old files, so set the compatibility option too. + if ( !bSmallCapsPercentage66 ) + { + xProps->setPropertyValue( + OUString( RTL_CONSTASCII_USTRINGPARAM("SmallCapsPercentage66") ), makeAny( true ) ); + } + Reference < XTextDocument > xTextDoc( GetModel(), UNO_QUERY ); Reference < XText > xText = xTextDoc->getText(); Reference<XUnoTunnel> xTextTunnel( xText, UNO_QUERY); diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx index 8bb56a4b40f3..6583fbfe319b 100644 --- a/sw/source/ui/frmdlg/column.cxx +++ b/sw/source/ui/frmdlg/column.cxx @@ -449,8 +449,6 @@ SwColumnPage::SwColumnPage(Window *pParent, const SfxItemSet &rSet) aLinePosLbl(this, SW_RES(FT_POSITION)), aLinePosDLB(this, SW_RES(LB_POSITION)), - aVertFL(this, SW_RES(FL_VERT)), - aPropertiesFL( this, SW_RES( FL_PROPERTIES )), aTextDirectionFT( this, SW_RES( FT_TEXTDIRECTION )), aTextDirectionLB( this, SW_RES( LB_TEXTDIRECTION )), @@ -1332,25 +1330,8 @@ void SwColumnPage::SetInSection(sal_Bool bSet) if(!SW_MOD()->GetCTLOptions().IsCTLFontEnabled()) return; - aVertFL.Show(bSet); - aPropertiesFL.Show(bSet); aTextDirectionFT.Show(bSet); aTextDirectionLB.Show(bSet); - if(bSet) - { - //resize line type FixedLine - Point aLtPos = aFLLineType.GetPosPixel(); - Point aPropPos = aPropertiesFL.GetPosPixel(); - Size aSz = aFLLineType.GetSizePixel(); - aSz.Width() = aPropPos.X() - aLtPos.X() - LogicToPixel(Size(8, 8), MAP_APPFONT).Width(); - aFLLineType.SetSizePixel(aSz); - } - else - { - Size aSz = aFLLineType.GetSizePixel(); - aSz.Width() = LogicToPixel(Size(248, 248), MAP_APPFONT).Width(); - aFLLineType.SetSizePixel(aSz); - } } void ColumnValueSet::UserDraw( const UserDrawEvent& rUDEvt ) diff --git a/sw/source/ui/frmdlg/column.hrc b/sw/source/ui/frmdlg/column.hrc index 29c2cc4161eb..9ad30e6673c0 100644 --- a/sw/source/ui/frmdlg/column.hrc +++ b/sw/source/ui/frmdlg/column.hrc @@ -75,10 +75,8 @@ #define PB_CANCEL 56 #define PB_OK 57 #define CB_BALANCECOLS 58 -#define FL_PROPERTIES 59 #define FT_TEXTDIRECTION 60 #define LB_TEXTDIRECTION 61 -#define FL_VERT 62 #define FT_LINEWIDTH 63 #define ED_LINEWIDTH 64 diff --git a/sw/source/ui/frmdlg/column.src b/sw/source/ui/frmdlg/column.src index bfb04c8b939a..89962c3efcbd 100644 --- a/sw/source/ui/frmdlg/column.src +++ b/sw/source/ui/frmdlg/column.src @@ -85,7 +85,7 @@ TabPage TP_COLUMN }; FixedText FT_COLUMN { - Pos = MAP_APPFONT ( 12 , 70 ) ; + Pos = MAP_APPFONT ( 12 , 86 ) ; Size = MAP_APPFONT ( 50 , 8 ) ; Left = TRUE ; Text [ en-US ] = "Column"; @@ -99,28 +99,28 @@ TabPage TP_COLUMN { HelpID = "sw:ImageButton:TP_COLUMN:BTN_DOWN"; Disable = TRUE ; - Pos = MAP_APPFONT ( 62 , 69 ) ; + Pos = MAP_APPFONT ( 62 , 85 ) ; Size = MAP_APPFONT ( 10 , 10 ) ; TabStop = TRUE ; SYMBOL = IMAGEBUTTON_ARROW_LEFT ; }; FixedText FT_1 { - Pos = MAP_APPFONT ( 100 , 71 ) ; + Pos = MAP_APPFONT ( 100 , 87 ) ; Size = MAP_APPFONT ( 10 , 8 ) ; Text = "~1" ; Center = TRUE ; }; FixedText FT_2 { - Pos = MAP_APPFONT ( 150 , 71 ) ; + Pos = MAP_APPFONT ( 150 , 87 ) ; Size = MAP_APPFONT ( 10 , 8 ) ; Text = "~2" ; Center = TRUE ; }; FixedText FT_3 { - Pos = MAP_APPFONT ( 200 , 71 ) ; + Pos = MAP_APPFONT ( 200 , 87 ) ; Size = MAP_APPFONT ( 10 , 8 ) ; Text = "~3" ; Center = TRUE ; @@ -129,14 +129,14 @@ TabPage TP_COLUMN { HelpID = "sw:ImageButton:TP_COLUMN:BTN_UP"; Disable = TRUE ; - Pos = MAP_APPFONT ( 238 , 69 ) ; + Pos = MAP_APPFONT ( 238 , 85 ) ; Size = MAP_APPFONT ( 10 , 10 ) ; TabStop = TRUE ; SYMBOL = IMAGEBUTTON_ARROW_RIGHT ; }; FixedText FT_WIDTH { - Pos = MAP_APPFONT ( 12 , 85 ) ; + Pos = MAP_APPFONT ( 12 , 101 ) ; Size = MAP_APPFONT ( 50 , 8 ) ; Left = TRUE ; Text [ en-US ] = "Width" ; @@ -146,7 +146,7 @@ TabPage TP_COLUMN HelpID = "sw:MetricField:TP_COLUMN:ED_1"; Disable = TRUE ; Border = TRUE ; - Pos = MAP_APPFONT ( 87 , 83 ) ; + Pos = MAP_APPFONT ( 87 , 99 ) ; Size = MAP_APPFONT ( 36 , 12 ) ; TabStop = TRUE ; Left = TRUE ; @@ -165,7 +165,7 @@ TabPage TP_COLUMN HelpID = "sw:MetricField:TP_COLUMN:ED_2"; Disable = TRUE ; Border = TRUE ; - Pos = MAP_APPFONT ( 137 , 83 ) ; + Pos = MAP_APPFONT ( 137 , 99 ) ; Size = MAP_APPFONT ( 36 , 12 ) ; TabStop = TRUE ; Left = TRUE ; @@ -184,7 +184,7 @@ TabPage TP_COLUMN HelpID = "sw:MetricField:TP_COLUMN:ED_3"; Disable = TRUE ; Border = TRUE ; - Pos = MAP_APPFONT ( 187 , 83 ) ; + Pos = MAP_APPFONT ( 187 , 99 ) ; Size = MAP_APPFONT ( 36 , 12 ) ; TabStop = TRUE ; Left = TRUE ; @@ -200,7 +200,7 @@ TabPage TP_COLUMN }; FixedText FT_DIST { - Pos = MAP_APPFONT ( 12 , 101 ) ; + Pos = MAP_APPFONT ( 12 , 117 ) ; Size = MAP_APPFONT ( 50 , 8 ) ; Left = TRUE ; Text [ en-US ] = "Spacing" ; @@ -210,7 +210,7 @@ TabPage TP_COLUMN HelpID = "sw:MetricField:TP_COLUMN:ED_DIST1"; Disable = TRUE ; Border = TRUE ; - Pos = MAP_APPFONT ( 112 , 99 ) ; + Pos = MAP_APPFONT ( 112 , 115 ) ; Size = MAP_APPFONT ( 36 , 12 ) ; TabStop = TRUE ; Left = TRUE ; @@ -229,7 +229,7 @@ TabPage TP_COLUMN HelpID = "sw:MetricField:TP_COLUMN:ED_DIST2"; Disable = TRUE ; Border = TRUE ; - Pos = MAP_APPFONT ( 162 , 99 ) ; + Pos = MAP_APPFONT ( 162 , 115 ) ; Size = MAP_APPFONT ( 36 , 12 ) ; TabStop = TRUE ; Left = TRUE ; @@ -246,45 +246,45 @@ TabPage TP_COLUMN CheckBox CB_AUTO_WIDTH { HelpID = "sw:CheckBox:TP_COLUMN:CB_AUTO_WIDTH"; - Pos = MAP_APPFONT ( 87 , 115 ) ; + Pos = MAP_APPFONT ( 87 , 131 ) ; Size = MAP_APPFONT ( 100 , 10 ) ; Text [ en-US ] = "Auto~Width" ; TabStop = TRUE ; }; FixedLine FL_LAYOUT { - Pos = MAP_APPFONT ( 6 , 58 ) ; + Pos = MAP_APPFONT ( 6 , 74 ) ; Size = MAP_APPFONT ( 248 , 8 ) ; Text [ en-US ] = "Width and spacing"; }; FixedText FT_STYLE { - Pos = MAP_APPFONT ( 12 , 140 ) ; - Size = MAP_APPFONT ( 35 , 8 ) ; + Pos = MAP_APPFONT ( 12 , 156 ) ; + Size = MAP_APPFONT ( 30 , 8 ) ; Text [ en-US ] = "St~yle" ; Left = TRUE ; }; ListBox LB_STYLE { HelpID = "sw:ListBox:TP_COLUMN:LB_STYLE"; - Pos = MAP_APPFONT ( 50 , 138 ) ; - Size = MAP_APPFONT ( 60 , 66 ) ; + Pos = MAP_APPFONT ( 45 , 154 ) ; + Size = MAP_APPFONT ( 40 , 66 ) ; TabStop = TRUE ; DropDown = TRUE ; }; FixedText FT_LINEWIDTH { - Pos = MAP_APPFONT ( 12 , 156 ) ; - Size = MAP_APPFONT ( 35 , 8 ) ; + Pos = MAP_APPFONT ( 12 , 172 ) ; + Size = MAP_APPFONT ( 30 , 8 ) ; Text [ en-US ] = "~Width" ; Left = TRUE ; }; MetricField ED_LINEWIDTH { Border = TRUE ; - Pos = MAP_APPFONT ( 50 , 154 ) ; - Size = MAP_APPFONT ( 60 , 12 ) ; + Pos = MAP_APPFONT ( 45 , 170 ) ; + Size = MAP_APPFONT ( 40 , 12 ) ; TabStop = TRUE ; Spin = TRUE ; Repeat = TRUE ; @@ -298,15 +298,15 @@ TabPage TP_COLUMN }; FixedText FT_COLOR { - Pos = MAP_APPFONT ( 12 , 172 ) ; - Size = MAP_APPFONT ( 35 , 8 ) ; + Pos = MAP_APPFONT ( 165 , 156 ) ; + Size = MAP_APPFONT ( 25 , 8 ) ; Text [ en-US ] = "~Color" ; Left = TRUE ; }; ListBox LB_COLOR { Border = TRUE ; - Pos = MAP_APPFONT ( 50 , 170 ) ; + Pos = MAP_APPFONT ( 193 , 154 ) ; Size = MAP_APPFONT ( 60 , 68 ) ; DropDown = TRUE ; DDExtraWidth = TRUE ; @@ -314,8 +314,8 @@ TabPage TP_COLUMN }; FixedText FT_HEIGHT { - Pos = MAP_APPFONT ( 122 , 140 ) ; - Size = MAP_APPFONT ( 35 , 8 ) ; + Pos = MAP_APPFONT ( 91 , 156 ) ; + Size = MAP_APPFONT ( 30 , 8 ) ; Text [ en-US ] = "H~eight" ; Left = TRUE ; }; @@ -323,8 +323,8 @@ TabPage TP_COLUMN { HelpID = "sw:MetricField:TP_COLUMN:ED_HEIGHT"; Border = TRUE ; - Pos = MAP_APPFONT ( 160 , 138 ) ; - Size = MAP_APPFONT ( 60 , 12 ) ; + Pos = MAP_APPFONT ( 124 , 154 ) ; + Size = MAP_APPFONT ( 35 , 12 ) ; TabStop = TRUE ; Left = TRUE ; Repeat = TRUE ; @@ -339,16 +339,16 @@ TabPage TP_COLUMN }; FixedText FT_POSITION { - Pos = MAP_APPFONT ( 122 , 156 ) ; - Size = MAP_APPFONT ( 35 , 8 ) ; + Pos = MAP_APPFONT ( 91 , 172 ) ; + Size = MAP_APPFONT ( 30 , 8 ) ; Left = TRUE ; Text [ en-US ] = "~Position" ; }; ListBox LB_POSITION { HelpID = "sw:ListBox:TP_COLUMN:LB_POSITION"; - Pos = MAP_APPFONT ( 160 , 154 ) ; - Size = MAP_APPFONT ( 60 , 40 ) ; + Pos = MAP_APPFONT ( 124 , 170 ) ; + Size = MAP_APPFONT ( 35 , 40 ) ; TabStop = TRUE ; DropDown = TRUE ; StringList [ en-US ] = @@ -360,28 +360,14 @@ TabPage TP_COLUMN }; FixedLine FL_LINETYPE { - Pos = MAP_APPFONT ( 6 , 127 ) ; + Pos = MAP_APPFONT ( 6 , 143 ) ; Size = MAP_APPFONT ( 248 , 8 ) ; Text [ en-US ] = "Separator line" ; }; - FixedLine FL_VERT - { - Pos = MAP_APPFONT ( 116 , 138 ) ; - Size = MAP_APPFONT ( 4 , 43 ) ; - Hide = TRUE ; - Vert = TRUE; - }; - FixedLine FL_PROPERTIES - { - Pos = MAP_APPFONT ( 121 , 127 ) ; - Size = MAP_APPFONT ( 133 , 8 ) ; - Hide = TRUE ; - Text [ en-US ] = "Properties"; - }; FixedText FT_TEXTDIRECTION { - Pos = MAP_APPFONT ( 127 , 138 ) ; - Size = MAP_APPFONT ( 127 , 8 ) ; + Pos = MAP_APPFONT ( 12 , 60 ) ; + Size = MAP_APPFONT ( 60 , 8 ) ; Hide = TRUE ; Text [ en-US ] = "Text ~direction"; }; @@ -389,8 +375,8 @@ TabPage TP_COLUMN { HelpID = "sw:ListBox:TP_COLUMN:LB_TEXTDIRECTION"; Border = TRUE ; - Pos = MAP_APPFONT ( 127 , 149 ) ; - Size = MAP_APPFONT ( 127 , 50 ) ; + Pos = MAP_APPFONT ( 75 , 58 ) ; + Size = MAP_APPFONT ( 150 , 50 ) ; DropDown = TRUE ; Hide = TRUE ; StringList [ en-US ] = diff --git a/sw/source/ui/inc/column.hxx b/sw/source/ui/inc/column.hxx index 183bb98ff602..612c21f8db61 100644 --- a/sw/source/ui/inc/column.hxx +++ b/sw/source/ui/inc/column.hxx @@ -139,8 +139,6 @@ class SwColumnPage : public SfxTabPage FixedText aLinePosLbl; ListBox aLinePosDLB; - FixedLine aVertFL; - FixedLine aPropertiesFL; FixedText aTextDirectionFT; ListBox aTextDirectionLB; diff --git a/sw/source/ui/uno/SwXDocumentSettings.cxx b/sw/source/ui/uno/SwXDocumentSettings.cxx index a9d2f0b9b9c0..3fb2202b2a16 100644 --- a/sw/source/ui/uno/SwXDocumentSettings.cxx +++ b/sw/source/ui/uno/SwXDocumentSettings.cxx @@ -122,7 +122,8 @@ enum SwDocumentSettingsPropertyHandles HANDLE_MODIFYPASSWORDINFO, HANDLE_MATH_BASELINE_ALIGNMENT, HANDLE_INVERT_BORDER_SPACING, - HANDLE_COLLAPSE_EMPTY_CELL_PARA + HANDLE_COLLAPSE_EMPTY_CELL_PARA, + HANDLE_SMALL_CAPS_PERCENTAGE_66 }; MasterPropertySetInfo * lcl_createSettingsInfo() @@ -180,6 +181,7 @@ MasterPropertySetInfo * lcl_createSettingsInfo() { RTL_CONSTASCII_STRINGPARAM("MathBaselineAlignment"), HANDLE_MATH_BASELINE_ALIGNMENT, CPPUTYPE_BOOLEAN, 0, 0}, { RTL_CONSTASCII_STRINGPARAM("InvertBorderSpacing"), HANDLE_INVERT_BORDER_SPACING, CPPUTYPE_BOOLEAN, 0, 0}, { RTL_CONSTASCII_STRINGPARAM("CollapseEmptyCellPara"), HANDLE_COLLAPSE_EMPTY_CELL_PARA, CPPUTYPE_BOOLEAN, 0, 0}, + { RTL_CONSTASCII_STRINGPARAM("SmallCapsPercentage66"), HANDLE_SMALL_CAPS_PERCENTAGE_66, CPPUTYPE_BOOLEAN, 0, 0}, /* * As OS said, we don't have a view when we need to set this, so I have to * find another solution before adding them to this property set - MTG @@ -705,6 +707,12 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf mpDoc->set(IDocumentSettingAccess::COLLAPSE_EMPTY_CELL_PARA, bTmp); } break; + case HANDLE_SMALL_CAPS_PERCENTAGE_66: + { + sal_Bool bTmp = *(sal_Bool*)rValue.getValue(); + mpDoc->set(IDocumentSettingAccess::SMALL_CAPS_PERCENTAGE_66, bTmp); + } + break; default: throw UnknownPropertyException(); } @@ -1050,6 +1058,12 @@ void SwXDocumentSettings::_getSingleValue( const comphelper::PropertyInfo & rInf rValue.setValue( &bTmp, ::getBooleanCppuType() ); } break; + case HANDLE_SMALL_CAPS_PERCENTAGE_66: + { + sal_Bool bTmp = mpDoc->get( IDocumentSettingAccess::SMALL_CAPS_PERCENTAGE_66 ); + rValue.setValue( &bTmp, ::getBooleanCppuType() ); + } + break; default: throw UnknownPropertyException(); } |