Bump version to 4.3-4
[LibreOffice.git] / sc / inc / cellvalues.hxx
blob4f4c50fab4fd3212c2243998b2281f05fb535bdb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_SC_INC_CELLVALUES_HXX
11 #define INCLUDED_SC_INC_CELLVALUES_HXX
13 #include "address.hxx"
15 class ScColumn;
17 namespace sc {
19 struct CellValuesImpl;
21 /**
22 * Think of this as a mini-ScColumn like storage that only stores cell
23 * values in a column.
25 class CellValues
27 CellValuesImpl* mpImpl;
29 CellValues( const CellValues& ); // disabled
30 CellValues& operator= ( const CellValues& ); // disabled
32 public:
33 CellValues();
34 ~CellValues();
36 /**
37 * Transfer values from specified column. The transferred segment in the
38 * source column becomes empty after this call.
40 * @param rCol source column to transfer values from.
41 * @param nRow top row position in the source column.
42 * @param nLen length of the segment to transfer.
44 void transferFrom( ScColumn& rCol, SCROW nRow, size_t nLen );
46 void transferTo( ScColumn& rCol, SCROW nRow );
47 void copyTo( ScColumn& rCol, SCROW nRow ) const;
49 void assign( const std::vector<double>& rVals );
51 size_t size() const;
53 private:
54 void copyCellsTo( ScColumn& rCol, SCROW nRow ) const;
55 void copyCellTextAttrsTo( ScColumn& rCol, SCROW nRow ) const;
60 #endif
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */