1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: frmbase.cxx,v $
10 * $Revision: 1.10.32.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sc.hxx"
42 _ScRangeList::~_ScRangeList()
44 ScRange
* p
= ( ScRange
* ) First();
49 p
= ( ScRange
* ) Next();
56 _ScRangeListTabs::_ScRangeListTabs( void )
58 ppTabLists
= new _ScRangeList
*[ MAXTAB
+ 1 ];
60 for( UINT16 n
= 0 ; n
<= MAXTAB
; n
++ )
61 ppTabLists
[ n
] = NULL
;
69 _ScRangeListTabs::~_ScRangeListTabs()
73 for( UINT16 n
= 0 ; n
<= MAXTAB
; n
++ )
76 delete ppTabLists
[ n
];
84 void _ScRangeListTabs::Append( ScSingleRefData a
, SCsTAB nTab
, const BOOL b
)
99 DBG_ASSERT( ValidTab(a
.nTab
), "-_ScRangeListTabs::Append(): Luegen haben kurze Abstuerze!" );
104 if( nTab
== SCTAB_MAX
)
111 _ScRangeList
* p
= ppTabLists
[ nTab
];
114 p
= ppTabLists
[ nTab
] = new _ScRangeList
;
121 void _ScRangeListTabs::Append( ScComplexRefData a
, SCsTAB nTab
, const BOOL b
)
125 // #96263# ignore 3D ranges
126 if( a
.Ref1
.nTab
!= a
.Ref2
.nTab
)
129 SCsTAB
& rTab
= a
.Ref1
.nTab
;
135 SCsCOL
& rCol1
= a
.Ref1
.nCol
;
141 SCsROW
& rRow1
= a
.Ref1
.nRow
;
147 SCsCOL
& rCol2
= a
.Ref2
.nCol
;
153 SCsROW
& rRow2
= a
.Ref2
.nRow
;
161 DBG_ASSERT( ValidTab(a
.Ref1
.nTab
),
162 "-_ScRangeListTabs::Append(): Luegen haben kurze Abstuerze!" );
163 DBG_ASSERT( a
.Ref1
.nTab
== a
.Ref2
.nTab
,
164 "+_ScRangeListTabs::Append(): 3D-Ranges werden in SC nicht unterstuetzt!" );
169 if( nTab
== SCTAB_MAX
)
176 _ScRangeList
* p
= ppTabLists
[ nTab
];
179 p
= ppTabLists
[ nTab
] = new _ScRangeList
;
186 const ScRange
* _ScRangeListTabs::First( const UINT16 n
)
188 DBG_ASSERT( ValidTab(n
), "-_ScRangeListTabs::First(): Und tschuessssssss!" );
190 if( ppTabLists
[ n
] )
192 pAct
= ppTabLists
[ n
];
194 return pAct
->First();
205 const ScRange
* _ScRangeListTabs::Next( void )
216 ConverterBase::ConverterBase( UINT16 nNewBuffer
) :
219 nBufferSize( nNewBuffer
)
221 DBG_ASSERT( nNewBuffer
> 0, "ConverterBase::ConverterBase - nNewBuffer == 0!" );
222 pBuffer
= new sal_Char
[ nNewBuffer
];
225 ConverterBase::~ConverterBase()
230 void ConverterBase::Reset()
240 ExcelConverterBase::ExcelConverterBase( UINT16 nNewBuffer
) :
241 ConverterBase( nNewBuffer
)
245 ExcelConverterBase::~ExcelConverterBase()
249 void ExcelConverterBase::Reset( const ScAddress
& rEingPos
)
251 ConverterBase::Reset();
255 void ExcelConverterBase::Reset()
257 ConverterBase::Reset();
258 aEingPos
.Set( 0, 0, 0 );
261 ExcelConverterBase::ConvertParam::ConvertParam() :
270 LotusConverterBase::LotusConverterBase( SvStream
&rStr
, UINT16 nNewBuffer
) :
271 ConverterBase( nNewBuffer
),
277 LotusConverterBase::~LotusConverterBase()
281 //UNUSED2008-05 void LotusConverterBase::Reset( INT32 nLen, const ScAddress& rEingPos )
283 //UNUSED2008-05 ConverterBase::Reset();
284 //UNUSED2008-05 nBytesLeft = nLen;
285 //UNUSED2008-05 aEingPos = rEingPos;
288 //UNUSED2008-05 void LotusConverterBase::Reset( INT32 nLen )
290 //UNUSED2008-05 ConverterBase::Reset();
291 //UNUSED2008-05 nBytesLeft = nLen;
292 //UNUSED2008-05 aEingPos.Set( 0, 0, 0 );
295 void LotusConverterBase::Reset( const ScAddress
& rEingPos
)
297 ConverterBase::Reset();