LOK: tilebench improvements
[LibreOffice.git] / sc / inc / paramisc.hxx
blob5ab41a8f625b8ebbdc4284c64caae075d54e7c97
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 INCLUDED_SC_INC_PARAMISC_HXX
21 #define INCLUDED_SC_INC_PARAMISC_HXX
23 #include <memory>
24 #include "address.hxx"
25 #include <sal/types.h>
27 struct ScSolveParam
29 ScAddress aRefFormulaCell;
30 ScAddress aRefVariableCell;
31 std::unique_ptr<OUString> pStrTargetVal;
33 ScSolveParam();
34 ScSolveParam( const ScSolveParam& r );
35 ScSolveParam( const ScAddress& rFormulaCell,
36 const ScAddress& rVariableCell,
37 const OUString& rTargetValStr );
38 ~ScSolveParam();
40 ScSolveParam& operator= ( const ScSolveParam& r );
41 bool operator== ( const ScSolveParam& r ) const;
44 /**
45 * Parameter for data table aka multiple operations.
47 struct SC_DLLPUBLIC ScTabOpParam
49 enum Mode { Column = 0, Row = 1, Both = 2 };
51 ScRefAddress aRefFormulaCell;
52 ScRefAddress aRefFormulaEnd;
53 ScRefAddress aRefRowCell;
54 ScRefAddress aRefColCell;
55 Mode meMode;
57 ScTabOpParam();
58 ScTabOpParam( const ScTabOpParam& r );
59 ScTabOpParam(
60 const ScRefAddress& rFormulaCell, const ScRefAddress& rFormulaEnd,
61 const ScRefAddress& rRowCell, const ScRefAddress& rColCell, Mode eMode );
63 ScTabOpParam& operator= ( const ScTabOpParam& r );
64 bool operator== ( const ScTabOpParam& r ) const;
67 #endif // INCLUDED_SC_INC_PARAMISC_HXX
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */