diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-08-28 10:59:43 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-08-28 10:59:43 -0700 |
commit | 90fda2dc33b314a4b50af4c4673d5e315ee9ce7f (patch) | |
tree | 306258f0c059cb7af58483001029db8b05257a1d /svx | |
parent | Remove class XHatchTable (diff) | |
download | core-90fda2dc33b314a4b50af4c4673d5e315ee9ce7f.tar.gz core-90fda2dc33b314a4b50af4c4673d5e315ee9ce7f.zip |
Remove class XLineEndTable
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/svdmodel.hxx | 1 | ||||
-rw-r--r-- | svx/inc/svx/xattr.hxx | 1 | ||||
-rw-r--r-- | svx/inc/svx/xit.hxx | 1 | ||||
-rw-r--r-- | svx/inc/svx/xlnedit.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/xlnstit.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/xtable.hxx | 29 | ||||
-rw-r--r-- | svx/source/xoutdev/xattr.cxx | 35 | ||||
-rw-r--r-- | svx/source/xoutdev/xtablend.cxx | 83 |
8 files changed, 16 insertions, 138 deletions
diff --git a/svx/inc/svx/svdmodel.hxx b/svx/inc/svx/svdmodel.hxx index 5a2bfc1fe585..d4a30a3f4e19 100644 --- a/svx/inc/svx/svdmodel.hxx +++ b/svx/inc/svx/svdmodel.hxx @@ -84,7 +84,6 @@ class XDashList; class XGradientList; class XHatchList; class XLineEndList; -class XLineEndTable; class SvxForbiddenCharactersTable; class SvNumberFormatter; class SotStorage; diff --git a/svx/inc/svx/xattr.hxx b/svx/inc/svx/xattr.hxx index 6b09d52d732c..97bfff4336ac 100644 --- a/svx/inc/svx/xattr.hxx +++ b/svx/inc/svx/xattr.hxx @@ -29,7 +29,6 @@ #define _XATTR_HXX class XColorTable; -class XLineEndTable; #include <svx/xit.hxx> #include <svx/xcolit.hxx> diff --git a/svx/inc/svx/xit.hxx b/svx/inc/svx/xit.hxx index 72cfac6470fc..8824b9021b0a 100644 --- a/svx/inc/svx/xit.hxx +++ b/svx/inc/svx/xit.hxx @@ -36,7 +36,6 @@ /************************************************************************/ class XColorTable; -class XLineEndTable; class SfxItemPool; class NameOrIndex; class XPropertyList; diff --git a/svx/inc/svx/xlnedit.hxx b/svx/inc/svx/xlnedit.hxx index e79cec35ca74..7d7082b0d047 100644 --- a/svx/inc/svx/xlnedit.hxx +++ b/svx/inc/svx/xlnedit.hxx @@ -64,7 +64,7 @@ public: SfxMapUnit ePresMetric, String &rText, const IntlWrapper * = 0 ) const; - basegfx::B2DPolyPolygon GetLineEndValue(const XLineEndTable* pTable = 0) const; + basegfx::B2DPolyPolygon GetLineEndValue() const; void SetLineEndValue(const basegfx::B2DPolyPolygon& rPolyPolygon) { maPolyPolygon = rPolyPolygon; Detach(); } XLineEndItem* checkForUniqueItem( SdrModel* pModel ) const; diff --git a/svx/inc/svx/xlnstit.hxx b/svx/inc/svx/xlnstit.hxx index 403629ca970c..ad71ea90ab6f 100644 --- a/svx/inc/svx/xlnstit.hxx +++ b/svx/inc/svx/xlnstit.hxx @@ -64,7 +64,7 @@ public: SfxMapUnit ePresMetric, String &rText, const IntlWrapper * = 0 ) const; - basegfx::B2DPolyPolygon GetLineStartValue(const XLineEndTable* pTable = 0) const; + basegfx::B2DPolyPolygon GetLineStartValue() const; void SetLineStartValue(const basegfx::B2DPolyPolygon& rPolyPolygon) { maPolyPolygon = rPolyPolygon; Detach(); } XLineStartItem* checkForUniqueItem( SdrModel* pModel ) const; diff --git a/svx/inc/svx/xtable.hxx b/svx/inc/svx/xtable.hxx index bedbcb6ff343..c1819afaa599 100644 --- a/svx/inc/svx/xtable.hxx +++ b/svx/inc/svx/xtable.hxx @@ -325,35 +325,6 @@ public: static XColorTable& GetStdColorTable(); }; -// -------------------- -// class XLineEndTable -// -------------------- - -class XLineEndTable : public XPropertyTable -{ -public: - explicit XLineEndTable( - const String& rPath, - XOutdevItemPool* pXPool = NULL, - sal_uInt16 nInitSize = 16, - sal_uInt16 nReSize = 16 - ); - virtual ~XLineEndTable(); - - using XPropertyTable::Replace; - XLineEndEntry* Replace(long nIndex, XLineEndEntry* pEntry ); - using XPropertyTable::Remove; - XLineEndEntry* Remove(long nIndex); - using XPropertyTable::Get; - XLineEndEntry* GetLineEnd(long nIndex) const; - - virtual sal_Bool Load(); - virtual sal_Bool Save(); - virtual sal_Bool Create(); - virtual sal_Bool CreateBitmapsForUI(); - virtual Bitmap* CreateBitmapForUI( long nIndex, sal_Bool bDelete = sal_True ); -}; - // ------------------- // class XLineEndList // ------------------- diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index 3df114029a2c..afe1eccb83d3 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -1706,21 +1706,17 @@ SvStream& XLineStartItem::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const /************************************************************************* |* -|* const basegfx::B2DPolyPolygon& XLineStartItem::GetValue(const XLineEndTable* pTable) -|* const +|* const basegfx::B2DPolyPolygon& XLineStartItem::GetValue() const |* *************************************************************************/ -basegfx::B2DPolyPolygon XLineStartItem::GetLineStartValue(const XLineEndTable* pTable) const +basegfx::B2DPolyPolygon XLineStartItem::GetLineStartValue() const { - if (!IsIndex()) - { - return maPolyPolygon; - } - else - { - return pTable->GetLineEnd(GetIndex())->GetLineEnd(); - } + //if (!IsIndex()) + // return maPolyPolygon; + //else + // return pTable->GetLineEnd(GetIndex())->GetLineEnd(); + return maPolyPolygon; } //------------------------------------------------------------------------ @@ -2142,20 +2138,17 @@ SvStream& XLineEndItem::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const /************************************************************************* |* -|* const basegfx::B2DPolyPolygon& XLineEndItem::GetValue(const XLineEndTable* pTable) const +|* const basegfx::B2DPolyPolygon& XLineEndItem::GetValue() const |* *************************************************************************/ -basegfx::B2DPolyPolygon XLineEndItem::GetLineEndValue(const XLineEndTable* pTable) const +basegfx::B2DPolyPolygon XLineEndItem::GetLineEndValue() const { - if (!IsIndex()) - { - return maPolyPolygon; - } - else - { - return pTable->GetLineEnd(GetIndex())->GetLineEnd(); - } + //if (!IsIndex()) + // return maPolyPolygon; + //else + // return pTable->GetLineEnd(GetIndex())->GetLineEnd(); + return maPolyPolygon; } diff --git a/svx/source/xoutdev/xtablend.cxx b/svx/source/xoutdev/xtablend.cxx index dab030cc88bf..ebd95efbadde 100644 --- a/svx/source/xoutdev/xtablend.cxx +++ b/svx/source/xoutdev/xtablend.cxx @@ -81,89 +81,6 @@ static char const aChckLEnd0[] = { 0x04, 0x00, 'S','O','E','0'}; // = 5.2 static char const aChckXML[] = { '<', '?', 'x', 'm', 'l' }; // = 6.0 // -------------------- -// class XLineEndTable -// -------------------- - -/************************************************************************* -|* -|* XLineEndTable::XLineEndTable() -|* -*************************************************************************/ - -XLineEndTable::XLineEndTable( - const String& rPath, - XOutdevItemPool* pInPool, - sal_uInt16 nInitSize, - sal_uInt16 nReSize -) - : XPropertyTable( rPath, pInPool, nInitSize, nReSize) -{ - pBmpTable = new Table( nInitSize, nReSize ); -} - -/************************************************************************/ - -XLineEndTable::~XLineEndTable() -{ -} - -/************************************************************************/ - -XLineEndEntry* XLineEndTable::Replace(long nIndex, XLineEndEntry* pEntry ) -{ - return (XLineEndEntry*) XPropertyTable::Replace(nIndex, pEntry); -} - -/************************************************************************/ - -XLineEndEntry* XLineEndTable::Remove(long nIndex) -{ - return (XLineEndEntry*) XPropertyTable::Remove(nIndex); -} - -/************************************************************************/ - -XLineEndEntry* XLineEndTable::GetLineEnd(long nIndex) const -{ - return (XLineEndEntry*) XPropertyTable::Get(nIndex, 0); -} - -/************************************************************************/ - -sal_Bool XLineEndTable::Load() -{ - return( sal_False ); -} - -/************************************************************************/ - -sal_Bool XLineEndTable::Save() -{ - return( sal_False ); -} - -/************************************************************************/ - -sal_Bool XLineEndTable::Create() -{ - return( sal_False ); -} - -/************************************************************************/ - -Bitmap* XLineEndTable::CreateBitmapForUI( long /*nIndex*/, sal_Bool /*bDelete*/) -{ - return( NULL ); -} - -/************************************************************************/ - -sal_Bool XLineEndTable::CreateBitmapsForUI() -{ - return( sal_False ); -} - -// -------------------- // class XLineEndList // -------------------- |