diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-25 15:51:46 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-28 11:19:00 +0200 |
commit | 7d34d4b5d23d7c29a22c9e79322dea0dad36096a (patch) | |
tree | 8a00958458b29a11aedb73b144dec26de2486697 | |
parent | 4618dd39832253ae27d1f94534a9ae7928870129 (diff) |
Moved SvxBorder* into editeng namespace to avoid duplicate DOUBLE on windows
38 files changed, 138 insertions, 128 deletions
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx index c85edc61e282..291e182ac69c 100644 --- a/sc/inc/attarray.hxx +++ b/sc/inc/attarray.hxx @@ -42,10 +42,11 @@ class ScFlatBoolRowSegments; class Rectangle; class SfxItemPoolCache; class SfxStyleSheetBase; -class SvxBorderLine; class SvxBoxItem; class SvxBoxInfoItem; +namespace editeng { class SvxBorderLine; } + #define SC_LINE_EMPTY 0 #define SC_LINE_SET 1 #define SC_LINE_DONTCARE 2 @@ -136,7 +137,7 @@ public: ScEditDataArray* pDataArray = NULL ); bool SetAttrEntries(ScAttrEntry* pNewData, SCSIZE nSize); void ApplyLineStyleArea( SCROW nStartRow, SCROW nEndRow, - const SvxBorderLine* pLine, sal_Bool bColorOnly ); + const ::editeng::SvxBorderLine* pLine, sal_Bool bColorOnly ); void ClearItems( SCROW nStartRow, SCROW nEndRow, const sal_uInt16* pWhich ); void ChangeIndent( SCROW nStartRow, SCROW nEndRow, sal_Bool bIncrement ); diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index 2240b326106d..398a3178b509 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -53,9 +53,9 @@ class EditTextObject; -class SvxBorderLine; +namespace editeng { class SvxBorderLine; } -sal_Bool SC_DLLPUBLIC ScHasPriority( const SvxBorderLine* pThis, const SvxBorderLine* pOther ); +sal_Bool SC_DLLPUBLIC ScHasPriority( const ::editeng::SvxBorderLine* pThis, const ::editeng::SvxBorderLine* pOther ); //------------------------------------------------------------------------ diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index 01a2ff592d2e..b1f703f39b9f 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -108,11 +108,12 @@ class ScCellRangeObj; class SvxUnoText; class ScLinkListener; class ScPatternAttr; -class SvxBorderLine; class SvxBoxItem; class SvxBoxInfoItem; class SvxItemPropertySet; +namespace editeng { class SvxBorderLine; } + class ScLinkListener : public SvtListener { Link aLink; @@ -139,9 +140,9 @@ SV_DECL_PTRARR_DEL( ScNamedEntryArr_Impl, ScNamedEntryPtr, 4, 4 ) class ScHelperFunctions { public: - static const SvxBorderLine* GetBorderLine( SvxBorderLine& rLine, const com::sun::star::table::BorderLine& rStruct ); + static const ::editeng::SvxBorderLine* GetBorderLine( ::editeng::SvxBorderLine& rLine, const com::sun::star::table::BorderLine& rStruct ); static void FillBoxItems( SvxBoxItem& rOuter, SvxBoxInfoItem& rInner, const com::sun::star::table::TableBorder& rBorder ); - static void FillBorderLine( com::sun::star::table::BorderLine& rStruct, const SvxBorderLine* pLine ); + static void FillBorderLine( com::sun::star::table::BorderLine& rStruct, const ::editeng::SvxBorderLine* pLine ); static void FillTableBorder( com::sun::star::table::TableBorder& rBorder, const SvxBoxItem& rOuter, const SvxBoxInfoItem& rInner ); static void ApplyBorder( ScDocShell* pDocShell, const ScRangeList& rRanges, diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 5f5fda1bd64b..c06d4786a286 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -36,6 +36,8 @@ #include <set> +namespace editeng { class SvxBorderLine; } + class Fraction; class OutputDevice; class Rectangle; @@ -45,7 +47,6 @@ class SfxItemSet; class SvtListener; class SfxPoolItem; class SfxStyleSheetBase; -class SvxBorderLine; class SvxBoxInfoItem; class SvxBoxItem; @@ -333,7 +334,7 @@ public: void ApplyStyleArea( SCROW nStartRow, SCROW nEndRow, const ScStyleSheet& rStyle ); void ApplySelectionStyle(const ScStyleSheet& rStyle, const ScMarkData& rMark); void ApplySelectionLineStyle( const ScMarkData& rMark, - const SvxBorderLine* pLine, bool bColorOnly ); + const ::editeng::SvxBorderLine* pLine, bool bColorOnly ); const ScStyleSheet* GetStyle( SCROW nRow ) const; const ScStyleSheet* GetSelectionStyle( const ScMarkData& rMark, bool& rFound ) const; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 1da2be3a19dc..1a125ef81155 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -51,6 +51,8 @@ #include <list> #include <boost/ptr_container/ptr_vector.hpp> +namespace editeng { class SvxBorderLine; } + class KeyEvent; class OutputDevice; class SdrObject; @@ -67,7 +69,6 @@ class SfxStatusBarManager; class SfxStyleSheetBase; class SvMemoryStream; class SvNumberFormatter; -class SvxBorderLine; class SvxBoxInfoItem; class SvxBoxItem; class SvxBrushItem; @@ -841,10 +842,10 @@ public: SC_DLLPUBLIC bool HasAttrib( const ScRange& rRange, sal_uInt16 nMask ) const; void GetBorderLines( SCCOL nCol, SCROW nRow, SCTAB nTab, - const SvxBorderLine** ppLeft, - const SvxBorderLine** ppTop, - const SvxBorderLine** ppRight, - const SvxBorderLine** ppBottom ) const; + const ::editeng::SvxBorderLine** ppLeft, + const ::editeng::SvxBorderLine** ppTop, + const ::editeng::SvxBorderLine** ppRight, + const ::editeng::SvxBorderLine** ppBottom ) const; void ResetChanged( const ScRange& rRange ); @@ -1216,7 +1217,7 @@ public: void ApplySelectionStyle( const ScStyleSheet& rStyle, const ScMarkData& rMark ); void ApplySelectionLineStyle( const ScMarkData& rMark, - const SvxBorderLine* pLine, sal_Bool bColorOnly ); + const ::editeng::SvxBorderLine* pLine, sal_Bool bColorOnly ); const ScStyleSheet* GetStyle( SCCOL nCol, SCROW nRow, SCTAB nTab ) const; const ScStyleSheet* GetSelectionStyle( const ScMarkData& rMark ) const; diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index c3c2e207a935..a4be4abff773 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -505,8 +505,8 @@ public: void FindMaxRotCol( RowInfo* pRowInfo, SCSIZE nArrCount, SCCOL nX1, SCCOL nX2 ); void GetBorderLines( SCCOL nCol, SCROW nRow, - const SvxBorderLine** ppLeft, const SvxBorderLine** ppTop, - const SvxBorderLine** ppRight, const SvxBorderLine** ppBottom ) const; + const ::editeng::SvxBorderLine** ppLeft, const ::editeng::SvxBorderLine** ppTop, + const ::editeng::SvxBorderLine** ppRight, const ::editeng::SvxBorderLine** ppBottom ) const; bool HasAttrib( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, sal_uInt16 nMask ) const; bool HasAttribSelection( const ScMarkData& rMark, sal_uInt16 nMask ) const; @@ -557,7 +557,7 @@ public: void ApplyStyleArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const ScStyleSheet& rStyle ); void ApplySelectionStyle(const ScStyleSheet& rStyle, const ScMarkData& rMark); void ApplySelectionLineStyle( const ScMarkData& rMark, - const SvxBorderLine* pLine, sal_Bool bColorOnly ); + const ::editeng::SvxBorderLine* pLine, sal_Bool bColorOnly ); const ScStyleSheet* GetStyle( SCCOL nCol, SCROW nRow ) const; const ScStyleSheet* GetSelectionStyle( const ScMarkData& rMark, sal_Bool& rFound ) const; diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 44cabcc2e207..d742718417ad 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -1128,7 +1128,7 @@ void Test::testDataArea() CPPUNIT_ASSERT_MESSAGE("Sheet is expected to be empty.", m_pDoc->IsBlockEmpty(0, 0, 0, 100, 100)); // Now, set borders in some cells.... - SvxBorderLine aLine(NULL, 50, SOLID); + ::editeng::SvxBorderLine aLine(NULL, 50, ::editeng::SOLID); SvxBoxItem aBorderItem(ATTR_BORDER); aBorderItem.SetLine(&aLine, BOX_LINE_LEFT); aBorderItem.SetLine(&aLine, BOX_LINE_RIGHT); diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx index 0c2f267b47b6..d0685130155e 100644 --- a/sc/source/core/data/attarray.cxx +++ b/sc/source/core/data/attarray.cxx @@ -59,6 +59,7 @@ // STATIC DATA ----------------------------------------------------------- //------------------------------------------------------------------------ +using ::editeng::SvxBorderLine; ScAttrArray::ScAttrArray( SCCOL nNewCol, SCTAB nNewTab, ScDocument* pDoc ) : nCol( nNewCol ), diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index 7474fb580d72..5de173eec222 100644 --- a/sc/source/core/data/attrib.cxx +++ b/sc/source/core/data/attrib.cxx @@ -75,7 +75,7 @@ TYPEINIT1(ScPageScaleToItem, SfxPoolItem); // allgemeine Hilfsfunktionen // -sal_Bool ScHasPriority( const SvxBorderLine* pThis, const SvxBorderLine* pOther ) +sal_Bool ScHasPriority( const ::editeng::SvxBorderLine* pThis, const ::editeng::SvxBorderLine* pOther ) { if (!pThis) diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index 22d8678ed2ad..6aa581f6b2a7 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -57,6 +57,7 @@ // nur Search ohne Optimierung! // STATIC DATA ----------------------------------------------------------- +using ::editeng::SvxBorderLine; using namespace formula; inline bool IsAmbiguousScriptNonZero( sal_uInt8 nScript ) diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 73e8e641946d..4e4ff49792d2 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -98,6 +98,7 @@ #include <map> #include <limits> +using ::editeng::SvxBorderLine; using namespace ::com::sun::star; namespace WritingMode2 = ::com::sun::star::text::WritingMode2; diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index 5e17fc64ff38..c0455819285c 100644 --- a/sc/source/core/data/dpoutput.cxx +++ b/sc/source/core/data/dpoutput.cxx @@ -157,7 +157,7 @@ void lcl_SetFrame( ScDocument* pDoc, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, sal_uInt16 nWidth ) { - SvxBorderLine aLine( NULL, nWidth, SOLID ); + ::editeng::SvxBorderLine aLine( NULL, nWidth, ::editeng::SOLID ); SvxBoxItem aBox( ATTR_BORDER ); aBox.SetLine(&aLine, BOX_LINE_LEFT); aBox.SetLine(&aLine, BOX_LINE_TOP); diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx index 8839eaf19bc1..b8c62e3a9007 100644 --- a/sc/source/core/data/fillinfo.cxx +++ b/sc/source/core/data/fillinfo.cxx @@ -67,7 +67,7 @@ enum FillInfoLinePos }; -inline const SvxBorderLine* GetNullOrLine( const SvxBoxItem* pBox, FillInfoLinePos eWhich ) +inline const ::editeng::SvxBorderLine* GetNullOrLine( const SvxBoxItem* pBox, FillInfoLinePos eWhich ) { if (pBox) { diff --git a/sc/source/core/data/scdpoutputimpl.cxx b/sc/source/core/data/scdpoutputimpl.cxx index b33821e92c47..ce2201ef872c 100644 --- a/sc/source/core/data/scdpoutputimpl.cxx +++ b/sc/source/core/data/scdpoutputimpl.cxx @@ -139,8 +139,8 @@ sal_Bool OutputImpl::AddCol( SCCOL nCol ) void OutputImpl::OutputBlockFrame ( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_Bool bHori ) { Color color = SC_DP_FRAME_COLOR; - SvxBorderLine aLine( &color, SC_DP_FRAME_INNER_BOLD ); - SvxBorderLine aOutLine( &color, SC_DP_FRAME_OUTER_BOLD ); + ::editeng::SvxBorderLine aLine( &color, SC_DP_FRAME_INNER_BOLD ); + ::editeng::SvxBorderLine aOutLine( &color, SC_DP_FRAME_OUTER_BOLD ); SvxBoxItem aBox( ATTR_BORDER ); diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx index a72a0c9953d9..0316a5ab18b7 100644 --- a/sc/source/core/data/stlpool.cxx +++ b/sc/source/core/data/stlpool.cxx @@ -265,7 +265,7 @@ void ScStyleSheetPool::CreateStandardStyles() ScPageHFItem* pHeaderItem = new ScPageHFItem( ATTR_PAGE_HEADERRIGHT ); ScPageHFItem* pFooterItem = new ScPageHFItem( ATTR_PAGE_FOOTERRIGHT ); ScStyleSheet* pSheet = NULL; - SvxBorderLine aBorderLine ( &aColBlack, DEF_LINE_WIDTH_2 ); + ::editeng::SvxBorderLine aBorderLine ( &aColBlack, DEF_LINE_WIDTH_2 ); SvxBoxItem aBoxItem ( ATTR_BORDER ); SvxBoxInfoItem aBoxInfoItem ( ATTR_BORDER_INNER ); diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 7599c6245124..69e059ce6b3c 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1909,7 +1909,7 @@ void ScTable::ApplySelectionStyle(const ScStyleSheet& rStyle, const ScMarkData& void ScTable::ApplySelectionLineStyle( const ScMarkData& rMark, - const SvxBorderLine* pLine, sal_Bool bColorOnly ) + const ::editeng::SvxBorderLine* pLine, sal_Bool bColorOnly ) { if ( bColorOnly && !pLine ) return; diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx index 5a8a71200f7e..9150255cebf3 100755 --- a/sc/source/core/tool/autoform.cxx +++ b/sc/source/core/tool/autoform.cxx @@ -917,7 +917,7 @@ ScAutoFormat::ScAutoFormat(sal_uInt16 nLim, sal_uInt16 nDel, sal_Bool bDup): // black thin border Color aBlack( COL_BLACK ); - SvxBorderLine aLine( &aBlack, DEF_LINE_WIDTH_0 ); + ::editeng::SvxBorderLine aLine( &aBlack, DEF_LINE_WIDTH_0 ); SvxBoxItem aBox( ATTR_BORDER ); aBox.SetLine(&aLine, BOX_LINE_LEFT); aBox.SetLine(&aLine, BOX_LINE_TOP); diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 8b988f379da1..eb5075c189ca 100644 --- a/sc/source/filter/excel/xestyle.cxx +++ b/sc/source/filter/excel/xestyle.cxx @@ -1546,7 +1546,7 @@ namespace { void lclGetBorderLine( sal_uInt8& rnXclLine, sal_uInt32& rnColorId, - const SvxBorderLine* pLine, XclExpPalette& rPalette, XclBiff eBiff ) + const ::editeng::SvxBorderLine* pLine, XclExpPalette& rPalette, XclBiff eBiff ) { rnXclLine = EXC_LINE_NONE; if( pLine ) @@ -1560,7 +1560,7 @@ void lclGetBorderLine( else if( nOuterWidth > DEF_LINE_WIDTH_1 ) { rnXclLine = EXC_LINE_MEDIUM; - if ( pLine->GetStyle( ) == DASHED ) + if ( pLine->GetStyle( ) == ::editeng::DASHED ) rnXclLine = EXC_LINE_MEDIUMDASHED; } else if( nOuterWidth > DEF_LINE_WIDTH_0 ) @@ -1568,10 +1568,10 @@ void lclGetBorderLine( rnXclLine = EXC_LINE_THIN; switch ( pLine->GetStyle( ) ) { - case DASHED: + case ::editeng::DASHED: rnXclLine = EXC_LINE_DASHED; break; - case DOTTED: + case ::editeng::DOTTED: rnXclLine = EXC_LINE_DOTTED; break; default: diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index bac3fe6d6eb3..d4eb332b2fb0 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -908,26 +908,26 @@ namespace { #define XLS_LINE_WIDTH_MEDIUM 18 #define XLS_LINE_WIDTH_THICK 24 -/** 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 ) +/** Converts the passed line style to a ::editeng::SvxBorderLine, or returns false, if style is "no line". */ +bool lclConvertBorderLine( ::editeng::SvxBorderLine& rLine, const XclImpPalette& rPalette, sal_uInt8 nXclLine, sal_uInt16 nXclColor ) { static const sal_uInt16 ppnLineParam[][ 4 ] = { // outer width, type - { 0, SOLID }, // 0 = none - { XLS_LINE_WIDTH_THIN, SOLID }, // 1 = thin - { XLS_LINE_WIDTH_MEDIUM, SOLID }, // 2 = medium - { XLS_LINE_WIDTH_THIN, DASHED }, // 3 = dashed - { XLS_LINE_WIDTH_THIN, DOTTED }, // 4 = dotted - { XLS_LINE_WIDTH_THICK, SOLID }, // 5 = thick - { XLS_LINE_WIDTH_THIN, DOUBLE }, // 6 = double - { XLS_LINE_WIDTH_HAIR, SOLID }, // 7 = hair - { XLS_LINE_WIDTH_MEDIUM, DASHED }, // 8 = med dash - { XLS_LINE_WIDTH_THIN, SOLID }, // 9 = thin dashdot - { XLS_LINE_WIDTH_MEDIUM, SOLID }, // A = med dashdot - { XLS_LINE_WIDTH_THIN, SOLID }, // B = thin dashdotdot - { XLS_LINE_WIDTH_MEDIUM, SOLID }, // C = med dashdotdot - { XLS_LINE_WIDTH_MEDIUM, SOLID } // D = med slant dashdot + { 0, ::editeng::SOLID }, // 0 = none + { XLS_LINE_WIDTH_THIN, ::editeng::SOLID }, // 1 = thin + { XLS_LINE_WIDTH_MEDIUM, ::editeng::SOLID }, // 2 = medium + { XLS_LINE_WIDTH_THIN, ::editeng::DASHED }, // 3 = dashed + { XLS_LINE_WIDTH_THIN, ::editeng::DOTTED }, // 4 = dotted + { XLS_LINE_WIDTH_THICK, ::editeng::SOLID }, // 5 = thick + { XLS_LINE_WIDTH_THIN, ::editeng::DOUBLE }, // 6 = double + { XLS_LINE_WIDTH_HAIR, ::editeng::SOLID }, // 7 = hair + { XLS_LINE_WIDTH_MEDIUM, ::editeng::DASHED }, // 8 = med dash + { XLS_LINE_WIDTH_THIN, ::editeng::SOLID }, // 9 = thin dashdot + { XLS_LINE_WIDTH_MEDIUM, ::editeng::SOLID }, // A = med dashdot + { XLS_LINE_WIDTH_THIN, ::editeng::SOLID }, // B = thin dashdotdot + { XLS_LINE_WIDTH_MEDIUM, ::editeng::SOLID }, // C = med dashdotdot + { XLS_LINE_WIDTH_MEDIUM, ::editeng::SOLID } // D = med slant dashdot }; if( nXclLine == EXC_LINE_NONE ) @@ -937,7 +937,7 @@ bool lclConvertBorderLine( SvxBorderLine& rLine, const XclImpPalette& rPalette, rLine.SetColor( rPalette.GetColor( nXclColor ) ); rLine.SetWidth( ppnLineParam[ nXclLine ][ 0 ] ); - rLine.SetStyle( (SvxBorderStyle)ppnLineParam[ nXclLine ][ 1 ] ); + rLine.SetStyle( (::editeng::SvxBorderStyle)ppnLineParam[ nXclLine ][ 1 ] ); return true; } @@ -948,7 +948,7 @@ void XclImpCellBorder::FillToItemSet( SfxItemSet& rItemSet, const XclImpPalette& if( mbLeftUsed || mbRightUsed || mbTopUsed || mbBottomUsed ) { SvxBoxItem aBoxItem( ATTR_BORDER ); - SvxBorderLine aLine; + ::editeng::SvxBorderLine aLine; if( mbLeftUsed && lclConvertBorderLine( aLine, rPalette, mnLeftLine, mnLeftColor ) ) aBoxItem.SetLine( &aLine, BOX_LINE_LEFT ); if( mbRightUsed && lclConvertBorderLine( aLine, rPalette, mnRightLine, mnRightColor ) ) @@ -963,7 +963,7 @@ void XclImpCellBorder::FillToItemSet( SfxItemSet& rItemSet, const XclImpPalette& { SvxLineItem aTLBRItem( ATTR_BORDER_TLBR ); SvxLineItem aBLTRItem( ATTR_BORDER_BLTR ); - SvxBorderLine aLine; + ::editeng::SvxBorderLine aLine; if( lclConvertBorderLine( aLine, rPalette, mnDiagLine, mnDiagColor ) ) { if( mbDiagTLtoBR ) diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx index 7573b9427243..1c97b00152e6 100644 --- a/sc/source/filter/html/htmlexp.cxx +++ b/sc/source/filter/html/htmlexp.cxx @@ -102,6 +102,7 @@ #include <com/sun/star/document/XDocumentProperties.hpp> #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp> +using ::editeng::SvxBorderLine; //======================================================================== @@ -511,22 +512,22 @@ void ScHTMLExport::BorderToStyle( ByteString& rOut, const char* pBorderName, (rOut += ByteString::CreateFromInt32( nPxWidth )) += "px "; switch ( pLine->GetStyle() ) { - case SOLID: rOut += "solid"; break; - case DOTTED: rOut += "dotted"; break; - case DASHED: rOut += "dashed"; break; - case DOUBLE: - case THINTHICK_SMALLGAP: - case THINTHICK_MEDIUMGAP: - case THINTHICK_LARGEGAP: - case THICKTHIN_SMALLGAP: - case THICKTHIN_MEDIUMGAP: - case THICKTHIN_LARGEGAP: + case ::editeng::SOLID: rOut += "solid"; break; + case ::editeng::DOTTED: rOut += "dotted"; break; + case ::editeng::DASHED: rOut += "dashed"; break; + case ::editeng::DOUBLE: + case ::editeng::THINTHICK_SMALLGAP: + case ::editeng::THINTHICK_MEDIUMGAP: + case ::editeng::THINTHICK_LARGEGAP: + case ::editeng::THICKTHIN_SMALLGAP: + case ::editeng::THICKTHIN_MEDIUMGAP: + case ::editeng::THICKTHIN_LARGEGAP: rOut += "double"; break; - case EMBOSSED: rOut += "ridge"; break; - case ENGRAVED: rOut += "groove"; break; - case OUTSET: rOut += "outset"; break; - case INSET: rOut += "inset"; break; + case ::editeng::EMBOSSED: rOut += "ridge"; break; + case ::editeng::ENGRAVED: rOut += "groove"; break; + case ::editeng::OUTSET: rOut += "outset"; break; + case ::editeng::INSET: rOut += "inset"; break; default: rOut += "hidden"; } rOut += " #"; diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 05d71399c4c4..7af88be0b100 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -67,7 +67,7 @@ #include <com/sun/star/document/XDocumentProperties.hpp> #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp> - +using ::editeng::SvxBorderLine; using namespace ::com::sun::star; @@ -2192,8 +2192,8 @@ void ScHTMLTable::ApplyCellBorders( ScDocument* pDoc, const ScAddress& rFirstPos const SCROW nLastRow = maSize.mnRows - 1; const long nOuterLine = DEF_LINE_WIDTH_2; const long nInnerLine = DEF_LINE_WIDTH_0; - SvxBorderLine aOuterLine( NULL, nOuterLine, SOLID ); - SvxBorderLine aInnerLine( NULL, nInnerLine, SOLID ); + SvxBorderLine aOuterLine( NULL, nOuterLine, ::editeng::SOLID ); + SvxBorderLine aInnerLine( NULL, nInnerLine, ::editeng::SOLID ); SvxBoxItem aBorderItem( ATTR_BORDER ); for( SCCOL nCol = 0; nCol <= nLastCol; ++nCol ) diff --git a/sc/source/filter/inc/excrecds.hxx b/sc/source/filter/inc/excrecds.hxx index b579b28e782e..781f985fa416 100644 --- a/sc/source/filter/inc/excrecds.hxx +++ b/sc/source/filter/inc/excrecds.hxx @@ -51,8 +51,6 @@ //------------------------------------------------------------------ Forwards - -class SvxBorderLine; - class SvStream; class Font; class List; diff --git a/sc/source/filter/inc/htmlexp.hxx b/sc/source/filter/inc/htmlexp.hxx index 705d118178cf..6bbc62b2f52d 100644 --- a/sc/source/filter/inc/htmlexp.hxx +++ b/sc/source/filter/inc/htmlexp.hxx @@ -47,7 +47,8 @@ class OutputDevice; class ScDrawLayer; class SvStringsSortDtor; class ScEditCell; -class SvxBorderLine; + +namespace editeng { class SvxBorderLine; } struct ScHTMLStyle { // Defaults aus StyleSheet @@ -153,7 +154,7 @@ class ScHTMLExport : public ScExportBase SCCOL nEndCol, SCROW nEndRow ); void BorderToStyle( ByteString& rOut, const char* pBorderName, - const SvxBorderLine* pLine, bool& bInsertSemicolon ); + const ::editeng::SvxBorderLine* pLine, bool& bInsertSemicolon ); sal_uInt16 GetFontSizeNumber( sal_uInt16 nHeight ); const char* GetFontSizeCss( sal_uInt16 nHeight ); diff --git a/sc/source/filter/inc/lotattr.hxx b/sc/source/filter/inc/lotattr.hxx index f882e07680db..3279efc5fa30 100644 --- a/sc/source/filter/inc/lotattr.hxx +++ b/sc/source/filter/inc/lotattr.hxx @@ -39,11 +39,12 @@ class ScDocument; class ScDocumentPool; class ScPatternAttr; -class SvxBorderLine; class SvxColorItem; class Color; class LotAttrTable; +namespace editeng { class SvxBorderLine; } + struct LotAttrWK3 { sal_uInt8 nFont; @@ -101,7 +102,7 @@ private: ( ( sal_uInt8* ) &rOut )[ 3 ] = rAttr.nBack; } - static void LotusToScBorderLine( sal_uInt8 nLine, SvxBorderLine& ); + static void LotusToScBorderLine( sal_uInt8 nLine, ::editeng::SvxBorderLine& ); const SvxColorItem& GetColorItem( const sal_uInt8 nLotIndex ) const; diff --git a/sc/source/filter/inc/lotimpop.hxx b/sc/source/filter/inc/lotimpop.hxx index 8856f45cb4a9..d714611e03bd 100644 --- a/sc/source/filter/inc/lotimpop.hxx +++ b/sc/source/filter/inc/lotimpop.hxx @@ -39,7 +39,6 @@ class ScFormulaCell; class LotusFontBuffer; -class SvxBorderLine; class ImportLotus : public ImportTyp diff --git a/sc/source/filter/lotus/lotattr.cxx b/sc/source/filter/lotus/lotattr.cxx index 24e9d2509a8e..6e1a8519c1a6 100644 --- a/sc/source/filter/lotus/lotattr.cxx +++ b/sc/source/filter/lotus/lotattr.cxx @@ -124,7 +124,7 @@ const ScPatternAttr& LotAttrCache::GetPattAttr( const LotAttrWK3& rAttr ) if( nLine ) { SvxBoxItem aBox( ATTR_BORDER ); - SvxBorderLine aTop, aLeft, aBottom, aRight; + ::editeng::SvxBorderLine aTop, aLeft, aBottom, aRight; LotusToScBorderLine( nLine, aLeft ); nLine >>= 2; @@ -168,19 +168,19 @@ const ScPatternAttr& LotAttrCache::GetPattAttr( const LotAttrWK3& rAttr ) } -void LotAttrCache::LotusToScBorderLine( sal_uInt8 nLine, SvxBorderLine& aBL ) +void LotAttrCache::LotusToScBorderLine( sal_uInt8 nLine, ::editeng::SvxBorderLine& aBL ) { nLine &= 0x03; switch ( nLine ) { default: - case 0: aBL.SetStyle( NO_STYLE ); break; + case 0: aBL.SetStyle( ::editeng::NO_STYLE ); break; case 1: aBL.SetWidth( DEF_LINE_WIDTH_1 ); break; case 2: aBL.SetWidth( DEF_LINE_WIDTH_2 ); break; case 3: { - aBL.SetStyle( DOUBLE ); + aBL.SetStyle( ::editeng::DOUBLE ); aBL.SetWidth( DEF_LINE_WIDTH_1 ); } break; diff --git a/sc/source/filter/starcalc/scflt.cxx b/sc/source/filter/starcalc/scflt.cxx index b72e65530f96..0a349a36697c 100644 --- a/sc/source/filter/starcalc/scflt.cxx +++ b/sc/source/filter/starcalc/scflt.cxx @@ -839,7 +839,7 @@ void Sc10PageCollection::PutToDoc( ScDocument* pDoc ) lcl_ChangeColor(cTop, ColorTop); lcl_ChangeColor(cRight, ColorRight); lcl_ChangeColor(cBottom, ColorBottom); - SvxBorderLine aLine; + ::editeng::SvxBorderLine aLine; SvxBoxItem aBox( ATTR_BORDER ); aLine.SetWidth(nLeft); aLine.SetColor(ColorLeft); @@ -1275,7 +1275,7 @@ void Sc10Import::LoadPatternCollection() lcl_ChangeColor( cRight, ColorRight ); lcl_ChangeColor( cBottom, ColorBottom ); - SvxBorderLine aLine; + ::editeng::SvxBorderLine aLine; SvxBoxItem aBox( ATTR_BORDER ); aLine.SetWidth( nLeft ); @@ -1930,7 +1930,7 @@ void Sc10Import::LoadColAttr(SCCOL Col, SCTAB Tab) if( ( nStart <= nEnd ) && ( nValue != 0 ) ) { ScPatternAttr aScPattern(pDoc->GetPool()); - SvxBorderLine aLine; + ::editeng::SvxBorderLine aLine; SvxBoxItem aBox( ATTR_BORDER ); aLine.SetWidth( nLeft ); diff --git a/sc/source/ui/inc/autofmt.hxx b/sc/source/ui/inc/autofmt.hxx index 408e5a892107..4950341129dc 100644 --- a/sc/source/ui/inc/autofmt.hxx +++ b/sc/source/ui/inc/autofmt.hxx @@ -112,27 +112,27 @@ private: Font& rCTLFont ); SC_DLLPRIVATE String MakeNumberString( String cellString, sal_Bool bAddDec ); - SC_DLLPRIVATE void DrawFrameLine ( const SvxBorderLine& rLineD, + SC_DLLPRIVATE void DrawFrameLine ( const ::editeng::SvxBorderLine& rLineD, Point from, Point to, sal_Bool bHorizontal, - const SvxBorderLine& rLineLT, - const SvxBorderLine& rLineL, - const SvxBorderLine& rLineLB, - const SvxBorderLine& rLineRT, - const SvxBorderLine& rLineR, - const SvxBorderLine& rLineRB ); + const ::editeng::SvxBorderLine& rLineLT, + const ::editeng::SvxBorderLine& rLineL, + const ::editeng::SvxBorderLine& rLineLB, + const ::editeng::SvxBorderLine& rLineRT, + const ::editeng::SvxBorderLine& rLineR, + const ::editeng::SvxBorderLine& rLineRB ); SC_DLLPRIVATE void CheckPriority ( sal_uInt16 nCurLine, AutoFmtLine eLine, - SvxBorderLine& rLine ); + ::editeng::SvxBorderLine& rLine ); SC_DLLPRIVATE void GetLines ( sal_uInt16 nIndex, AutoFmtLine eLine, - SvxBorderLine& rLineD, - SvxBorderLine& rLineLT, - SvxBorderLine& rLineL, - SvxBorderLine& rLineLB, - SvxBorderLine& rLineRT, - SvxBorderLine& rLineR, - SvxBorderLine& rLineRB ); + ::editeng::SvxBorderLine& rLineD, + ::editeng::SvxBorderLine& rLineLT, + ::editeng::SvxBorderLine& rLineL, + ::editeng::SvxBorderLine& rLineLB, + ::editeng::SvxBorderLine& rLineRT, + ::editeng::SvxBorderLine& rLineR, + ::editeng::SvxBorderLine& rLineRB ); }; #endif // SC_AUTOFMT_HXX diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index 49fd72ea8106..c39d9a42a206 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -46,7 +46,6 @@ class SdrOle2Obj; class SfxBindings; class SfxChildWindow; class SfxModelessDialog; -class SvxBorderLine; class SvxBoxObjectRef; class SvxNumberInfoItem; struct SfxChildWinInfo; @@ -70,6 +69,8 @@ class ScNavigatorSettings; struct ScHeaderFieldData; +namespace editeng { class SvxBorderLine; } + namespace com { namespace sun { namespace star { namespace frame { class XDispatchProviderInterceptor; } } } } @@ -130,7 +131,7 @@ private: ScInputHandler* pInputHandler; // fuer OLE-Eingabezeile - SvxBorderLine* pCurFrameLine; + ::editeng::SvxBorderLine* pCurFrameLine; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor > @@ -260,8 +261,8 @@ public: void SetActive(); - SvxBorderLine* GetDefaultFrameLine() const { return pCurFrameLine; } - void SetDefaultFrameLine(const SvxBorderLine* pLine ); + ::editeng::SvxBorderLine* GetDefaultFrameLine() const { return pCurFrameLine; } + void SetDefaultFrameLine(const ::editeng::SvxBorderLine* pLine ); SC_DLLPUBLIC void Execute( SfxRequest& rReq ); SC_DLLPUBLIC void GetState( SfxItemSet& rSet ); diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx index 9306cb8c3ad3..785b730d6945 100644 --- a/sc/source/ui/inc/viewfunc.hxx +++ b/sc/source/ui/inc/viewfunc.hxx @@ -46,7 +46,6 @@ class ScPatternAttr; class ScAutoFormatData; class SvxSearchItem; class SfxItemSet; -class SvxBorderLine; class SvxBoxItem; class SvxBoxInfoItem; class SfxStyleSheetBase; @@ -67,6 +66,8 @@ class SvxHyperlinkItem; class ScTransferObj; class ScTableProtection; +namespace editeng { class SvxBorderLine; } + namespace com { namespace sun { namespace star { namespace datatransfer { class XTransferable; } } } } //================================================================== @@ -298,7 +299,7 @@ public: void InsertDraw(); - void SetSelectionFrameLines( const SvxBorderLine* pLine, + void SetSelectionFrameLines( const ::editeng::SvxBorderLine* pLine, sal_Bool bColorOnly ); void SetNoteText( const ScAddress& rPos, const String& rNoteText ); @@ -345,9 +346,9 @@ public: // interne Hilfsfunktionen protected: - void UpdateLineAttrs( SvxBorderLine& rLine, - const SvxBorderLine* pDestLine, - const SvxBorderLine* pSrcLine, + void UpdateLineAttrs( ::editeng::SvxBorderLine& rLine, + const ::editeng::SvxBorderLine* pDestLine, + const ::editeng::SvxBorderLine* pSrcLine, sal_Bool bColor ); diff --git a/sc/source/ui/miscdlgs/autofmt.cxx b/sc/source/ui/miscdlgs/autofmt.cxx index 3cc608c0c8d0..caf44d10f8ef 100644 --- a/sc/source/ui/miscdlgs/autofmt.cxx +++ b/sc/source/ui/miscdlgs/autofmt.cxx @@ -470,7 +470,7 @@ void ScAutoFmtPreview::CalcCellArray( sal_Bool bFitWidthP ) //------------------------------------------------------------------------ -inline void lclSetStyleFromBorder( svx::frame::Style& rStyle, const SvxBorderLine* pBorder ) +inline void lclSetStyleFromBorder( svx::frame::Style& rStyle, const ::editeng::SvxBorderLine* pBorder ) { rStyle.Set( pBorder, 1.0 / TWIPS_PER_POINT, 5 ); } diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 0e1795fdff6f..c1f5941bd5e4 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -949,11 +949,11 @@ ScSubTotalFunc lcl_SummaryToSubTotal( sheet::GeneralFunction eSummary ) //------------------------------------------------------------------------ -const SvxBorderLine* ScHelperFunctions::GetBorderLine( SvxBorderLine& rLine, const table::BorderLine& rStruct ) +const ::editeng::SvxBorderLine* ScHelperFunctions::GetBorderLine( ::editeng::SvxBorderLine& rLine, const table::BorderLine& rStruct ) { // Calc needs Twips, and there are 1/100mm in the Uno structure const table::BorderLine2& rBorder2 = static_cast< const table::BorderLine2& >( rStruct ); - rLine.SetStyle( SvxBorderStyle( rBorder2.LineStyle ) ); + rLine.SetStyle( ::editeng::SvxBorderStyle( rBorder2.LineStyle ) ); rLine.GuessLinesWidths( rLine.GetStyle(), (sal_uInt16)HMMToTwips( rStruct.OuterLineWidth ), (sal_uInt16)HMMToTwips( rStruct.InnerLineWidth ), @@ -968,7 +968,7 @@ const SvxBorderLine* ScHelperFunctions::GetBorderLine( SvxBorderLine& rLine, con void ScHelperFunctions::FillBoxItems( SvxBoxItem& rOuter, SvxBoxInfoItem& rInner, const table::TableBorder& rBorder ) { - SvxBorderLine aLine; + ::editeng::SvxBorderLine aLine; rOuter.SetDistance( (sal_uInt16)HMMToTwips( rBorder.Distance ) ); rOuter.SetLine( ScHelperFunctions::GetBorderLine( aLine, rBorder.TopLine ), BOX_LINE_TOP ); rOuter.SetLine( ScHelperFunctions::GetBorderLine( aLine, rBorder.BottomLine ), BOX_LINE_BOTTOM ); @@ -986,7 +986,7 @@ void ScHelperFunctions::FillBoxItems( SvxBoxItem& rOuter, SvxBoxInfoItem& rInner rInner.SetTable( sal_True ); } -void ScHelperFunctions::FillBorderLine( table::BorderLine& rStruct, const SvxBorderLine* pLine ) +void ScHelperFunctions::FillBorderLine( table::BorderLine& rStruct, const ::editeng::SvxBorderLine* pLine ) { if (pLine) { diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx index 6f787a5e6928..eb839d58ce5d 100644 --- a/sc/source/ui/view/formatsh.cxx +++ b/sc/source/ui/view/formatsh.cxx @@ -1500,14 +1500,14 @@ void ScFormatShell::ExecuteAttr( SfxRequest& rReq ) case SID_FRAME_LINESTYLE: { // Default-Linie aktualisieren - const SvxBorderLine* pLine = + const ::editeng::SvxBorderLine* pLine = ((const SvxLineItem&) pNewAttrs->Get( SID_FRAME_LINESTYLE )). GetLine(); if ( pLine ) { - SvxBorderLine* pDefLine = pTabViewShell->GetDefaultFrameLine(); + ::editeng::SvxBorderLine* pDefLine = pTabViewShell->GetDefaultFrameLine(); if ( pDefLine ) { @@ -1525,7 +1525,7 @@ void ScFormatShell::ExecuteAttr( SfxRequest& rReq ) else { Color aColorBlack( COL_BLACK ); - SvxBorderLine aDefLine( &aColorBlack, 20, SOLID ); + ::editeng::SvxBorderLine aDefLine( &aColorBlack, 20, ::editeng::SOLID ); pTabViewShell->SetDefaultFrameLine( &aDefLine ); pTabViewShell->SetSelectionFrameLines( NULL, false ); } @@ -1534,7 +1534,7 @@ void ScFormatShell::ExecuteAttr( SfxRequest& rReq ) case SID_FRAME_LINECOLOR: { - SvxBorderLine* pDefLine = pTabViewShell->GetDefaultFrameLine(); + ::editeng::SvxBorderLine* pDefLine = pTabViewShell->GetDefaultFrameLine(); const Color& rColor = ((const SvxColorItem&) pNewAttrs->Get( SID_FRAME_LINECOLOR )). GetValue(); @@ -1547,7 +1547,7 @@ void ScFormatShell::ExecuteAttr( SfxRequest& rReq ) } else { - SvxBorderLine aDefLine( &rColor, 20, SOLID ); + ::editeng::SvxBorderLine aDefLine( &rColor, 20, ::editeng::SOLID ); pTabViewShell->SetDefaultFrameLine( &aDefLine ); pTabViewShell->SetSelectionFrameLines( &aDefLine, false ); } @@ -1557,7 +1557,7 @@ void ScFormatShell::ExecuteAttr( SfxRequest& rReq ) case SID_ATTR_BORDER_OUTER: case SID_ATTR_BORDER: { - SvxBorderLine* pDefLine = pTabViewShell->GetDefaultFrameLine(); + ::editeng::SvxBorderLine* pDefLine = pTabViewShell->GetDefaultFrameLine(); const ScPatternAttr* pOldAttrs = pTabViewShell->GetSelectionPattern(); ScDocument* pDoc = GetViewData()->GetDocument(); SfxItemSet* pOldSet = @@ -1676,7 +1676,7 @@ void ScFormatShell::GetAttrState( SfxItemSet& rSet ) { ScTabViewShell* pTabViewShell = GetViewData()->GetViewShell(); const SfxItemSet& rAttrSet = pTabViewShell->GetSelectionPattern()->GetItemSet(); - const SvxBorderLine* pLine = pTabViewShell->GetDefaultFrameLine(); + const ::editeng::SvxBorderLine* pLine = pTabViewShell->GetDefaultFrameLine(); const SvxBrushItem& rBrushItem = (const SvxBrushItem&)rAttrSet.Get( ATTR_BACKGROUND ); SfxWhichIter aIter( rSet ); sal_uInt16 nWhich = aIter.FirstWhich(); diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index ad6fd2a8e5f3..b1143ced0b10 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -1243,7 +1243,7 @@ void ScOutputData::DrawFrame() // Linie unter der Zelle -const SvxBorderLine* lcl_FindHorLine( ScDocument* pDoc, +const ::editeng::SvxBorderLine* lcl_FindHorLine( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nRotDir, sal_Bool bTopLine ) { @@ -1279,12 +1279,12 @@ const SvxBorderLine* lcl_FindHorLine( ScDocument* pDoc, if (bTopLine) --nRow; - const SvxBorderLine* pThisBottom; + const ::editeng::SvxBorderLine* pThisBottom; if ( ValidRow(nRow) ) pThisBottom = ((const SvxBoxItem*)pDoc->GetAttr( nCol, nRow, nTab, ATTR_BORDER ))->GetBottom(); else pThisBottom = NULL; - const SvxBorderLine* pNextTop; + const ::editeng::SvxBorderLine* pNextTop; if ( nRow < MAXROW ) pNextTop = ((const SvxBoxItem*)pDoc->GetAttr( nCol, nRow+1, nTab, ATTR_BORDER ))->GetTop(); else @@ -1491,10 +1491,10 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor ) if ( nX < nX1 || nX > nX2 ) // Attribute in FillInfo nicht gesetzt { //! Seitengrenzen fuer Druck beruecksichtigen !!!!! - const SvxBorderLine* pLeftLine; - const SvxBorderLine* pTopLine; - const SvxBorderLine* pRightLine; - const SvxBorderLine* pBottomLine; + const ::editeng::SvxBorderLine* pLeftLine; + const ::editeng::SvxBorderLine* pTopLine; + const ::editeng::SvxBorderLine* pRightLine; + const ::editeng::SvxBorderLine* pBottomLine; pDoc->GetBorderLines( nX, nY, nTab, &pLeftLine, &pTopLine, &pRightLine, &pBottomLine ); aTopLine.Set( pTopLine, nPPTY ); diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index ea68f678ca7f..c60ab4946b9d 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx @@ -178,7 +178,7 @@ size_t ScPageRowEntry::CountVisible() const //------------------------------------------------------------------------ -long lcl_LineTotal(const SvxBorderLine* pLine) +long lcl_LineTotal(const ::editeng::SvxBorderLine* pLine) { return pLine ? ( pLine->GetOutWidth() + pLine->GetInWidth() + pLine->GetDistance() ) : 0; } diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 8910c12bdaec..2b2690072238 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -1505,7 +1505,7 @@ void ScTabViewShell::Construct( sal_uInt8 nForceDesignMode ) SetPool( &SC_MOD()->GetPool() ); SetWindow( GetActiveWin() ); - pCurFrameLine = new SvxBorderLine( &aColBlack, 20, SOLID ); + pCurFrameLine = new ::editeng::SvxBorderLine( &aColBlack, 20, ::editeng::SOLID ); pPivotSource = new ScArea; StartListening(*GetViewData()->GetDocShell(),sal_True); StartListening(*GetViewFrame(),sal_True); diff --git a/sc/source/ui/view/tabvwsh8.cxx b/sc/source/ui/view/tabvwsh8.cxx index d230a3ab3483..286abafbfe9a 100644 --- a/sc/source/ui/view/tabvwsh8.cxx +++ b/sc/source/ui/view/tabvwsh8.cxx @@ -42,12 +42,12 @@ //------------------------------------------------------------------ -void ScTabViewShell::SetDefaultFrameLine( const SvxBorderLine* pLine ) +void ScTabViewShell::SetDefaultFrameLine( const ::editeng::SvxBorderLine* pLine ) { if ( pLine ) { delete pCurFrameLine; - pCurFrameLine = new SvxBorderLine( &pLine->GetColor(), + pCurFrameLine = new ::editeng::SvxBorderLine( &pLine->GetColor(), pLine->GetWidth(), pLine->GetStyle() ); } diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 953b7dffcb71..17bf069f274d 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -103,6 +103,7 @@ using namespace com::sun::star; using ::rtl::OUStringBuffer; using ::rtl::OUString; +using ::editeng::SvxBorderLine; using ::std::vector; using ::std::auto_ptr; |