diff options
Diffstat (limited to 'svx/source/table/svdotable.cxx')
-rw-r--r-- | svx/source/table/svdotable.cxx | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index b54e4150543b..6692ef7020fb 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -194,7 +194,6 @@ bool TableStyleSettings::operator==( const TableStyleSettings& rStyle ) const } - class SdrTableObjImpl : public TableDesignUser, public ::cppu::WeakImplHelper< css::util::XModifyListener > { public: @@ -265,7 +264,6 @@ SdrTableObjImpl::SdrTableObjImpl() } - SdrTableObjImpl::~SdrTableObjImpl() { if( lastLayoutTable == this ) @@ -273,7 +271,6 @@ SdrTableObjImpl::~SdrTableObjImpl() } - void SdrTableObjImpl::init( SdrTableObj* pTable, sal_Int32 nColumns, sal_Int32 nRows ) { mpTableObj = pTable; @@ -287,7 +284,6 @@ void SdrTableObjImpl::init( SdrTableObj* pTable, sal_Int32 nColumns, sal_Int32 n } - SdrTableObjImpl& SdrTableObjImpl::operator=( const SdrTableObjImpl& rSource ) { if (this != &rSource) @@ -325,7 +321,6 @@ SdrTableObjImpl& SdrTableObjImpl::operator=( const SdrTableObjImpl& rSource ) } - void SdrTableObjImpl::SetModel(SdrModel* /*pOldModel*/, SdrModel* pNewModel) { // try to find new table style @@ -365,7 +360,6 @@ void SdrTableObjImpl::SetModel(SdrModel* /*pOldModel*/, SdrModel* pNewModel) } - void SdrTableObjImpl::ApplyCellStyles() { if( !mxTable.is() || !mxTableStyle.is() ) @@ -458,7 +452,6 @@ void SdrTableObjImpl::ApplyCellStyles() } - void SdrTableObjImpl::dispose() { disconnectTableStyle(); @@ -480,7 +473,6 @@ void SdrTableObjImpl::dispose() } - void SdrTableObjImpl::DragEdge( bool mbHorizontal, int nEdge, sal_Int32 nOffset ) { if( (nEdge >= 0) && mxTable.is()) try @@ -597,7 +589,6 @@ void SdrTableObjImpl::update() } - void SdrTableObjImpl::connectTableStyle() { if( mxTableStyle.is() ) @@ -612,7 +603,6 @@ void SdrTableObjImpl::connectTableStyle() } - void SdrTableObjImpl::disconnectTableStyle() { if( mxTableStyle.is() ) @@ -627,7 +617,6 @@ void SdrTableObjImpl::disconnectTableStyle() } - bool SdrTableObjImpl::isInUse() { return mpTableObj && mpTableObj->IsInserted(); @@ -650,7 +639,6 @@ void SAL_CALL SdrTableObjImpl::disposing( const css::lang::EventObject& /*Source } - CellRef SdrTableObjImpl::getCell( const CellPos& rPos ) const { CellRef xCell; @@ -666,14 +654,12 @@ CellRef SdrTableObjImpl::getCell( const CellPos& rPos ) const } - sal_Int32 SdrTableObjImpl::getColumnCount() const { return mxTable.is() ? mxTable->getColumnCount() : 0; } - sal_Int32 SdrTableObjImpl::getRowCount() const { return mxTable.is() ? mxTable->getRowCount() : 0; @@ -742,10 +728,6 @@ sdr::contact::ViewContact* SdrTableObj::CreateObjectSpecificViewContact() } - - - - SdrTableObj::SdrTableObj(SdrModel* _pModel) { pModel = _pModel; @@ -753,7 +735,6 @@ SdrTableObj::SdrTableObj(SdrModel* _pModel) } - SdrTableObj::SdrTableObj(SdrModel* _pModel, const ::Rectangle& rNewRect, sal_Int32 nColumns, sal_Int32 nRows) : SdrTextObj( rNewRect ) , maLogicRect( rNewRect ) @@ -770,7 +751,6 @@ SdrTableObj::SdrTableObj(SdrModel* _pModel, const ::Rectangle& rNewRect, sal_Int } - void SdrTableObj::init( sal_Int32 nColumns, sal_Int32 nRows ) { bClosedObj = true; @@ -781,7 +761,6 @@ void SdrTableObj::init( sal_Int32 nColumns, sal_Int32 nRows ) } - SdrTableObj::~SdrTableObj() { mpImpl->dispose(); @@ -798,21 +777,18 @@ Reference< XTable > SdrTableObj::getTable() const } - bool SdrTableObj::isValid( const CellPos& rPos ) const { return (rPos.mnCol >= 0) && (rPos.mnCol < mpImpl->getColumnCount()) && (rPos.mnRow >= 0) && (rPos.mnRow < mpImpl->getRowCount()); } - CellPos SdrTableObj::getFirstCell() { return CellPos( 0,0 ); } - CellPos SdrTableObj::getLastCell() const { CellPos aPos; @@ -825,7 +801,6 @@ CellPos SdrTableObj::getLastCell() const } - CellPos SdrTableObj::getLeftCell( const CellPos& rPos, bool bEdgeTravel ) const { switch( GetWritingMode() ) @@ -841,7 +816,6 @@ CellPos SdrTableObj::getLeftCell( const CellPos& rPos, bool bEdgeTravel ) const } - CellPos SdrTableObj::getRightCell( const CellPos& rPos, bool bEdgeTravel ) const { switch( GetWritingMode() ) @@ -857,7 +831,6 @@ CellPos SdrTableObj::getRightCell( const CellPos& rPos, bool bEdgeTravel ) cons } - CellPos SdrTableObj::getUpCell( const CellPos& rPos, bool bEdgeTravel ) const { switch( GetWritingMode() ) @@ -872,7 +845,6 @@ CellPos SdrTableObj::getUpCell( const CellPos& rPos, bool bEdgeTravel ) const } - CellPos SdrTableObj::getDownCell( const CellPos& rPos, bool bEdgeTravel ) const { switch( GetWritingMode() ) @@ -887,7 +859,6 @@ CellPos SdrTableObj::getDownCell( const CellPos& rPos, bool bEdgeTravel ) const } - CellPos SdrTableObj::getPreviousCell( const CellPos& rPos, bool bEdgeTravel ) const { CellPos aPos( rPos ); @@ -915,7 +886,6 @@ CellPos SdrTableObj::getPreviousCell( const CellPos& rPos, bool bEdgeTravel ) co } - CellPos SdrTableObj::getNextCell( const CellPos& rPos, bool bEdgeTravel ) const { CellPos aPos( rPos ); @@ -958,7 +928,6 @@ CellPos SdrTableObj::getNextCell( const CellPos& rPos, bool bEdgeTravel ) const } - CellPos SdrTableObj::getPreviousRow( const CellPos& rPos, bool bEdgeTravel ) const { CellPos aPos( rPos ); @@ -988,7 +957,6 @@ CellPos SdrTableObj::getPreviousRow( const CellPos& rPos, bool bEdgeTravel ) con } - CellPos SdrTableObj::getNextRow( const CellPos& rPos, bool bEdgeTravel ) const { CellPos aPos( rPos ); @@ -1032,7 +1000,6 @@ CellPos SdrTableObj::getNextRow( const CellPos& rPos, bool bEdgeTravel ) const } - const TableStyleSettings& SdrTableObj::getTableStyleSettings() const { if( mpImpl ) @@ -1047,7 +1014,6 @@ const TableStyleSettings& SdrTableObj::getTableStyleSettings() const } - void SdrTableObj::setTableStyleSettings( const TableStyleSettings& rStyle ) { if( mpImpl ) @@ -1058,7 +1024,6 @@ void SdrTableObj::setTableStyleSettings( const TableStyleSettings& rStyle ) } - TableHitKind SdrTableObj::CheckTableHit( const Point& rPos, sal_Int32& rnX, sal_Int32& rnY, int nTol ) const { if( !mpImpl || !mpImpl->mxTable.is() ) @@ -1186,7 +1151,6 @@ const SfxItemSet& SdrTableObj::GetActiveCellItemSet() const } - void SdrTableObj::setTableStyle( const Reference< XIndexAccess >& xTableStyle ) { if( mpImpl && (mpImpl->mxTableStyle != xTableStyle) ) @@ -1199,7 +1163,6 @@ void SdrTableObj::setTableStyle( const Reference< XIndexAccess >& xTableStyle ) } - const Reference< XIndexAccess >& SdrTableObj::getTableStyle() const { if( mpImpl ) @@ -1224,7 +1187,6 @@ SdrText* SdrTableObj::getActiveText() const } - /** returns the nth available text. */ SdrText* SdrTableObj::getText( sal_Int32 nIndex ) const { @@ -1243,7 +1205,6 @@ SdrText* SdrTableObj::getText( sal_Int32 nIndex ) const } - /** returns the number of texts available for this object. */ sal_Int32 SdrTableObj::getTextCount() const { @@ -1261,7 +1222,6 @@ sal_Int32 SdrTableObj::getTextCount() const } - /** changes the current active text */ void SdrTableObj::setActiveText( sal_Int32 nIndex ) { @@ -1278,7 +1238,6 @@ void SdrTableObj::setActiveText( sal_Int32 nIndex ) } - /** returns the index of the text that contains the given point or -1 */ sal_Int32 SdrTableObj::CheckTextHit(const Point& rPnt) const { @@ -1327,7 +1286,6 @@ bool SdrTableObj::IsTextEditActive( const CellPos& rPos ) } - void SdrTableObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus ) { if( (pEditStatus->GetStatusWord() & EditStatusFlags::TEXTHEIGHTCHANGED) && mpImpl && mpImpl->mpLayouter ) @@ -1344,7 +1302,6 @@ void SdrTableObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus ) } - void SdrTableObj::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const { rInfo.bResizeFreeAllowed=true; @@ -1371,21 +1328,18 @@ void SdrTableObj::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const } - sal_uInt16 SdrTableObj::GetObjIdentifier() const { return static_cast<sal_uInt16>(OBJ_TABLE); } - void SdrTableObj::SetPage(SdrPage* pNewPage) { SdrTextObj::SetPage(pNewPage); } - void SdrTableObj::SetModel(SdrModel* pNewModel) { SdrModel* pOldModel = GetModel(); @@ -1407,7 +1361,6 @@ void SdrTableObj::SetModel(SdrModel* pNewModel) } - void SdrTableObj::TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText, Rectangle* pAnchorRect, bool bLineWidth ) const { if( mpImpl ) @@ -1415,7 +1368,6 @@ void SdrTableObj::TakeTextRect( SdrOutliner& rOutliner, Rectangle& rTextRect, bo } - void SdrTableObj::TakeTextRect( const CellPos& rPos, SdrOutliner& rOutliner, Rectangle& rTextRect, bool bNoEditText, Rectangle* pAnchorRect, bool /*bLineWidth*/ ) const { if( !mpImpl ) @@ -1450,7 +1402,6 @@ void SdrTableObj::TakeTextRect( const CellPos& rPos, SdrOutliner& rOutliner, Rec // } - // set text at outliner, maybe from edit outliner OutlinerParaObject* pPara= xCell->GetOutlinerParaObject(); if (pEdtOutl && !bNoEditText && mpImpl->mxActiveCell == xCell ) @@ -1499,7 +1450,6 @@ void SdrTableObj::TakeTextRect( const CellPos& rPos, SdrOutliner& rOutliner, Rec } - const CellRef& SdrTableObj::getActiveCell() const { if( mpImpl ) @@ -1519,14 +1469,12 @@ const CellRef& SdrTableObj::getActiveCell() const } - sal_Int32 SdrTableObj::getColumnCount() const { return mpImpl ? mpImpl->getColumnCount() : 0; } - void SdrTableObj::setActiveCell( const CellPos& rPos ) { if( mpImpl && mpImpl->mxTable.is() ) try @@ -1551,14 +1499,12 @@ void SdrTableObj::setActiveCell( const CellPos& rPos ) } - void SdrTableObj::getActiveCellPos( CellPos& rPos ) const { rPos = mpImpl->maEditPos; } - void SdrTableObj::getCellBounds( const CellPos& rPos, ::Rectangle& rCellRect ) { if( mpImpl ) @@ -1570,7 +1516,6 @@ void SdrTableObj::getCellBounds( const CellPos& rPos, ::Rectangle& rCellRect ) } - void SdrTableObj::TakeTextAnchorRect(Rectangle& rAnchorRect) const { if( mpImpl ) @@ -1578,7 +1523,6 @@ void SdrTableObj::TakeTextAnchorRect(Rectangle& rAnchorRect) const } - void SdrTableObj::TakeTextAnchorRect( const CellPos& rPos, Rectangle& rAnchorRect ) const { Rectangle aAnkRect(maRect); @@ -1595,7 +1539,6 @@ void SdrTableObj::TakeTextAnchorRect( const CellPos& rPos, Rectangle& rAnchorRec } - void SdrTableObj::TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, Rectangle* pViewInit, Rectangle* pViewMin) const { if( mpImpl ) @@ -1603,7 +1546,6 @@ void SdrTableObj::TakeTextEditArea(Size* pPaperMin, Size* pPaperMax, Rectangle* } - void SdrTableObj::TakeTextEditArea( const CellPos& rPos, Size* pPaperMin, Size* pPaperMax, Rectangle* pViewInit, Rectangle* pViewMin ) const { Size aPaperMin,aPaperMax; @@ -1660,7 +1602,6 @@ void SdrTableObj::TakeTextEditArea( const CellPos& rPos, Size* pPaperMin, Size* } - sal_uInt16 SdrTableObj::GetOutlinerViewAnchorMode() const { EVAnchorMode eRet=ANCHOR_TOP_LEFT; @@ -1688,7 +1629,6 @@ sal_uInt16 SdrTableObj::GetOutlinerViewAnchorMode() const } - OutlinerParaObject* SdrTableObj::GetEditOutlinerParaObject() const { return SdrTextObj::GetEditOutlinerParaObject(); @@ -1711,14 +1651,12 @@ OUString SdrTableObj::TakeObjNameSingul() const } - OUString SdrTableObj::TakeObjNamePlural() const { return ImpGetResStr(STR_ObjNamePluralTable); } - SdrTableObj* SdrTableObj::Clone() const { return CloneHelper< SdrTableObj >(); @@ -1751,63 +1689,53 @@ SdrTableObj& SdrTableObj::operator=(const SdrTableObj& rObj) } - basegfx::B2DPolyPolygon SdrTableObj::TakeXorPoly() const { return SdrTextObj::TakeXorPoly(); } - basegfx::B2DPolyPolygon SdrTableObj::TakeContour() const { return SdrTextObj::TakeContour(); } - const Rectangle& SdrTableObj::GetSnapRect() const { return maRect; } - void SdrTableObj::NbcSetSnapRect(const Rectangle& rRect) { NbcSetLogicRect( rRect ); } - const Rectangle& SdrTableObj::GetLogicRect() const { return maLogicRect; } - void SdrTableObj::RecalcSnapRect() { } - sal_uInt32 SdrTableObj::GetSnapPointCount() const { return SdrTextObj::GetSnapPointCount(); } - - Point SdrTableObj::GetSnapPoint(sal_uInt32 i) const { return SdrTextObj::GetSnapPoint(i); } - bool SdrTableObj::BegTextEdit(SdrOutliner& rOutl) { if( pEdtOutl != nullptr ) @@ -1849,7 +1777,6 @@ bool SdrTableObj::BegTextEdit(SdrOutliner& rOutl) } - void SdrTableObj::EndTextEdit(SdrOutliner& rOutl) { if(rOutl.IsModified()) @@ -1896,7 +1823,6 @@ void SdrTableObj::EndTextEdit(SdrOutliner& rOutl) } - OutlinerParaObject* SdrTableObj::GetOutlinerParaObject() const { CellRef xCell( getActiveCell() ); @@ -1907,7 +1833,6 @@ OutlinerParaObject* SdrTableObj::GetOutlinerParaObject() const } - void SdrTableObj::NbcSetOutlinerParaObject( OutlinerParaObject* pTextObject) { CellRef xCell( getActiveCell() ); @@ -1929,7 +1854,6 @@ void SdrTableObj::NbcSetOutlinerParaObject( OutlinerParaObject* pTextObject) } - void SdrTableObj::NbcSetLogicRect(const Rectangle& rRect) { maLogicRect=rRect; @@ -1942,8 +1866,6 @@ void SdrTableObj::NbcSetLogicRect(const Rectangle& rRect) } - - void SdrTableObj::AdjustToMaxRect( const Rectangle& rMaxRect, bool /* bShrinkOnly = false */ ) { Rectangle aAdjustRect( rMaxRect ); @@ -1952,7 +1874,6 @@ void SdrTableObj::AdjustToMaxRect( const Rectangle& rMaxRect, bool /* bShrinkOnl } - void SdrTableObj::NbcMove(const Size& rSiz) { MoveRect(maLogicRect,rSiz); @@ -1962,7 +1883,6 @@ void SdrTableObj::NbcMove(const Size& rSiz) } - void SdrTableObj::NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) { Rectangle aOldRect( maLogicRect ); @@ -1974,7 +1894,6 @@ void SdrTableObj::NbcResize(const Point& rRef, const Fraction& xFact, const Frac } - bool SdrTableObj::AdjustTextFrameWidthAndHeight(bool bHgt, bool bWdt) { Rectangle aNeuRect(maLogicRect); @@ -1994,7 +1913,6 @@ bool SdrTableObj::AdjustTextFrameWidthAndHeight(bool bHgt, bool bWdt) } - bool SdrTableObj::AdjustTextFrameWidthAndHeight(Rectangle& rR, bool bHeight, bool bWidth) const { if((pModel == nullptr) || rR.IsEmpty() || !mpImpl || !mpImpl->mxTable.is() ) @@ -2015,14 +1933,12 @@ bool SdrTableObj::AdjustTextFrameWidthAndHeight(Rectangle& rR, bool bHeight, boo } - void SdrTableObj::NbcReformatText() { NbcAdjustTextFrameWidthAndHeight(); } - void SdrTableObj::ReformatText() { Rectangle aBoundRect0; @@ -2035,7 +1951,6 @@ void SdrTableObj::ReformatText() } - bool SdrTableObj::IsVerticalWriting() const { const SvxWritingModeItem* pModeItem = dynamic_cast< const SvxWritingModeItem* >( &GetObjectItem( SDRATTR_TEXTDIRECTION ) ); @@ -2043,7 +1958,6 @@ bool SdrTableObj::IsVerticalWriting() const } - void SdrTableObj::SetVerticalWriting(bool bVertical ) { if( bVertical != IsVerticalWriting() ) @@ -2054,7 +1968,6 @@ void SdrTableObj::SetVerticalWriting(bool bVertical ) } - WritingMode SdrTableObj::GetWritingMode() const { SfxStyleSheet* pStyle = GetStyleSheet(); @@ -2081,7 +1994,6 @@ WritingMode SdrTableObj::GetWritingMode() const } - // gets base transformation and rectangle of object. If it's an SdrPathObj it fills the PolyPolygon // with the base geometry and returns TRUE. Otherwise it returns FALSE. bool SdrTableObj::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& rPolyPolygon ) const @@ -2378,7 +2290,6 @@ bool SdrTableObj::BegCreate(SdrDragStat& rStat) } - bool SdrTableObj::MovCreate(SdrDragStat& rStat) { Rectangle aRect1; @@ -2392,7 +2303,6 @@ bool SdrTableObj::MovCreate(SdrDragStat& rStat) } - bool SdrTableObj::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) { rStat.TakeCreateRect(maRect); @@ -2405,14 +2315,12 @@ void SdrTableObj::BrkCreate(SdrDragStat& /*rStat*/) } - bool SdrTableObj::BckCreate(SdrDragStat& /*rStat*/) { return true; } - basegfx::B2DPolyPolygon SdrTableObj::TakeCreatePoly(const SdrDragStat& rDrag) const { Rectangle aRect1; @@ -2426,28 +2334,24 @@ basegfx::B2DPolyPolygon SdrTableObj::TakeCreatePoly(const SdrDragStat& rDrag) co } - Pointer SdrTableObj::GetCreatePointer() const { return Pointer(PointerStyle::Cross); } - void SdrTableObj::createCell( CellRef& xNewCell ) { xNewCell = Cell::create( *this, nullptr ); } - SdrObjGeoData *SdrTableObj::NewGeoData() const { return new TableObjectGeoData; } - void SdrTableObj::SaveGeoData(SdrObjGeoData& rGeo) const { DBG_ASSERT( dynamic_cast< TableObjectGeoData* >( &rGeo ), "svx::SdrTableObj::SaveGeoData(), illegal geo data!" ); @@ -2457,7 +2361,6 @@ void SdrTableObj::SaveGeoData(SdrObjGeoData& rGeo) const } - void SdrTableObj::RestGeoData(const SdrObjGeoData& rGeo) { DBG_ASSERT( dynamic_cast< const TableObjectGeoData* >( &rGeo ), "svx::SdrTableObj::SaveGeoData(), illegal geo data!" ); @@ -2472,7 +2375,6 @@ void SdrTableObj::RestGeoData(const SdrObjGeoData& rGeo) } - SdrTableObj* SdrTableObj::CloneRange( const CellPos& rStart, const CellPos& rEnd ) { const sal_Int32 nColumns = rEnd.mnCol - rStart.mnCol + 1; @@ -2531,7 +2433,6 @@ SdrTableObj* SdrTableObj::CloneRange( const CellPos& rStart, const CellPos& rEnd } - void SdrTableObj::DistributeColumns( sal_Int32 nFirstColumn, sal_Int32 nLastColumn ) { if( mpImpl && mpImpl->mpLayouter ) @@ -2542,7 +2443,6 @@ void SdrTableObj::DistributeColumns( sal_Int32 nFirstColumn, sal_Int32 nLastColu } - void SdrTableObj::DistributeRows( sal_Int32 nFirstRow, sal_Int32 nLastRow ) { if( mpImpl && mpImpl->mpLayouter ) @@ -2553,7 +2453,6 @@ void SdrTableObj::DistributeRows( sal_Int32 nFirstRow, sal_Int32 nLastRow ) } - void SdrTableObj::SetChanged() { if( mpImpl ) @@ -2565,7 +2464,6 @@ void SdrTableObj::SetChanged() } - void SdrTableObj::uno_lock() { if( mpImpl && mpImpl->mxTable.is() ) @@ -2573,7 +2471,6 @@ void SdrTableObj::uno_lock() } - void SdrTableObj::uno_unlock() { if( mpImpl && mpImpl->mxTable.is() ) @@ -2581,9 +2478,6 @@ void SdrTableObj::uno_unlock() } - - - } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |