Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / inc / paramisc.hxx
blobb5545a9ab38debaef0a09a5697d596f3c9838894
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_PARAMISC_HXX
21 #define SC_PARAMISC_HXX
23 #include "address.hxx"
24 #include <tools/solar.h>
26 struct ScSolveParam
28 ScAddress aRefFormulaCell;
29 ScAddress aRefVariableCell;
30 OUString* pStrTargetVal;
32 ScSolveParam();
33 ScSolveParam( const ScSolveParam& r );
34 ScSolveParam( const ScAddress& rFormulaCell,
35 const ScAddress& rVariableCell,
36 const OUString& rTargetValStr );
37 ~ScSolveParam();
39 ScSolveParam& operator= ( const ScSolveParam& r );
40 sal_Bool operator== ( const ScSolveParam& r ) const;
43 /**
44 * Parameter for data table aka multiple operations.
46 struct SC_DLLPUBLIC ScTabOpParam
48 enum Mode { Column = 0, Row = 1, Both = 2 };
50 ScRefAddress aRefFormulaCell;
51 ScRefAddress aRefFormulaEnd;
52 ScRefAddress aRefRowCell;
53 ScRefAddress aRefColCell;
54 Mode meMode;
56 ScTabOpParam();
57 ScTabOpParam( const ScTabOpParam& r );
58 ScTabOpParam(
59 const ScRefAddress& rFormulaCell, const ScRefAddress& rFormulaEnd,
60 const ScRefAddress& rRowCell, const ScRefAddress& rColCell, Mode eMode );
62 ScTabOpParam& operator= ( const ScTabOpParam& r );
63 bool operator== ( const ScTabOpParam& r ) const;
66 #endif // SC_PARAMISC_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */