[ooo-build-commit] .: patches/dev300

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Wed Oct 6 14:57:24 PDT 2010


 patches/dev300/apply                           |    2 
 patches/dev300/border-types-dotted-dashed.diff | 4390 -------------------------
 2 files changed, 4392 deletions(-)

New commits:
commit e9d0369ac98127a28076253eee6e4aef2211a4b7
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Wed Oct 6 23:56:59 2010 +0200

    border-types-dotted-dashed.diff: applied to git repos

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 1c75dce..a6f04ba 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -2703,8 +2703,6 @@ toolbar-decorations-vcl-nwf.diff
 
 [ BorderTypes ]
 SectionOwner => cbosdo
-#Only adds the dotted / dashed lines
-border-types-dotted-dashed.diff, fate#307731, fate 307730
 
 #Adds some more types, and more of unifying the drawing methods
 #FIXME: Incomplete, not to be included in 3.2.1
diff --git a/patches/dev300/border-types-dotted-dashed.diff b/patches/dev300/border-types-dotted-dashed.diff
deleted file mode 100644
index ebd8f7c..0000000
--- a/patches/dev300/border-types-dotted-dashed.diff
+++ /dev/null
@@ -1,4390 +0,0 @@
-diff --git cui/source/tabpages/border.cxx cui/source/tabpages/border.cxx
-index 48aac82..e1ac8fc 100644
---- cui/source/tabpages/border.cxx
-+++ cui/source/tabpages/border.cxx
-@@ -565,9 +565,10 @@ void SvxBorderTabPage::Reset( const SfxItemSet& rSet )
-     {
-         // Do all visible lines show the same line widths?
-         USHORT nPrim, nDist, nSecn;
--        bool bWidthEq = aFrameSel.GetVisibleWidth( nPrim, nDist, nSecn );
-+        SvxBorderStyle nStyle;
-+        bool bWidthEq = aFrameSel.GetVisibleWidth( nPrim, nDist, nSecn, nStyle );
-         if( bWidthEq )
--            aLbLineStyle.SelectEntry( nPrim * 100, nSecn * 100, nDist * 100 );
-+            aLbLineStyle.SelectEntry( nPrim * 100, nSecn * 100, nDist * 100, nStyle );
-         else
-             aLbLineStyle.SelectEntryPos( 1 );
- 
-@@ -932,13 +933,31 @@ IMPL_LINK( SvxBorderTabPage, SelColHdl_Impl, ListBox *, pLb )
- 
- // -----------------------------------------------------------------------
- 
-+SvxBorderStyle lcl_getBorderStyle( USHORT nStyle )
-+{
-+    SvxBorderStyle nResult = SOLID;
-+    switch ( nStyle )
-+    {
-+        case STYLE_DOTTED:
-+            nResult = DOTTED;
-+            break;
-+        case STYLE_DASHED:
-+            nResult = DASHED;
-+            break;
-+        default:
-+            nResult = SOLID;
-+    }
-+    return nResult;
-+}
-+
- IMPL_LINK( SvxBorderTabPage, SelStyleHdl_Impl, ListBox *, pLb )
- {
-     if ( pLb == &aLbLineStyle )
-         aFrameSel.SetStyleToSelection(
-             static_cast< USHORT >( aLbLineStyle.GetSelectEntryLine1() / 100 ),
-             static_cast< USHORT >( aLbLineStyle.GetSelectEntryDistance() / 100 ),
--            static_cast< USHORT >( aLbLineStyle.GetSelectEntryLine2() / 100 ) );
-+            static_cast< USHORT >( aLbLineStyle.GetSelectEntryLine2() / 100 ),
-+            lcl_getBorderStyle( aLbLineStyle.GetSelectEntryStyle() ) );
- 
-     return 0;
- }
-@@ -1102,6 +1121,8 @@ void SvxBorderTabPage::FillLineListBox_Impl()
- 
-     aLbLineStyle.InsertEntry( LINE_WIDTH0 );
-     aLbLineStyle.InsertEntry( LINE_WIDTH5 );
-+    aLbLineStyle.InsertEntry( LINE_WIDTH5, 0, 0, STYLE_DOTTED );
-+    aLbLineStyle.InsertEntry( LINE_WIDTH5, 0, 0, STYLE_DASHED );
-     aLbLineStyle.InsertEntry( LINE_WIDTH1 );
-     aLbLineStyle.InsertEntry( LINE_WIDTH2 );
-     aLbLineStyle.InsertEntry( LINE_WIDTH3 );
-diff --git drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx
-index 07a1f8b..8a13430 100644
---- drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx
-+++ drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx
-@@ -66,6 +66,7 @@ namespace drawinglayer
- 
-             /// the line color
-             basegfx::BColor									maRGBColor;
-+            short                                           mnStyle;
- 
-             /// bitfield
-             /// flags to influence inside/outside creation
-@@ -131,7 +132,8 @@ namespace drawinglayer
-                 double fExtendOuterEnd,
-                 bool bCreateInside,
-                 bool bCreateOutside,
--                const basegfx::BColor& rRGBColor);
-+                const basegfx::BColor& rRGBColor,
-+                const short nStyle );
- 
-             /// data read access
-             const basegfx::B2DPoint& getStart() const { return maStart; }
-@@ -145,7 +147,8 @@ namespace drawinglayer
-             double getExtendOuterEnd() const { return mfExtendOuterEnd; }
-             bool getCreateInside() const { return mbCreateInside; }
-             bool getCreateOutside() const { return mbCreateOutside; }
--            const basegfx::BColor& getRGBColor() const { return maRGBColor; }
-+            const basegfx::BColor& getRGBColor () const { return maRGBColor; }
-+            short getStyle () const { return mnStyle; }
- 
-             /// compare operator
-             virtual bool operator==(const BasePrimitive2D& rPrimitive) const;
-diff --git drawinglayer/source/primitive2d/borderlineprimitive2d.cxx drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
-index 088f9bb..5dafced 100644
---- drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
-+++ drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
-@@ -33,6 +33,7 @@
- #include <basegfx/polygon/b2dpolygon.hxx>
- #include <drawinglayer/primitive2d/polygonprimitive2d.hxx>
- #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx>
-+#include <svtools/borderhelper.hxx>
- #include <numeric>
- 
- //////////////////////////////////////////////////////////////////////////////
-@@ -157,14 +158,29 @@ namespace drawinglayer
-                             // create filled polygon primitive
-                             const basegfx::B2DVector aLineWidthOffset((getCorrectedLeftWidth() * 0.5) * aPerpendicular);
-                             
--                            aPolygon.append(aTmpStart + aLineWidthOffset);
--                            aPolygon.append(aTmpEnd + aLineWidthOffset);
--                            aPolygon.append(aTmpEnd - aLineWidthOffset);
--                            aPolygon.append(aTmpStart - aLineWidthOffset);
--                            aPolygon.setClosed(true);
-+                            aPolygon.append( aTmpStart );
-+                            aPolygon.append( aTmpEnd );
-+
-+                            basegfx::B2DPolyPolygon aDashed = svtools::ApplyLineDashing(
-+                                   aPolygon, getStyle(), MAP_100TH_MM );
-+                            for (sal_uInt32 i = 0; i < aDashed.count(); i++ )
-+                            {
-+                                basegfx::B2DPolygon aDash = aDashed.getB2DPolygon( i );
-+                                basegfx::B2DPoint aDashStart = aDash.getB2DPoint( 0 );
-+                                basegfx::B2DPoint aDashEnd = aDash.getB2DPoint( aDash.count() - 1 );
-+
-+                                basegfx::B2DPolygon aDashPolygon;
-+                                aDashPolygon.append( aDashStart + aLineWidthOffset );
-+                                aDashPolygon.append( aDashEnd + aLineWidthOffset );
-+                                aDashPolygon.append( aDashEnd - aLineWidthOffset );
-+                                aDashPolygon.append( aDashStart - aLineWidthOffset );
-+                                aDashPolygon.setClosed( true );
-+
-+                                aDashed.setB2DPolygon( i, aDashPolygon );
-+                            }
- 
-                             xRetval[0] = Primitive2DReference(new PolyPolygonColorPrimitive2D(
--                                basegfx::B2DPolyPolygon(aPolygon), getRGBColor()));
-+                                    basegfx::B2DPolyPolygon( aDashed ), getRGBColor()));
-                         }
-                     }
-                 }
-@@ -185,7 +201,8 @@ namespace drawinglayer
-             double fExtendOuterEnd,
-             bool bCreateInside,
-             bool bCreateOutside,
--            const basegfx::BColor& rRGBColor)
-+            const basegfx::BColor& rRGBColor,
-+            const short nStyle)
-         :	BufferedDecompositionPrimitive2D(),
-             maStart(rStart),
-             maEnd(rEnd),
-@@ -197,6 +214,7 @@ namespace drawinglayer
-             mfExtendOuterStart(fExtendOuterStart),
-             mfExtendOuterEnd(fExtendOuterEnd),
-             maRGBColor(rRGBColor),
-+            mnStyle(nStyle),
-             mbCreateInside(bCreateInside),
-             mbCreateOutside(bCreateOutside)
-         {
-@@ -219,7 +237,8 @@ namespace drawinglayer
-                     && getExtendOuterEnd() == rCompare.getExtendOuterEnd()
-                     && getCreateInside() == rCompare.getCreateInside()
-                     && getCreateOutside() == rCompare.getCreateOutside()
--                    && getRGBColor() == rCompare.getRGBColor());
-+                    && getRGBColor() == rCompare.getRGBColor()
-+                    && getStyle() == rCompare.getStyle());
-             }
- 
-             return false;
-diff --git editeng/inc/editeng/borderline.hxx editeng/inc/editeng/borderline.hxx
-index 78d173b..88458fa 100644
---- editeng/inc/editeng/borderline.hxx
-+++ editeng/inc/editeng/borderline.hxx
-@@ -90,6 +90,13 @@
- 
- // ============================================================================
- 
-+enum SvxBorderStyle
-+{
-+    SOLID,
-+    DOTTED,
-+    DASHED
-+};
-+
- class EDITENG_DLLPUBLIC SvxBorderLine
- {
- protected:
-@@ -97,9 +104,11 @@ protected:
-     USHORT nOutWidth;
-     USHORT nInWidth;
-     USHORT nDistance;
-+    SvxBorderStyle   m_nStyle;
- 
- public:
--    SvxBorderLine( const Color *pCol = 0, USHORT nOut = 0, USHORT nIn = 0, USHORT nDist = 0 );
-+    SvxBorderLine( const Color *pCol = 0, USHORT nOut = 0, USHORT nIn = 0, USHORT nDist = 0,
-+           SvxBorderStyle nStyle = SOLID );
-     SvxBorderLine( const SvxBorderLine& r );
- 
-     SvxBorderLine& operator=( const SvxBorderLine& r );
-@@ -109,10 +118,13 @@ public:
-     USHORT 			GetInWidth() const { return nInWidth; }
-     USHORT 			GetDistance() const { return nDistance; }
- 
-+    SvxBorderStyle  GetStyle() const { return m_nStyle; }
-+
-     void 			SetColor( const Color &rColor ) { aColor = rColor; }
-     void			SetOutWidth( USHORT nNew ) { nOutWidth = nNew; }
-     void			SetInWidth( USHORT nNew ) { nInWidth = nNew;  }
-     void			SetDistance( USHORT nNew ) { nDistance = nNew; }
-+    void            SetStyle( SvxBorderStyle nNew ) { m_nStyle = nNew; }
-     void			ScaleMetrics( long nMult, long nDiv );
- 
-     BOOL			operator==( const SvxBorderLine &rCmp ) const;
-diff --git editeng/inc/editeng/boxitem.hxx editeng/inc/editeng/boxitem.hxx
-index d85f7c2..03671cd 100644
---- editeng/inc/editeng/boxitem.hxx
-+++ editeng/inc/editeng/boxitem.hxx
-@@ -30,7 +30,7 @@
- #include <svl/poolitem.hxx>
- #include <editeng/borderline.hxx>
- #include <editeng/editengdllapi.h>
--#include <com/sun/star/table/BorderLine.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- 
- namespace rtl { class OUString; }
- 
-@@ -106,7 +106,7 @@ public:
-         //JP 09.06.99: bIgnoreLine = TRUE -> Distance auch returnen, wenn
-         //							keine Line gesetzt ist
-     USHORT 	CalcLineSpace( USHORT nLine, BOOL bIgnoreLine = FALSE ) const;
--    static com::sun::star::table::BorderLine SvxLineToLine( const SvxBorderLine* pLine, sal_Bool bConvert );
-+    static com::sun::star::table::BorderLine2 SvxLineToLine( const SvxBorderLine* pLine, sal_Bool bConvert );
-     static sal_Bool LineToSvxLine(const ::com::sun::star::table::BorderLine& rLine, SvxBorderLine& rSvxLine, sal_Bool bConvert);
- };
- 
-diff --git editeng/inc/editeng/memberids.hrc editeng/inc/editeng/memberids.hrc
-index e9cb0b5..0a4ac48 100644
---- editeng/inc/editeng/memberids.hrc
-+++ editeng/inc/editeng/memberids.hrc
-@@ -41,6 +41,8 @@
- #define MID_OUTER_WIDTH         0x41
- #define MID_INNER_WIDTH         0x35
- #define MID_LINESPACE           0x3b
-+#define MID_LINE_STYLE          0x90
-+
- 
- //NameOrIndex
- #define MID_NAME				16
-diff --git editeng/source/items/frmitems.cxx editeng/source/items/frmitems.cxx
-index 00a7cfb..b335b0a 100644
---- editeng/source/items/frmitems.cxx
-+++ editeng/source/items/frmitems.cxx
-@@ -40,6 +40,7 @@
- #include <com/sun/star/table/TableOrientation.hpp>
- #include <com/sun/star/util/SortField.hpp>
- #include <com/sun/star/util/SortFieldType.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- #include <com/sun/star/table/CellOrientation.hpp>
- #include <com/sun/star/table/CellAddress.hpp>
- #include <com/sun/star/style/PageStyleLayout.hpp>
-@@ -1565,10 +1566,12 @@ void SvxShadowItem::SetEnumValue( sal_uInt16 nVal )
- 
- // class SvxBorderLine  --------------------------------------------------
- 
--SvxBorderLine::SvxBorderLine( const Color *pCol, sal_uInt16 nOut, sal_uInt16 nIn, sal_uInt16 nDist )
-+SvxBorderLine::SvxBorderLine( const Color *pCol, sal_uInt16 nOut, sal_uInt16 nIn, sal_uInt16 nDist,
-+       SvxBorderStyle nStyle )
- : nOutWidth( nOut )
- , nInWidth ( nIn )
- , nDistance( nDist )
-+, m_nStyle( nStyle )
- {
-     if ( pCol )
-         aColor = *pCol;
-@@ -1589,6 +1592,7 @@ SvxBorderLine& SvxBorderLine::operator=( const SvxBorderLine& r )
-     nOutWidth = r.nOutWidth;
-     nInWidth = r.nInWidth;
-     nDistance = r.nDistance;
-+    m_nStyle = r.m_nStyle;
-     return *this;
- }
- 
-@@ -1608,7 +1612,8 @@ sal_Bool SvxBorderLine::operator==( const SvxBorderLine& rCmp ) const
-     return ( ( aColor    == rCmp.GetColor() ) 	 &&
-              ( nInWidth  == rCmp.GetInWidth() )  &&
-              ( nOutWidth == rCmp.GetOutWidth() ) &&
--             ( nDistance == rCmp.GetDistance() ) );
-+             ( nDistance == rCmp.GetDistance() ) &&
-+             ( m_nStyle == rCmp.GetStyle() ) );
- }
- 
- // -----------------------------------------------------------------------
-@@ -1825,15 +1830,16 @@ int SvxBoxItem::operator==( const SfxPoolItem& rAttr ) const
- }
- 
- // -----------------------------------------------------------------------
--table::BorderLine SvxBoxItem::SvxLineToLine(const SvxBorderLine* pLine, sal_Bool bConvert)
-+table::BorderLine2 SvxBoxItem::SvxLineToLine(const SvxBorderLine* pLine, sal_Bool bConvert)
- {
--    table::BorderLine aLine;
-+    table::BorderLine2 aLine;
-     if(pLine)
-     {
-         aLine.Color			 = pLine->GetColor().GetColor() ;
-         aLine.InnerLineWidth = sal_uInt16( bConvert ? TWIP_TO_MM100_UNSIGNED(pLine->GetInWidth() ): pLine->GetInWidth() );
-         aLine.OuterLineWidth = sal_uInt16( bConvert ? TWIP_TO_MM100_UNSIGNED(pLine->GetOutWidth()): pLine->GetOutWidth() );
-         aLine.LineDistance   = sal_uInt16( bConvert ? TWIP_TO_MM100_UNSIGNED(pLine->GetDistance()): pLine->GetDistance() );
-+        aLine.LineStyle      = pLine->GetStyle( );
-     }
-     else
-         aLine.Color			 = aLine.InnerLineWidth = aLine.OuterLineWidth = aLine.LineDistance	 = 0;
-@@ -1843,7 +1849,7 @@ table::BorderLine SvxBoxItem::SvxLineToLine(const SvxBorderLine* pLine, sal_Bool
- bool SvxBoxItem::QueryValue( uno::Any& rVal, BYTE nMemberId  ) const
- {
-     sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
--    table::BorderLine aRetLine;
-+    table::BorderLine2 aRetLine;
-     sal_uInt16 nDist = 0;
-     sal_Bool bDistMember = sal_False;
-     nMemberId &= ~CONVERT_TWIPS;
-@@ -2780,7 +2786,7 @@ void SvxBoxInfoItem::ResetFlags()
- bool SvxBoxInfoItem::QueryValue( uno::Any& rVal, BYTE nMemberId  ) const
- {
-     sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
--    table::BorderLine aRetLine;
-+    table::BorderLine2 aRetLine;
-     sal_Int16 nVal=0;
-     sal_Bool bIntMember = sal_False;
-     nMemberId &= ~CONVERT_TWIPS;
-@@ -3321,6 +3327,7 @@ sal_Bool SvxLineItem::PutValue( const uno::Any& rVal, BYTE nMemId )
-             case MID_OUTER_WIDTH:   pLine->SetOutWidth((USHORT)nVal);   break;
-             case MID_INNER_WIDTH:   pLine->SetInWidth((USHORT)nVal);   break;
-             case MID_DISTANCE:      pLine->SetDistance((USHORT)nVal);   break;
-+            case MID_LINE_STYLE:    pLine->SetStyle((SvxBorderStyle)nVal); break;
-             default:
-                 DBG_ERROR( "Wrong MemberId" );
-                 return sal_False;
-diff --git editeng/source/rtf/rtfitem.cxx editeng/source/rtf/rtfitem.cxx
-index ce2adc3..4334b0f 100644
---- editeng/source/rtf/rtfitem.cxx
-+++ editeng/source/rtf/rtfitem.cxx
-@@ -1627,10 +1627,15 @@ case RTF_BRDRBAR:			break;
-             }
-             goto SETBORDERLINE;
- 
--        case RTF_BRDRS:
-         case RTF_BRDRDOT:
--        case RTF_BRDRHAIR:
-+            aBrd.SetStyle( DOTTED );
-+            break;
-         case RTF_BRDRDASH:
-+            aBrd.SetStyle( DASHED );
-+            break;
-+        case RTF_BRDRS:
-+        case RTF_BRDRHAIR:
-+            aBrd.SetStyle( SOLID );
- SETBORDERLINE:
-             SetBorderLine( nBorderTyp, aAttr, aBrd );
-             break;
-diff --git filter/inc/filter/msfilter/msdffimp.hxx filter/inc/filter/msfilter/msdffimp.hxx
-index 67571fb..9d2026e 100644
---- filter/inc/filter/msfilter/msdffimp.hxx
-+++ filter/inc/filter/msfilter/msdffimp.hxx
-@@ -289,6 +289,7 @@ struct MSFILTER_DLLPUBLIC SvxMSDffImportRec
-     ULONG		nShapeId;
-     MSO_SPT		eShapeType;
-     MSO_LineStyle eLineStyle;	// Umrandungs-Arten
-+    MSO_LineDashing eLineDashing;
-     BOOL		bDrawHell		:1;
-     BOOL		bHidden			:1;
-     BOOL		bReplaceByFly	:1;
-diff --git filter/source/msfilter/msdffimp.cxx filter/source/msfilter/msdffimp.cxx
-index 77cb47e..2193be2 100644
---- filter/source/msfilter/msdffimp.cxx
-+++ filter/source/msfilter/msdffimp.cxx
-@@ -6021,6 +6021,10 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
-                             : (MSO_LineStyle)USHRT_MAX;
-         pTextImpRec->eLineStyle = pImpRec->eLineStyle;
- 
-+        pImpRec->eLineDashing = (MSO_LineDashing)GetPropertyValue(
-+                DFF_Prop_lineDashing, mso_lineSolid );
-+        pTextImpRec->eLineDashing = pImpRec->eLineDashing;
-+
-         if( pImpRec->nShapeId )
-         {
-             // Import-Record-Liste ergaenzen
-@@ -8060,6 +8064,7 @@ SvxMSDffImportRec::SvxMSDffImportRec()
-       eShapeType( mso_sptNil )
- {
-       eLineStyle      = mso_lineSimple; // GPF-Bug #66227#
-+      eLineDashing    = mso_lineSolid;
-       bDrawHell       = FALSE;
-       bHidden         = FALSE;
-       bReplaceByFly   = FALSE;
-@@ -8107,6 +8112,7 @@ SvxMSDffImportRec::SvxMSDffImportRec(const SvxMSDffImportRec& rCopy)
-        *pYRelTo = *(rCopy.pYRelTo);
-     }
-     eLineStyle       = rCopy.eLineStyle; // GPF-Bug #66227#
-+    eLineDashing     = rCopy.eLineDashing;
-     bDrawHell        = rCopy.bDrawHell;
-     bHidden          = rCopy.bHidden;
-     bReplaceByFly    = rCopy.bReplaceByFly;
-diff --git filter/source/xslt/export/uof/odf2uof_spreadsheet.xsl filter/source/xslt/export/uof/odf2uof_spreadsheet.xsl
-index 1507305..78a37f9 100644
---- filter/source/xslt/export/uof/odf2uof_spreadsheet.xsl
-+++ filter/source/xslt/export/uof/odf2uof_spreadsheet.xsl
-@@ -4262,7 +4262,7 @@
- 				<xsl:element name="uof:å·¦">
- 					<xsl:attribute name="uof:locID">u0057</xsl:attribute>
- 					<xsl:attribute name="uof:attrList">类型 宽度 边距 颜色 阴影</xsl:attribute>
--					<xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
-+                    <xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dotted'">dotted</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dashed'">dash</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
- 					<xsl:if test="$border!='none'">
- 						<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(substring-before($border,' '),$uofUnit)"/></xsl:attribute>
- 						<xsl:attribute name="uof:颜色"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
-@@ -4274,7 +4274,7 @@
- 				<xsl:element name="uof:上">
- 					<xsl:attribute name="uof:locID">u0058</xsl:attribute>
- 					<xsl:attribute name="uof:attrList">类型 宽度 边距 颜色 阴影</xsl:attribute>
--					<xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
-+                    <xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dotted'">dotted</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dashed'">dash</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
- 					<xsl:if test="$border!='none'">
- 						<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(substring-before($border,' '),$uofUnit)"/></xsl:attribute>
- 						<xsl:attribute name="uof:颜色"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
-@@ -4286,7 +4286,7 @@
- 				<xsl:element name="uof:右">
- 					<xsl:attribute name="uof:locID">u0059</xsl:attribute>
- 					<xsl:attribute name="uof:attrList">类型 宽度 边距 颜色 阴影</xsl:attribute>
--					<xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
-+                    <xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dotted'">dotted</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dashed'">dash</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
- 					<xsl:if test="$border!='none'">
- 						<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(substring-before($border,' '),$uofUnit)"/></xsl:attribute>
- 						<xsl:attribute name="uof:颜色"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
-@@ -4298,7 +4298,7 @@
- 				<xsl:element name="uof:下">
- 					<xsl:attribute name="uof:locID">u0060</xsl:attribute>
- 					<xsl:attribute name="uof:attrList">类型 宽度 边距 颜色 阴影</xsl:attribute>
--					<xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
-+                    <xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dotted'">dotted</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dashed'">dash</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
- 					<xsl:if test="$border!='none'">
- 						<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(substring-before($border,' '),$uofUnit)"/></xsl:attribute>
- 						<xsl:attribute name="uof:颜色"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
-diff --git filter/source/xslt/export/uof/odf2uof_text.xsl filter/source/xslt/export/uof/odf2uof_text.xsl
-index cea93c8..04596c4 100644
---- filter/source/xslt/export/uof/odf2uof_text.xsl
-+++ filter/source/xslt/export/uof/odf2uof_text.xsl
-@@ -3248,7 +3248,7 @@
- 		<xsl:element name="uof:å·¦">
- 			<xsl:attribute name="uof:locID">u0057</xsl:attribute>
- 			<xsl:attribute name="uof:attrList">类型 宽度 边距 颜色 阴影</xsl:attribute>
--			<xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
-+            <xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dashed'">dash</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dotted'">dotted</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
- 			<xsl:if test="$border!='none'">
- 				<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(substring-before($border,' '),substring($ooUnit,1,2))"/></xsl:attribute>
- 				<xsl:attribute name="uof:颜色"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
-@@ -3266,7 +3266,7 @@
- 		<xsl:element name="uof:上">
- 			<xsl:attribute name="uof:locID">u0058</xsl:attribute>
- 			<xsl:attribute name="uof:attrList">类型 宽度 边距 颜色 阴影</xsl:attribute>
--			<xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
-+            <xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dashed'">dash</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dotted'">dotted</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
- 			<xsl:if test="$border!='none'">
- 				<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(substring-before($border,' '),substring($ooUnit,1,2))"/></xsl:attribute>
- 				<xsl:attribute name="uof:颜色"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
-@@ -3284,7 +3284,7 @@
- 		<xsl:element name="uof:右">
- 			<xsl:attribute name="uof:locID">u0059</xsl:attribute>
- 			<xsl:attribute name="uof:attrList">类型 宽度 边距 颜色 阴影</xsl:attribute>
--			<xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
-+            <xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dashed'">dash</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dotted'">dotted</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
- 			<xsl:if test="$border!='none'">
- 				<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(substring-before($border,' '),substring($ooUnit,1,2))"/></xsl:attribute>
- 				<xsl:attribute name="uof:颜色"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
-@@ -3302,7 +3302,7 @@
- 		<xsl:element name="uof:下">
- 			<xsl:attribute name="uof:locID">u0060</xsl:attribute>
- 			<xsl:attribute name="uof:attrList">类型 宽度 边距 颜色 阴影</xsl:attribute>
--			<xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
-+            <xsl:attribute name="uof:类型"><xsl:choose><xsl:when test="$border!='none'"><xsl:choose><xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='double'">double</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dashed'">dash</xsl:when><xsl:when test="substring-before(substring-after($border,' '),' ')='dotted'">dotted</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
- 			<xsl:if test="$border!='none'">
- 				<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(substring-before($border,' '),substring($ooUnit,1,2))"/></xsl:attribute>
- 				<xsl:attribute name="uof:颜色"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
-diff --git offapi/com/sun/star/table/BorderLine.idl offapi/com/sun/star/table/BorderLine.idl
-index 96d1a68..0ecd6da 100644
---- offapi/com/sun/star/table/BorderLine.idl
-+++ offapi/com/sun/star/table/BorderLine.idl
-@@ -71,7 +71,6 @@ published struct BorderLine
-         double line (in 1/100 mm).
-      */
-     short LineDistance;
--
- };
- 
- //=============================================================================
-diff --git offapi/com/sun/star/table/BorderLine2.idl offapi/com/sun/star/table/BorderLine2.idl
-new file mode 100644
-index 0000000..4627305
---- /dev/null
-+++ offapi/com/sun/star/table/BorderLine2.idl
-@@ -0,0 +1,55 @@
-+/*************************************************************************
-+ *
-+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-+ *
-+ * Copyright 2008 by Sun Microsystems, Inc.
-+ *
-+ * OpenOffice.org - a multi-platform office productivity suite
-+ *
-+ * $RCSfile: BorderLine.idl,v $
-+ * $Revision: 1.8 $
-+ *
-+ * This file is part of OpenOffice.org.
-+ *
-+ * OpenOffice.org is free software: you can redistribute it and/or modify
-+ * it under the terms of the GNU Lesser General Public License version 3
-+ * only, as published by the Free Software Foundation.
-+ *
-+ * OpenOffice.org is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+ * GNU Lesser General Public License version 3 for more details
-+ * (a copy is included in the LICENSE file that accompanied this code).
-+ *
-+ * You should have received a copy of the GNU Lesser General Public License
-+ * version 3 along with OpenOffice.org.  If not, see
-+ * <http://www.openoffice.org/license.html>
-+ * for a copy of the LGPLv3 License.
-+ *
-+ ************************************************************************/
-+
-+#ifndef __com_sun_star_table_BorderLine2_idl__
-+#define __com_sun_star_table_BorderLine2_idl__
-+
-+
-+#include <com/sun/star/table/BorderLine.idl>
-+#include <com/sun/star/table/BorderLineStyle.idl>
-+
-+//=============================================================================
-+
-+module com {  module sun {  module star {  module table {
-+
-+//=============================================================================
-+
-+struct BorderLine2 : BorderLine
-+{
-+    /** Style of the border. @see BorderLineStyle
-+     */
-+    short LineStyle;
-+};
-+
-+//=============================================================================
-+
-+}; }; }; };
-+
-+#endif
-diff --git offapi/com/sun/star/table/BorderLineStyle.idl offapi/com/sun/star/table/BorderLineStyle.idl
-new file mode 100644
-index 0000000..1914373
---- /dev/null
-+++ offapi/com/sun/star/table/BorderLineStyle.idl
-@@ -0,0 +1,63 @@
-+/*************************************************************************
-+ *
-+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-+ *
-+ * Copyright 2008 by Sun Microsystems, Inc.
-+ *
-+ * OpenOffice.org - a multi-platform office productivity suite
-+ *
-+ * $RCSfile: TableSortFieldType.idl,v $
-+ * $Revision: 1.7 $
-+ *
-+ * This file is part of OpenOffice.org.
-+ *
-+ * OpenOffice.org is free software: you can redistribute it and/or modify
-+ * it under the terms of the GNU Lesser General Public License version 3
-+ * only, as published by the Free Software Foundation.
-+ *
-+ * OpenOffice.org is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+ * GNU Lesser General Public License version 3 for more details
-+ * (a copy is included in the LICENSE file that accompanied this code).
-+ *
-+ * You should have received a copy of the GNU Lesser General Public License
-+ * version 3 along with OpenOffice.org.  If not, see
-+ * <http://www.openoffice.org/license.html>
-+ * for a copy of the LGPLv3 License.
-+ *
-+ ************************************************************************/
-+#ifndef __com_sun_star_table_BorderLineStyle_idl__
-+#define __com_sun_star_table_BorderLineStyle_idl__
-+
-+
-+//=============================================================================
-+
-+module com {  module sun {  module star {  module table {
-+
-+//=============================================================================
-+
-+constants BorderLineStyle
-+{
-+    //-------------------------------------------------------------------------
-+    /** Solid border line.
-+     */
-+    const short SOLID = 0;
-+
-+    //-------------------------------------------------------------------------
-+    /** Dotted border line.
-+     */
-+    const short DOTTED = 1;
-+
-+    //-------------------------------------------------------------------------
-+    /** Dashed border line.
-+     */
-+    const short DASHED = 2;
-+
-+};
-+
-+//=============================================================================
-+
-+}; }; }; };
-+
-+#endif
-diff --git offapi/com/sun/star/table/makefile.mk offapi/com/sun/star/table/makefile.mk
-index 605a7a9..9b7e185 100644
---- offapi/com/sun/star/table/makefile.mk
-+++ offapi/com/sun/star/table/makefile.mk
-@@ -41,6 +41,8 @@ IDLFILES=\
-     AccessibleCellView.idl      \
-     AccessibleTableView.idl	\
-     BorderLine.idl\
-+    BorderLine2.idl\
-+    BorderLineStyle.idl\
-     Cell.idl\
-     CellAddress.idl\
-     CellContentType.idl\
-diff --git oox/inc/oox/helper/helper.hxx oox/inc/oox/helper/helper.hxx
-index 67a5f16..4206cf9 100644
---- oox/inc/oox/helper/helper.hxx
-+++ oox/inc/oox/helper/helper.hxx
-@@ -97,6 +97,10 @@ const sal_Int32 API_RGB_TRANSPARENT         = -1;       /// Transparent color fo
- const sal_Int32 API_RGB_BLACK               = 0x000000;  /// Black color for API calls.
- const sal_Int32 API_RGB_WHITE               = 0xFFFFFF;  /// White color for API calls.
- 
-+const sal_Int16 API_LINE_SOLID              = 0;
-+const sal_Int16 API_LINE_DOTTED             = 1;
-+const sal_Int16 API_LINE_DASHED             = 2;
-+
- const sal_Int16 API_LINE_NONE               = 0;
- const sal_Int16 API_LINE_HAIR               = 2;
- const sal_Int16 API_LINE_THIN               = 35;
-diff --git oox/inc/oox/xls/stylesbuffer.hxx oox/inc/oox/xls/stylesbuffer.hxx
-index 3a5efc7..ea134c5 100644
---- oox/inc/oox/xls/stylesbuffer.hxx
-+++ oox/inc/oox/xls/stylesbuffer.hxx
-@@ -33,7 +33,7 @@
- #include <com/sun/star/table/CellHoriJustify.hpp>
- #include <com/sun/star/table/CellOrientation.hpp>
- #include <com/sun/star/table/CellVertJustify.hpp>
--#include <com/sun/star/table/TableBorder.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- #include "oox/helper/containerhelper.hxx"
- #include "oox/helper/graphichelper.hxx"
- #include "oox/drawingml/color.hxx"
-@@ -517,10 +517,12 @@ struct BorderModel
- /** Contains API attributes of a complete cell border. */
- struct ApiBorderData
- {
--    typedef ::com::sun::star::table::TableBorder    ApiTableBorder;
--    typedef ::com::sun::star::table::BorderLine     ApiBorderLine;
-+    typedef ::com::sun::star::table::BorderLine2     ApiBorderLine;
- 
--    ApiTableBorder      maBorder;           /// Left/right/top/bottom line format.
-+    ApiBorderLine       maLeft;             /// Left line format
-+    ApiBorderLine       maRight;            /// Right line format
-+    ApiBorderLine       maTop;              /// Top line format
-+    ApiBorderLine       maBottom;           /// Bottom line format
-     ApiBorderLine       maTLtoBR;           /// Diagonal top-left to bottom-right line format.
-     ApiBorderLine       maBLtoTR;           /// Diagonal bottom-left to top-right line format.
-     bool                mbBorderUsed;       /// True = left/right/top/bottom line format used.
-@@ -583,7 +585,7 @@ private:
- 
-     /** Converts border line data to an API struct, returns true, if the line is marked as used. */
-     bool                convertBorderLine(
--                            ::com::sun::star::table::BorderLine& rBorderLine,
-+                            ::com::sun::star::table::BorderLine2& rBorderLine,
-                             const BorderLineModel& rModel );
- 
- private:
-diff --git oox/source/drawingml/table/tablecell.cxx oox/source/drawingml/table/tablecell.cxx
-index bb3287c..6decf3a 100644
---- oox/source/drawingml/table/tablecell.cxx
-+++ oox/source/drawingml/table/tablecell.cxx
-@@ -37,7 +37,7 @@
- #include <com/sun/star/beans/XMultiPropertySet.hpp>
- #include <com/sun/star/table/XTable.hpp>
- #include <com/sun/star/table/XMergeableCellRange.hpp>
--#include <com/sun/star/table/BorderLine.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- #include <com/sun/star/drawing/LineStyle.hpp>
- #include <com/sun/star/drawing/TextVerticalAdjust.hpp>
- #include <com/sun/star/drawing/TextHorizontalAdjust.hpp>
-@@ -48,7 +48,7 @@ using namespace ::oox::core;
- using namespace ::com::sun::star;
- using namespace ::com::sun::star::uno;
- using namespace ::com::sun::star::beans;
--using ::com::sun::star::table::BorderLine;
-+using ::com::sun::star::table::BorderLine2;
- using ::com::sun::star::drawing::LineStyle;
- 
- namespace oox { namespace drawingml { namespace table {
-@@ -76,7 +76,7 @@ void applyLineAttributes( const ::oox::core::XmlFilterBase& rFilterBase,
-         Reference< XPropertySet >& rxPropSet, oox::drawingml::LineProperties& rLineProperties,
-         sal_Int32 nPropId )
- {
--    BorderLine aBorderLine( 0, 0, 0, 0 );
-+    BorderLine2 aBorderLine( 0, 0, 0, 0, API_LINE_SOLID );
-     if( rLineProperties.maLineFill.moFillType.differsFrom( XML_noFill ) )
-     {
-         Color aColor = rLineProperties.maLineFill.getBestSolidColor();
-diff --git oox/source/drawingml/table/tableproperties.cxx oox/source/drawingml/table/tableproperties.cxx
-index 5c0af81..9357c9f 100644
---- oox/source/drawingml/table/tableproperties.cxx
-+++ oox/source/drawingml/table/tableproperties.cxx
-@@ -32,7 +32,7 @@
- #include <com/sun/star/beans/XMultiPropertySet.hpp>
- #include <com/sun/star/lang/XMultiServiceFactory.hpp>
- #include <com/sun/star/table/XMergeableCellRange.hpp>
--#include <com/sun/star/table/BorderLine.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- #include "oox/core/namespaces.hxx"
- #include "oox/core/xmlfilterbase.hxx"
- #include "oox/helper/propertyset.hxx"
-diff --git oox/source/drawingml/table/tablerow.cxx oox/source/drawingml/table/tablerow.cxx
-index af53830..0184a7e 100644
---- oox/source/drawingml/table/tablerow.cxx
-+++ oox/source/drawingml/table/tablerow.cxx
-@@ -34,7 +34,7 @@
- #include "oox/helper/propertyset.hxx"
- #include <com/sun/star/table/XTable.hpp>
- #include <com/sun/star/table/XMergeableCellRange.hpp>
--#include <com/sun/star/table/BorderLine.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- 
- using rtl::OUString;
- using namespace ::oox::core;
-diff --git oox/source/xls/stylesbuffer.cxx oox/source/xls/stylesbuffer.cxx
-index f9e78c0..d623524 100644
---- oox/source/xls/stylesbuffer.cxx
-+++ oox/source/xls/stylesbuffer.cxx
-@@ -43,6 +43,7 @@
- #include <com/sun/star/text/XText.hpp>
- #include <com/sun/star/table/CellVertJustify2.hpp>
- #include <com/sun/star/table/CellJustifyMethod.hpp>
-+#include <com/sun/star/table/TableBorder.hpp>
- #include <rtl/tencinfo.h>
- #include <rtl/ustrbuf.hxx>
- #include "properties.hxx"
-@@ -71,6 +72,7 @@ using ::com::sun::star::awt::FontDescriptor;
- using ::com::sun::star::awt::XDevice;
- using ::com::sun::star::awt::XFont2;
- using ::com::sun::star::table::BorderLine;
-+using ::com::sun::star::table::BorderLine2;
- using ::com::sun::star::table::TableBorder;
- using ::com::sun::star::text::XText;
- using ::com::sun::star::style::XStyle;
-@@ -1504,6 +1506,15 @@ void Protection::writeToPropertyMap( PropertyMap& rPropMap ) const
- 
- // ============================================================================
- 
-+namespace {
-+
-+bool lcl_isBorder(const ::com::sun::star::table::BorderLine& rBorder)
-+{
-+    return (rBorder.InnerLineWidth > 0) || (rBorder.OuterLineWidth > 0);
-+}
-+
-+}
-+
- BorderLineModel::BorderLineModel( bool bDxf ) :
-     mnStyle( XML_none ),
-     mbUsed( !bDxf )
-@@ -1551,10 +1562,10 @@ ApiBorderData::ApiBorderData() :
- bool ApiBorderData::hasAnyOuterBorder() const
- {
-     return
--        (maBorder.IsTopLineValid    && (maBorder.TopLine.OuterLineWidth > 0)) ||
--        (maBorder.IsBottomLineValid && (maBorder.BottomLine.OuterLineWidth > 0)) ||
--        (maBorder.IsLeftLineValid   && (maBorder.LeftLine.OuterLineWidth > 0)) ||
--        (maBorder.IsRightLineValid  && (maBorder.RightLine.OuterLineWidth > 0));
-+        ( ( lcl_isBorder( maTop ) &&  maTop.OuterLineWidth > 0 ) ) ||
-+        ( ( lcl_isBorder( maBottom ) && maBottom.OuterLineWidth > 0 ) ) ||
-+        ( ( lcl_isBorder( maLeft ) && maLeft.OuterLineWidth > 0 ) ) ||
-+        ( ( lcl_isBorder( maRight ) && maRight.OuterLineWidth > 0 ) );
- }
- 
- namespace {
-@@ -1592,7 +1603,10 @@ bool operator==( const TableBorder& rLeft, const TableBorder& rRight )
- bool operator==( const ApiBorderData& rLeft, const ApiBorderData& rRight )
- {
-     return
--        (rLeft.maBorder     == rRight.maBorder) &&
-+        (rLeft.maLeft       == rRight.maLeft)   &&
-+        (rLeft.maRight      == rRight.maRight)  &&
-+        (rLeft.maTop        == rRight.maTop)    &&
-+        (rLeft.maBottom     == rRight.maBottom) &&
-         (rLeft.maTLtoBR     == rRight.maTLtoBR) &&
-         (rLeft.maBLtoTR     == rRight.maBLtoTR) &&
-         (rLeft.mbBorderUsed == rRight.mbBorderUsed) &&
-@@ -1616,7 +1630,7 @@ inline sal_Int32 lclGetBorderLineWidth( const BorderLine& rBorderLine )
-     return rBorderLine.OuterLineWidth + rBorderLine.LineDistance + rBorderLine.InnerLineWidth;
- }
- 
--const BorderLine* lclGetThickerLine( const BorderLine& rBorderLine1, sal_Bool bValid1, const BorderLine& rBorderLine2, sal_Bool bValid2 )
-+const BorderLine2* lclGetThickerLine( const BorderLine2& rBorderLine1, sal_Bool bValid1, const BorderLine2& rBorderLine2, sal_Bool bValid2 )
- {
-     if( bValid1 && bValid2 )
-         return (lclGetBorderLineWidth( rBorderLine1 ) < lclGetBorderLineWidth( rBorderLine2 )) ? &rBorderLine2 : &rBorderLine1;
-@@ -1754,21 +1768,10 @@ void Border::finalizeImport()
-     maApiData.mbBorderUsed = maModel.maLeft.mbUsed || maModel.maRight.mbUsed || maModel.maTop.mbUsed || maModel.maBottom.mbUsed;
-     maApiData.mbDiagUsed   = maModel.maDiagonal.mbUsed;
- 
--    maApiData.maBorder.IsLeftLineValid   = convertBorderLine( maApiData.maBorder.LeftLine,   maModel.maLeft );
--    maApiData.maBorder.IsRightLineValid  = convertBorderLine( maApiData.maBorder.RightLine,  maModel.maRight );
--    maApiData.maBorder.IsTopLineValid    = convertBorderLine( maApiData.maBorder.TopLine,    maModel.maTop );
--    maApiData.maBorder.IsBottomLineValid = convertBorderLine( maApiData.maBorder.BottomLine, maModel.maBottom );
--
--    if( !mbDxf )
--    {
--        maApiData.maBorder.IsVerticalLineValid = maApiData.maBorder.IsLeftLineValid || maApiData.maBorder.IsRightLineValid;
--        if( const BorderLine* pVertLine = lclGetThickerLine( maApiData.maBorder.LeftLine, maApiData.maBorder.IsLeftLineValid, maApiData.maBorder.RightLine, maApiData.maBorder.IsRightLineValid ) )
--            maApiData.maBorder.VerticalLine = *pVertLine;
--
--        maApiData.maBorder.IsHorizontalLineValid = maApiData.maBorder.IsTopLineValid || maApiData.maBorder.IsBottomLineValid;
--        if( const BorderLine* pHorLine = lclGetThickerLine( maApiData.maBorder.TopLine, maApiData.maBorder.IsTopLineValid, maApiData.maBorder.BottomLine, maApiData.maBorder.IsBottomLineValid ) )
--            maApiData.maBorder.HorizontalLine = *pHorLine;
--    }
-+    convertBorderLine( maApiData.maLeft,   maModel.maLeft );
-+    convertBorderLine( maApiData.maRight,  maModel.maRight );
-+    convertBorderLine( maApiData.maTop,    maModel.maTop );
-+    convertBorderLine( maApiData.maBottom, maModel.maBottom );
- 
-     if( maModel.mbDiagTLtoBR )
-         convertBorderLine( maApiData.maTLtoBR, maModel.maDiagonal );
-@@ -1779,7 +1782,12 @@ void Border::finalizeImport()
- void Border::writeToPropertyMap( PropertyMap& rPropMap ) const
- {
-     if( maApiData.mbBorderUsed )
--        rPropMap[ PROP_TableBorder ] <<= maApiData.maBorder;
-+    {
-+        rPropMap[ PROP_LeftBorder ]   <<= maApiData.maLeft;
-+        rPropMap[ PROP_RightBorder ]  <<= maApiData.maRight;
-+        rPropMap[ PROP_TopBorder ]    <<= maApiData.maTop;
-+        rPropMap[ PROP_BottomBorder ] <<= maApiData.maBottom;
-+    }
-     if( maApiData.mbDiagUsed )
-     {
-         rPropMap[ PROP_DiagonalTLBR ] <<= maApiData.maTLtoBR;
-@@ -1787,29 +1795,18 @@ void Border::writeToPropertyMap( PropertyMap& rPropMap ) const
-     }
- }
- 
--namespace {
--
--bool lcl_isBorder(const ::com::sun::star::table::BorderLine& rBorder)
--{
--    return (rBorder.InnerLineWidth > 0) || (rBorder.OuterLineWidth > 0);
--}
--
--}
--
- bool Border::hasBorder() const
- {
--    const ApiBorderData::ApiTableBorder& rTabBorder = maApiData.maBorder;
--
--    if (rTabBorder.IsBottomLineValid && lcl_isBorder(rTabBorder.BottomLine))
-+    if (lcl_isBorder(maApiData.maBottom))
-         return true;
- 
--    if (rTabBorder.IsTopLineValid && lcl_isBorder(rTabBorder.TopLine))
-+    if (lcl_isBorder(maApiData.maTop))
-         return true;
- 
--    if (rTabBorder.IsLeftLineValid && lcl_isBorder(rTabBorder.LeftLine))
-+    if (lcl_isBorder(maApiData.maLeft))
-         return true;
- 
--    if (rTabBorder.IsRightLineValid && lcl_isBorder(rTabBorder.RightLine))
-+    if (lcl_isBorder(maApiData.maRight))
-         return true;
- 
-     return false;
-@@ -1828,15 +1825,25 @@ BorderLineModel* Border::getBorderLine( sal_Int32 nElement )
-     return 0;
- }
- 
--bool Border::convertBorderLine( BorderLine& rBorderLine, const BorderLineModel& rModel )
-+bool Border::convertBorderLine( BorderLine2& rBorderLine, const BorderLineModel& rModel )
- {
-     rBorderLine.Color = rModel.maColor.getColor( getBaseFilter().getGraphicHelper(), API_RGB_BLACK );
-     switch( rModel.mnStyle )
-     {
-         case XML_dashDot:           lclSetBorderLineWidth( rBorderLine, API_LINE_THIN );    break;
-         case XML_dashDotDot:        lclSetBorderLineWidth( rBorderLine, API_LINE_THIN );    break;
--        case XML_dashed:            lclSetBorderLineWidth( rBorderLine, API_LINE_THIN );    break;
--        case XML_dotted:            lclSetBorderLineWidth( rBorderLine, API_LINE_THIN );    break;
-+        case XML_dashed:
-+        {
-+                                    lclSetBorderLineWidth( rBorderLine, API_LINE_THIN );
-+                                    rBorderLine.LineStyle = API_LINE_DASHED;
-+                                    break;
-+        }
-+        case XML_dotted:
-+        {
-+                                    lclSetBorderLineWidth( rBorderLine, API_LINE_THIN );
-+                                    rBorderLine.LineStyle = API_LINE_DOTTED;
-+                                    break;
-+        }
-         case XML_double:            lclSetBorderLineWidth( rBorderLine, API_LINE_THIN, API_LINE_THIN, API_LINE_THIN ); break;
-         case XML_hair:              lclSetBorderLineWidth( rBorderLine, API_LINE_HAIR );    break;
-         case XML_medium:            lclSetBorderLineWidth( rBorderLine, API_LINE_MEDIUM );  break;
-diff --git sc/source/filter/excel/xestyle.cxx sc/source/filter/excel/xestyle.cxx
-index e4b2260..8e498a5 100644
---- sc/source/filter/excel/xestyle.cxx
-+++ sc/source/filter/excel/xestyle.cxx
-@@ -1570,9 +1570,26 @@ void lclGetBorderLine(
-         else if( nOuterWidth > DEF_LINE_WIDTH_2 )
-             rnXclLine = EXC_LINE_THICK;
-         else if( nOuterWidth > DEF_LINE_WIDTH_1 )
-+        {
-             rnXclLine = EXC_LINE_MEDIUM;
-+            if ( pLine->GetStyle( ) == DASHED )
-+                rnXclLine = EXC_LINE_MEDIUMDASHED;
-+        }
-         else if( nOuterWidth > DEF_LINE_WIDTH_0 )
-+        {
-             rnXclLine = EXC_LINE_THIN;
-+            switch ( pLine->GetStyle( ) )
-+            {
-+                case DASHED:
-+                    rnXclLine = EXC_LINE_DASHED;
-+                    break;
-+                case DOTTED:
-+                    rnXclLine = EXC_LINE_DOTTED;
-+                    break;
-+                default:
-+                    break;
-+            }
-+        }
-         else if( nOuterWidth > 0 )
-             rnXclLine = EXC_LINE_HAIR;
-         else
-@@ -1738,6 +1755,9 @@ static const char* ToLineStyle( sal_uInt8 nLineStyle )
-         case EXC_LINE_THICK:    return "thick";
-         case EXC_LINE_DOUBLE:   return "double";
-         case EXC_LINE_HAIR:     return "hair";
-+        case EXC_LINE_DOTTED:     return "dotted";
-+        case EXC_LINE_DASHED:     return "dashed";
-+        case EXC_LINE_MEDIUMDASHED:     return "mediumdashed";
-     }
-     return "*unknown*";
- }
-diff --git sc/source/filter/excel/xistyle.cxx sc/source/filter/excel/xistyle.cxx
-index 09553ca..c7cc3fb 100644
---- sc/source/filter/excel/xistyle.cxx
-+++ sc/source/filter/excel/xistyle.cxx
-@@ -882,23 +882,23 @@ namespace {
- /** Converts the passed line style to a SvxBorderLine, or returns false, if style is "no line". */
- bool lclConvertBorderLine( SvxBorderLine& rLine, const XclImpPalette& rPalette, sal_uInt8 nXclLine, sal_uInt16 nXclColor )
- {
--    static const sal_uInt16 ppnLineParam[][ 3 ] =
-+    static const sal_uInt16 ppnLineParam[][ 4 ] =
-     {
--        //  outer width,        inner width,        distance
--        {   0,                  0,                  0 },                // 0 = none
--        {   DEF_LINE_WIDTH_1,   0,                  0 },                // 1 = thin
--        {   DEF_LINE_WIDTH_2,   0,                  0 },                // 2 = medium
--        {   DEF_LINE_WIDTH_1,   0,                  0 },                // 3 = dashed
--        {   DEF_LINE_WIDTH_0,   0,                  0 },                // 4 = dotted
--        {   DEF_LINE_WIDTH_3,   0,                  0 },                // 5 = thick
--        {   DEF_LINE_WIDTH_1,   DEF_LINE_WIDTH_1,   DEF_LINE_WIDTH_1 }, // 6 = double
--        {   DEF_LINE_WIDTH_0,   0,                  0 },                // 7 = hair
--        {   DEF_LINE_WIDTH_2,   0,                  0 },                // 8 = med dash
--        {   DEF_LINE_WIDTH_1,   0,                  0 },                // 9 = thin dashdot
--        {   DEF_LINE_WIDTH_2,   0,                  0 },                // A = med dashdot
--        {   DEF_LINE_WIDTH_1,   0,                  0 },                // B = thin dashdotdot
--        {   DEF_LINE_WIDTH_2,   0,                  0 },                // C = med dashdotdot
--        {   DEF_LINE_WIDTH_2,   0,                  0 }                 // D = med slant dashdot
-+        //  outer width,        inner width,        distance    type
-+        {   0,                  0,                  0,          SOLID },                // 0 = none
-+        {   DEF_LINE_WIDTH_1,   0,                  0,          SOLID },                // 1 = thin
-+        {   DEF_LINE_WIDTH_2,   0,                  0,          SOLID },                // 2 = medium
-+        {   DEF_LINE_WIDTH_1,   0,                  0,          DASHED },               // 3 = dashed
-+        {   DEF_LINE_WIDTH_1,   0,                  0,          DOTTED },               // 4 = dotted
-+        {   DEF_LINE_WIDTH_3,   0,                  0,          SOLID },                // 5 = thick
-+        {   DEF_LINE_WIDTH_1,   DEF_LINE_WIDTH_1,   DEF_LINE_WIDTH_1 },                 // 6 = double
-+        {   DEF_LINE_WIDTH_0,   0,                  0,          SOLID },                // 7 = hair
-+        {   DEF_LINE_WIDTH_2,   0,                  0,          DASHED },               // 8 = med dash
-+        {   DEF_LINE_WIDTH_1,   0,                  0,          SOLID },                // 9 = thin dashdot
-+        {   DEF_LINE_WIDTH_2,   0,                  0,          SOLID },                // A = med dashdot
-+        {   DEF_LINE_WIDTH_1,   0,                  0,          SOLID },                // B = thin dashdotdot
-+        {   DEF_LINE_WIDTH_2,   0,                  0,          SOLID },                // C = med dashdotdot
-+        {   DEF_LINE_WIDTH_2,   0,                  0,          SOLID }                 // D = med slant dashdot
-     };
- 
-     if( nXclLine == EXC_LINE_NONE )
-@@ -910,6 +910,7 @@ bool lclConvertBorderLine( SvxBorderLine& rLine, const XclImpPalette& rPalette,
-     rLine.SetOutWidth( ppnLineParam[ nXclLine ][ 0 ] );
-     rLine.SetInWidth(  ppnLineParam[ nXclLine ][ 1 ] );
-     rLine.SetDistance( ppnLineParam[ nXclLine ][ 2 ] );
-+    rLine.SetStyle( (SvxBorderStyle)ppnLineParam[ nXclLine ][ 3 ] );
-     return true;
- }
- 
-diff --git sc/source/filter/html/htmlexp.cxx sc/source/filter/html/htmlexp.cxx
-index 1dbea16..9889f74 100644
---- sc/source/filter/html/htmlexp.cxx
-+++ sc/source/filter/html/htmlexp.cxx
-@@ -528,7 +528,14 @@ void ScHTMLExport::BorderToStyle( ByteString& rOut, const char* pBorderName,
-         // thickness
-         int nWidth = pLine->GetOutWidth();
-         int nPxWidth = ( nWidth > 0 )? std::max( int( nWidth / TWIPS_PER_PIXEL ), 1 ): 0;
--        (rOut += ByteString::CreateFromInt32( nPxWidth )) += "px solid #";
-+        (rOut += ByteString::CreateFromInt32( nPxWidth )) += "px ";
-+        switch ( pLine->GetStyle() )
-+        {
-+            case DOTTED:    rOut += "dotted"; break;
-+            case DASHED:    rOut += "dashed"; break;
-+            default:        rOut += "solid";
-+        }
-+        rOut += " #";
- 
-         // color
-         char hex[7];
-diff --git sc/source/filter/inc/xlstyle.hxx sc/source/filter/inc/xlstyle.hxx
-index 6216165..0b98a8c 100644
---- sc/source/filter/inc/xlstyle.hxx
-+++ sc/source/filter/inc/xlstyle.hxx
-@@ -48,9 +48,12 @@ class XclRoot;
- const sal_uInt8 EXC_LINE_NONE               = 0x00;
- const sal_uInt8 EXC_LINE_THIN               = 0x01;
- const sal_uInt8 EXC_LINE_MEDIUM             = 0x02;
-+const sal_uInt8 EXC_LINE_DASHED             = 0x03;
-+const sal_uInt8 EXC_LINE_DOTTED             = 0x04;
- const sal_uInt8 EXC_LINE_THICK              = 0x05;
- const sal_uInt8 EXC_LINE_DOUBLE             = 0x06;
- const sal_uInt8 EXC_LINE_HAIR               = 0x07;
-+const sal_uInt8 EXC_LINE_MEDIUMDASHED       = 0x08;
- 
- // Background patterns --------------------------------------------------------
- 
-diff --git sc/source/filter/xml/xmlstyle.cxx sc/source/filter/xml/xmlstyle.cxx
-index e8aee25..c4f552c 100644
---- sc/source/filter/xml/xmlstyle.cxx
-+++ sc/source/filter/xml/xmlstyle.cxx
-@@ -54,6 +54,7 @@
- #include <com/sun/star/table/CellHoriJustify.hpp>
- #include <com/sun/star/table/CellJustifyMethod.hpp>
- #include <com/sun/star/table/TableBorder.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- #include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
- #include <com/sun/star/sheet/XSheetConditionalEntry.hpp>
- #include <com/sun/star/sheet/XSheetCondition.hpp>
-@@ -323,7 +324,7 @@ void ScXMLCellExportPropertyMapper::ContextFilter(
-     {
-         if( pBorder_Left && pBorder_Right && pBorder_Top && pBorder_Bottom )
-         {
--            table::BorderLine aLeft, aRight, aTop, aBottom;
-+            table::BorderLine2 aLeft, aRight, aTop, aBottom;
- 
-             pBorder_Left->maValue >>= aLeft;
-             pBorder_Right->maValue >>= aRight;
-@@ -334,7 +335,9 @@ void ScXMLCellExportPropertyMapper::ContextFilter(
-                 aLeft.Color == aTop.Color && aLeft.InnerLineWidth == aTop.InnerLineWidth &&
-                 aLeft.OuterLineWidth == aTop.OuterLineWidth && aLeft.LineDistance == aTop.LineDistance &&
-                 aLeft.Color == aBottom.Color && aLeft.InnerLineWidth == aBottom.InnerLineWidth &&
--                aLeft.OuterLineWidth == aBottom.OuterLineWidth && aLeft.LineDistance == aBottom.LineDistance )
-+                aLeft.OuterLineWidth == aBottom.OuterLineWidth && aLeft.LineDistance == aBottom.LineDistance &&
-+                aLeft.LineStyle == aRight.LineStyle && aLeft.LineStyle == aTop.LineStyle && 
-+                aLeft.LineStyle == aBottom.LineStyle )
-             {
-                 pBorder_Left->mnIndex = -1;
-                 pBorder_Left->maValue.clear();
-@@ -361,7 +364,7 @@ void ScXMLCellExportPropertyMapper::ContextFilter(
-     {
-         if( pLeftBorderWidthState && pRightBorderWidthState && pTopBorderWidthState && pBottomBorderWidthState )
-         {
--            table::BorderLine aLeft, aRight, aTop, aBottom;
-+            table::BorderLine2 aLeft, aRight, aTop, aBottom;
- 
-             pLeftBorderWidthState->maValue >>= aLeft;
-             pRightBorderWidthState->maValue >>= aRight;
-diff --git sc/source/filter/xml/xmlstyli.cxx sc/source/filter/xml/xmlstyli.cxx
-index 2e9a668..8e4ba9a 100644
---- sc/source/filter/xml/xmlstyli.cxx
-+++ sc/source/filter/xml/xmlstyli.cxx
-@@ -40,7 +40,7 @@
- #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
- #include <com/sun/star/container/XNameContainer.hpp>
- #include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
--#include <com/sun/star/table/BorderLine.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- #include <comphelper/extract.hxx>
- #include <xmloff/xmlprcon.hxx>
- #include <xmloff/xmluconv.hxx>
-@@ -167,15 +167,16 @@ void ScXMLCellImportPropertyMapper::finished(::std::vector< XMLPropertyState >&
-             pBorderWidths[i]->mnIndex = -1;
-         if( pBorders[i] )
-         {
--            table::BorderLine aBorderLine;
-+            table::BorderLine2 aBorderLine;
-             pBorders[i]->maValue >>= aBorderLine;
-              if( pBorderWidths[i] )
-             {
--                table::BorderLine aBorderLineWidth;
-+                table::BorderLine2 aBorderLineWidth;
-                 pBorderWidths[i]->maValue >>= aBorderLineWidth;
-                 aBorderLine.OuterLineWidth = aBorderLineWidth.OuterLineWidth;
-                 aBorderLine.InnerLineWidth = aBorderLineWidth.InnerLineWidth;
-                 aBorderLine.LineDistance = aBorderLineWidth.LineDistance;
-+                aBorderLine.LineStyle = aBorderLineWidth.LineStyle;
-                 pBorders[i]->maValue <<= aBorderLine;
-             }
-         }
-@@ -184,9 +185,9 @@ void ScXMLCellImportPropertyMapper::finished(::std::vector< XMLPropertyState >&
-     {
-         if( pDiagBorders[i] && ( pDiagBorderWidths[i] || pOldDiagBorderWidths[i] ) )
-         {
--            table::BorderLine aBorderLine;
-+            table::BorderLine2 aBorderLine;
-             pDiagBorders[i]->maValue >>= aBorderLine;
--            table::BorderLine aBorderLineWidth;
-+            table::BorderLine2 aBorderLineWidth;
-             if (pDiagBorderWidths[i])
-                 pDiagBorderWidths[i]->maValue >>= aBorderLineWidth;     // prefer new attribute
-             else
-@@ -194,6 +195,7 @@ void ScXMLCellImportPropertyMapper::finished(::std::vector< XMLPropertyState >&
-             aBorderLine.OuterLineWidth = aBorderLineWidth.OuterLineWidth;
-             aBorderLine.InnerLineWidth = aBorderLineWidth.InnerLineWidth;
-             aBorderLine.LineDistance = aBorderLineWidth.LineDistance;
-+            aBorderLine.LineStyle = aBorderLineWidth.LineStyle;
-             pDiagBorders[i]->maValue <<= aBorderLine;
-             if (pDiagBorderWidths[i])
-                 pDiagBorderWidths[i]->mnIndex = -1;
-diff --git sc/source/ui/unoobj/cellsuno.cxx sc/source/ui/unoobj/cellsuno.cxx
-index 4a0cc63..e38c9ac 100644
---- sc/source/ui/unoobj/cellsuno.cxx
-+++ sc/source/ui/unoobj/cellsuno.cxx
-@@ -60,6 +60,7 @@
- #include <com/sun/star/table/CellVertJustify2.hpp>
- #include <com/sun/star/table/ShadowFormat.hpp>
- #include <com/sun/star/table/TableBorder.hpp>
-+#include <com/sun/star/table/BorderLine2.hpp>
- #include <com/sun/star/sheet/CellFlags.hpp>
- #include <com/sun/star/sheet/FormulaResult.hpp>
- #include <com/sun/star/beans/PropertyAttribute.hpp>
-@@ -161,7 +162,7 @@ const SfxItemPropertySet* lcl_GetCellsPropertySet()
-     {
-         {MAP_CHAR_LEN(SC_UNONAME_ABSNAME),	SC_WID_UNO_ABSNAME,	&getCppuType((rtl::OUString*)0),		0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
-@@ -212,13 +213,13 @@ const SfxItemPropertySet* lcl_GetCellsPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0), 0, MID_HORJUST_HORJUST },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS_METHOD), ATTR_HOR_JUSTIFY_METHOD, &::getCppuType((const sal_Int32*)0),   0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
-         {MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
-@@ -233,13 +234,13 @@ const SfxItemPropertySet* lcl_GetCellsPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_PLMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_L_MARGIN  | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((sal_Int32*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-@@ -262,7 +263,7 @@ const SfxItemPropertySet* lcl_GetRangePropertySet()
-     {
-         {MAP_CHAR_LEN(SC_UNONAME_ABSNAME),	SC_WID_UNO_ABSNAME,	&getCppuType((rtl::OUString*)0),		0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
-@@ -313,13 +314,13 @@ const SfxItemPropertySet* lcl_GetRangePropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0),	0, MID_HORJUST_HORJUST },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS_METHOD), ATTR_HOR_JUSTIFY_METHOD, &::getCppuType((const sal_Int32*)0),   0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
-         {MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
-@@ -335,14 +336,14 @@ const SfxItemPropertySet* lcl_GetRangePropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((sal_Int32*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-@@ -365,7 +366,7 @@ const SfxItemPropertySet* lcl_GetCellPropertySet()
-     {
-         {MAP_CHAR_LEN(SC_UNONAME_ABSNAME),	SC_WID_UNO_ABSNAME,	&getCppuType((rtl::OUString*)0),		0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
-@@ -416,15 +417,15 @@ const SfxItemPropertySet* lcl_GetCellPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_FORMLOC),	SC_WID_UNO_FORMLOC,	&getCppuType((rtl::OUString*)0),		0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_FORMRT),	SC_WID_UNO_FORMRT,	&getCppuType((table::CellContentType*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0), 0, MID_HORJUST_HORJUST },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS_METHOD), ATTR_HOR_JUSTIFY_METHOD, &::getCppuType((const sal_Int32*)0),   0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
-         {MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLORI),  ATTR_STACKED,       &getCppuType((table::CellOrientation*)0), 0, 0 },
-@@ -440,14 +441,14 @@ const SfxItemPropertySet* lcl_GetCellPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((sal_Int32*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-@@ -470,7 +471,7 @@ const SfxItemPropertySet* lcl_GetColumnPropertySet()
-     {
-         {MAP_CHAR_LEN(SC_UNONAME_ABSNAME),	SC_WID_UNO_ABSNAME,	&getCppuType((rtl::OUString*)0),		0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
-@@ -521,8 +522,8 @@ const SfxItemPropertySet* lcl_GetColumnPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0), 0, MID_HORJUST_HORJUST },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS_METHOD), ATTR_HOR_JUSTIFY_METHOD, &::getCppuType((const sal_Int32*)0),   0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
-@@ -531,7 +532,7 @@ const SfxItemPropertySet* lcl_GetColumnPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_NEWPAGE),	SC_WID_UNO_NEWPAGE,	&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLVIS),	SC_WID_UNO_CELLVIS,	&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_OWIDTH),	SC_WID_UNO_OWIDTH,	&getBooleanCppuType(),					0, 0 },
-@@ -548,14 +549,14 @@ const SfxItemPropertySet* lcl_GetColumnPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((sal_Int32*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-@@ -576,7 +577,7 @@ const SfxItemPropertySet* lcl_GetRowPropertySet()
-     {
-         {MAP_CHAR_LEN(SC_UNONAME_ABSNAME),	SC_WID_UNO_ABSNAME,	&getCppuType((rtl::OUString*)0),		0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
-@@ -627,8 +628,8 @@ const SfxItemPropertySet* lcl_GetRowPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_CONDFMT),	SC_WID_UNO_CONDFMT,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDLOC),	SC_WID_UNO_CONDLOC,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CONDXML),	SC_WID_UNO_CONDXML,	&getCppuType((uno::Reference<sheet::XSheetConditionalEntries>*)0), 0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHGT),	SC_WID_UNO_CELLHGT,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0), 0, MID_HORJUST_HORJUST },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS_METHOD), ATTR_HOR_JUSTIFY_METHOD, &::getCppuType((const sal_Int32*)0),   0, 0 },
-@@ -638,7 +639,7 @@ const SfxItemPropertySet* lcl_GetRowPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_NEWPAGE),	SC_WID_UNO_NEWPAGE,	&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLVIS),	SC_WID_UNO_CELLVIS,	&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMRULES),	SC_WID_UNO_NUMRULES,&getCppuType((const uno::Reference<container::XIndexReplace>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_OHEIGHT),	SC_WID_UNO_OHEIGHT,	&getBooleanCppuType(),					0, 0 },
-@@ -655,14 +656,14 @@ const SfxItemPropertySet* lcl_GetRowPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_PRMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_R_MARGIN  | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_PTMARGIN),	ATTR_MARGIN,		&getCppuType((sal_Int32*)0),			0, MID_MARGIN_UP_MARGIN | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((sal_Int32*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_SHRINK_TO_FIT), ATTR_SHRINKTOFIT, &getBooleanCppuType(),			    0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-@@ -684,7 +685,7 @@ const SfxItemPropertySet* lcl_GetSheetPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_AUTOPRINT),SC_WID_UNO_AUTOPRINT,&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_BORDCOL),  SC_WID_UNO_BORDCOL, &getCppuType((sal_Int32*)0),			0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLBACK),	ATTR_BACKGROUND,	&getCppuType((sal_Int32*)0),			0, MID_BACK_COLOR },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLPRO),	ATTR_PROTECTION,	&getCppuType((util::CellProtection*)0),	0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLSTYL),	SC_WID_UNO_CELLSTYL,&getCppuType((rtl::OUString*)0),		0, 0 },
-@@ -738,15 +739,15 @@ const SfxItemPropertySet* lcl_GetSheetPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_COPYBACK),	SC_WID_UNO_COPYBACK,&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_COPYFORM),	SC_WID_UNO_COPYFORM,&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_COPYSTYL),	SC_WID_UNO_COPYSTYL,&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
--        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_BLTR), ATTR_BORDER_BLTR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_DIAGONAL_TLBR), ATTR_BORDER_TLBR, &::getCppuType((const table::BorderLine2*)0), 0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS),	ATTR_HOR_JUSTIFY,	&getCppuType((table::CellHoriJustify*)0), 0, MID_HORJUST_HORJUST },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLHJUS_METHOD), ATTR_HOR_JUSTIFY_METHOD, &::getCppuType((const sal_Int32*)0),   0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ISACTIVE),	SC_WID_UNO_ISACTIVE,&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLTRAN),	ATTR_BACKGROUND,	&getBooleanCppuType(),					0, MID_GRAPHIC_TRANSPARENT },
-         {MAP_CHAR_LEN(SC_UNONAME_WRAP),		ATTR_LINEBREAK,		&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_CELLVIS),	SC_WID_UNO_CELLVIS,	&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_LEFTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, LEFT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNO_LINKDISPBIT),	SC_WID_UNO_LINKDISPBIT,&getCppuType((uno::Reference<awt::XBitmap>*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNO_LINKDISPNAME),	SC_WID_UNO_LINKDISPNAME,&getCppuType((rtl::OUString*)0),	0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_NUMFMT),	ATTR_VALUE_FORMAT,	&getCppuType((sal_Int32*)0),			0, 0 },
-@@ -767,7 +768,7 @@ const SfxItemPropertySet* lcl_GetSheetPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_POS),		SC_WID_UNO_POS,		&getCppuType((awt::Point*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_PRINTBORD),SC_WID_UNO_PRINTBORD,&getBooleanCppuType(),					0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_PROTECT),  SC_WID_UNO_PROTECT,	&getBooleanCppuType(),					0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_RIGHTBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, RIGHT_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTANG),	ATTR_ROTATE_VALUE,	&getCppuType((sal_Int32*)0),			0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_ROTREF),	ATTR_ROTATE_MODE,	&getCppuType((sal_Int32*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_SHADOW),	ATTR_SHADOW,		&getCppuType((table::ShadowFormat*)0),	0, 0 | CONVERT_TWIPS },
-@@ -776,7 +777,7 @@ const SfxItemPropertySet* lcl_GetSheetPropertySet()
-         {MAP_CHAR_LEN(SC_UNONAME_SIZE),		SC_WID_UNO_SIZE,	&getCppuType((awt::Size*)0),			0 | beans::PropertyAttribute::READONLY, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_TBLBORD),	SC_WID_UNO_TBLBORD,	&getCppuType((table::TableBorder*)0),	0, 0 | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_TABLAYOUT),SC_WID_UNO_TABLAYOUT,&getCppuType((sal_Int16*)0),			0, 0 },
--        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-+        {MAP_CHAR_LEN(SC_UNONAME_TOPBORDER),ATTR_BORDER,		&::getCppuType((const table::BorderLine2*)0), 0, TOP_BORDER | CONVERT_TWIPS },
-         {MAP_CHAR_LEN(SC_UNONAME_USERDEF),	ATTR_USERDEF,		&getCppuType((uno::Reference<container::XNameContainer>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALIDAT),	SC_WID_UNO_VALIDAT,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-         {MAP_CHAR_LEN(SC_UNONAME_VALILOC),	SC_WID_UNO_VALILOC,	&getCppuType((uno::Reference<beans::XPropertySet>*)0), 0, 0 },
-diff --git sc/source/ui/view/formatsh.cxx sc/source/ui/view/formatsh.cxx
-index 3d1b430..dbe2cb2 100644
---- sc/source/ui/view/formatsh.cxx
-+++ sc/source/ui/view/formatsh.cxx
-@@ -1538,6 +1538,7 @@ void ScFormatShell::ExecuteAttr( SfxRequest& rReq )
-                             pDefLine->SetOutWidth( pLine->GetOutWidth() );
-                             pDefLine->SetInWidth ( pLine->GetInWidth() );
-                             pDefLine->SetDistance( pLine->GetDistance() );
-+                            pDefLine->SetStyle( pLine->GetStyle( ) );
-                             pTabViewShell->SetSelectionFrameLines( pDefLine, FALSE );
-                         }
-                         else
-diff --git sc/source/ui/view/viewfun2.cxx sc/source/ui/view/viewfun2.cxx
-index 0b19e69..c4fb470 100644
---- sc/source/ui/view/viewfun2.cxx
-+++ sc/source/ui/view/viewfun2.cxx
-@@ -3019,6 +3019,7 @@ void ScViewFunc::UpdateLineAttrs( SvxBorderLine&	   rLine,
-             rLine.SetOutWidth	( pDestLine->GetOutWidth() );
-             rLine.SetInWidth	( pDestLine->GetInWidth() );
-             rLine.SetDistance	( pDestLine->GetDistance() );
-+            rLine.SetStyle	    ( pDestLine->GetStyle() );
-         }
-         else
-         {
-@@ -3026,6 +3027,7 @@ void ScViewFunc::UpdateLineAttrs( SvxBorderLine&	   rLine,
-             rLine.SetOutWidth	( pSrcLine->GetOutWidth() );
-             rLine.SetInWidth	( pSrcLine->GetInWidth() );
-             rLine.SetDistance	( pSrcLine->GetDistance() );
-+            rLine.SetStyle   	( pSrcLine->GetStyle() );
-         }
-     }
- }
-diff --git svtools/inc/borderhelper.hxx svtools/inc/borderhelper.hxx
-new file mode 100644
-index 0000000..6e9864a
---- /dev/null
-+++ svtools/inc/borderhelper.hxx
-@@ -0,0 +1,49 @@
-+/*************************************************************************
-+ *
-+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-+ *
-+ * Copyright 2008 by Sun Microsystems, Inc.
-+ *
-+ * OpenOffice.org - a multi-platform office productivity suite
-+ *
-+ * $RCSfile: ctrlbox.hxx,v $
-+ * $Revision: 1.15 $
-+ *
-+ * This file is part of OpenOffice.org.
-+ *
-+ * OpenOffice.org is free software: you can redistribute it and/or modify
-+ * it under the terms of the GNU Lesser General Public License version 3
-+ * only, as published by the Free Software Foundation.
-+ *
-+ * OpenOffice.org is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+ * GNU Lesser General Public License version 3 for more details
-+ * (a copy is included in the LICENSE file that accompanied this code).
-+ *
-+ * You should have received a copy of the GNU Lesser General Public License
-+ * version 3 along with OpenOffice.org.  If not, see
-+ * <http://www.openoffice.org/license.html>
-+ * for a copy of the LGPLv3 License.
-+ *
-+ ************************************************************************/
-+
-+#ifndef _BORDERHELPER_HXX
-+#define _BORDERHELPER_HXX
-+
-+#include "svtools/svtdllapi.h"
-+
-+#include <basegfx/polygon/b2dpolypolygon.hxx>
-+#include <basegfx/polygon/b2dpolygon.hxx>
-+#include <vcl/outdev.hxx>
-+
-+namespace svtools
-+{
-+    SVT_DLLPUBLIC basegfx::B2DPolyPolygon ApplyLineDashing( const basegfx::B2DPolygon& rPolygon,
-+            USHORT nDashing, MapUnit eUnit );
-+
-+    SVT_DLLPUBLIC void DrawLine( OutputDevice& rDev, const Point& rBeg,
-+            const Point& rEnd, sal_uInt32 nWidth, USHORT nDashing );
-+}
-+
-+#endif
-diff --git svtools/inc/ctrlbox.hxx svtools/inc/ctrlbox.hxx
-index c53e36a..76baa23 100644
---- svtools/inc/ctrlbox.hxx
-+++ svtools/inc/ctrlbox.hxx
-@@ -54,6 +54,10 @@ class ImpColorList;
- class ImpLineList;
- class FontList;
- 
-+#define STYLE_SOLID     ( ( USHORT ) 0 )
-+#define STYLE_DOTTED    ( ( USHORT ) 1 )
-+#define STYLE_DASHED    ( ( USHORT ) 2 )
-+
- /*************************************************************************
- 
- Beschreibung
-@@ -255,7 +259,8 @@ class SVT_DLLPUBLIC LineListBox : public ListBox
-     FieldUnit		eUnit;
-     FieldUnit		eSourceUnit;
- 
--    SVT_DLLPRIVATE void			ImpGetLine( long nLine1, long nLine2, long nDistance, Bitmap& rBmp, XubString& rStr );
-+    SVT_DLLPRIVATE void			ImpGetLine( long nLine1, long nLine2, long nDistance,
-+                                    USHORT nStyle, Bitmap& rBmp, XubString& rStr );
-     using Window::ImplInit;
-     SVT_DLLPRIVATE void			ImplInit();
-     void			UpdateLineColors( void );
-@@ -270,24 +275,30 @@ public:
- 
-     using ListBox::InsertEntry;

... etc. - the rest is truncated


More information about the ooo-build-commit mailing list