diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-12-24 10:00:15 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-19 17:56:23 +0100 |
commit | 89d3e8a8424ce44404a554812e5136452bb8cb60 (patch) | |
tree | f6aa43366754ff0efa23d68cdecad94d2771a262 /sc/source/filter/excel/xistyle.cxx | |
parent | e881f7d231cccb7b74ce69394e0644088ded9c2b (diff) |
Switching the order of the SetLinesWidth arguments
Diffstat (limited to 'sc/source/filter/excel/xistyle.cxx')
-rw-r--r-- | sc/source/filter/excel/xistyle.cxx | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index 290ce0eebdcf..bac3fe6d6eb3 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -913,21 +913,21 @@ bool lclConvertBorderLine( SvxBorderLine& rLine, const XclImpPalette& rPalette, { static const sal_uInt16 ppnLineParam[][ 4 ] = { - // outer width, inner width, distance type - { 0, 0, 0, SOLID }, // 0 = none - { XLS_LINE_WIDTH_THIN, 0, 0, SOLID }, // 1 = thin - { XLS_LINE_WIDTH_MEDIUM, 0, 0, SOLID }, // 2 = medium - { XLS_LINE_WIDTH_THIN, 0, 0, DASHED }, // 3 = dashed - { XLS_LINE_WIDTH_THIN, 0, 0, DOTTED }, // 4 = dotted - { XLS_LINE_WIDTH_THICK, 0, 0, SOLID }, // 5 = thick - { XLS_LINE_WIDTH_THIN, XLS_LINE_WIDTH_THIN, XLS_LINE_WIDTH_THIN, SOLID }, // 6 = double - { XLS_LINE_WIDTH_HAIR, 0, 0, SOLID }, // 7 = hair - { XLS_LINE_WIDTH_MEDIUM, 0, 0, DASHED }, // 8 = med dash - { XLS_LINE_WIDTH_THIN, 0, 0, SOLID }, // 9 = thin dashdot - { XLS_LINE_WIDTH_MEDIUM, 0, 0, SOLID }, // A = med dashdot - { XLS_LINE_WIDTH_THIN, 0, 0, SOLID }, // B = thin dashdotdot - { XLS_LINE_WIDTH_MEDIUM, 0, 0, SOLID }, // C = med dashdotdot - { XLS_LINE_WIDTH_MEDIUM, 0, 0, SOLID } // D = med slant dashdot + // outer width, type + { 0, SOLID }, // 0 = none + { XLS_LINE_WIDTH_THIN, SOLID }, // 1 = thin + { XLS_LINE_WIDTH_MEDIUM, SOLID }, // 2 = medium + { XLS_LINE_WIDTH_THIN, DASHED }, // 3 = dashed + { XLS_LINE_WIDTH_THIN, DOTTED }, // 4 = dotted + { XLS_LINE_WIDTH_THICK, SOLID }, // 5 = thick + { XLS_LINE_WIDTH_THIN, DOUBLE }, // 6 = double + { XLS_LINE_WIDTH_HAIR, SOLID }, // 7 = hair + { XLS_LINE_WIDTH_MEDIUM, DASHED }, // 8 = med dash + { XLS_LINE_WIDTH_THIN, SOLID }, // 9 = thin dashdot + { XLS_LINE_WIDTH_MEDIUM, SOLID }, // A = med dashdot + { XLS_LINE_WIDTH_THIN, SOLID }, // B = thin dashdotdot + { XLS_LINE_WIDTH_MEDIUM, SOLID }, // C = med dashdotdot + { XLS_LINE_WIDTH_MEDIUM, SOLID } // D = med slant dashdot }; if( nXclLine == EXC_LINE_NONE ) @@ -936,10 +936,8 @@ bool lclConvertBorderLine( SvxBorderLine& rLine, const XclImpPalette& rPalette, nXclLine = EXC_LINE_THIN; rLine.SetColor( rPalette.GetColor( nXclColor ) ); - rLine.SetOutWidth( ppnLineParam[ nXclLine ][ 0 ] ); - rLine.SetInWidth( ppnLineParam[ nXclLine ][ 1 ] ); - rLine.SetDistance( ppnLineParam[ nXclLine ][ 2 ] ); - rLine.SetStyle( (SvxBorderStyle)ppnLineParam[ nXclLine ][ 3 ] ); + rLine.SetWidth( ppnLineParam[ nXclLine ][ 0 ] ); + rLine.SetStyle( (SvxBorderStyle)ppnLineParam[ nXclLine ][ 1 ] ); return true; } |