tdf#125800: accessing cond format props in UNO throws error
[LibreOffice.git] / sc / inc / paramisc.hxx
blob0c8432f4fdca27b04cfd9cd3f1badbb1fa8fe57e
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 "address.hxx"
24 #include <boost/optional.hpp>
26 struct ScSolveParam
28 ScAddress aRefFormulaCell;
29 ScAddress aRefVariableCell;
30 boost::optional<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 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 // INCLUDED_SC_INC_PARAMISC_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */