summaryrefslogtreecommitdiff
path: root/basic/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-13 09:16:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-13 10:11:45 +0000
commit220b97fd143da72a8c9f56cdee30bb31e7180a07 (patch)
tree8b04419ac6976e9652fcbab74bd63a5a4f9155fa /basic/inc
parent0d486af418b8141ffe25f05a33570abd1e93d13e (diff)
SbTextPortions, etc can completely go
Diffstat (limited to 'basic/inc')
-rw-r--r--basic/inc/basic/sbdef.hxx42
1 files changed, 0 insertions, 42 deletions
diff --git a/basic/inc/basic/sbdef.hxx b/basic/inc/basic/sbdef.hxx
index 513f241fc11d..baa8d5086bdd 100644
--- a/basic/inc/basic/sbdef.hxx
+++ b/basic/inc/basic/sbdef.hxx
@@ -64,48 +64,6 @@ struct SbTextPortion
SbTextType eType; // Type of the portion
};
-typedef sal_Bool (*FnForEach_SbTextPortions)( const SbTextPortion &, void* );
-class BASIC_DLLPUBLIC SbTextPortions
-{
-protected:
- SbTextPortion *pData;
- sal_uInt16 nFree;
- sal_uInt16 nA;
-
- void _resize(size_t n);
-
-public:
- SbTextPortions( sal_uInt16= 16, sal_uInt8= 16 );
- ~SbTextPortions() { rtl_freeMemory( pData ); }
-
- _SVVARARR_DEF_GET_OP_INLINE(SbTextPortions, SbTextPortion )
- SbTextPortion & GetObject(sal_uInt16 nP) const { return (*this)[nP]; }
-
- void Insert( const SbTextPortion & aE, sal_uInt16 nP );
- void Insert( const SbTextPortion *pE, sal_uInt16 nL, sal_uInt16 nP );
- void Remove( sal_uInt16 nP, sal_uInt16 nL = 1 );
- void Replace( const SbTextPortion & aE, sal_uInt16 nP );
- void Replace( const SbTextPortion *pE, sal_uInt16 nL, sal_uInt16 nP );
- sal_uInt16 Count() const { return nA; }
- const SbTextPortion* GetData() const { return (const SbTextPortion*)pData; }
-
- void ForEach( CONCAT( FnForEach_, SbTextPortions ) fnForEach, void* pArgs = 0 )
- {
- _ForEach( 0, nA, fnForEach, pArgs );
- }
- void ForEach( sal_uInt16 nS, sal_uInt16 nE,
- CONCAT( FnForEach_, SbTextPortions ) fnForEach, void* pArgs = 0 )
- {
- _ForEach( nS, nE, fnForEach, pArgs );
- }
-
- void _ForEach( sal_uInt16 nStt, sal_uInt16 nE,
- CONCAT( FnForEach_, SbTextPortions ) fnCall, void* pArgs = 0 );
-private:
- BASIC_DLLPRIVATE SbTextPortions( const SbTextPortions& );
- BASIC_DLLPRIVATE SbTextPortions& operator=( const SbTextPortions& );
-};
-
// Returns type name for Basic type, array flag is ignored
// implementation: basic/source/runtime/methods.cxx
BASIC_DLLPUBLIC String getBasicTypeName( SbxDataType eType );