bump product version to 4.2.0.1
[LibreOffice.git] / include / formula / formdata.hxx
bloba772823e56fdecf2df8cf564f96f693d7751121d
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_FORMULA_FORMDATA_HXX
21 #define INCLUDED_FORMULA_FORMDATA_HXX
23 #include <formula/formuladllapi.h>
24 #include <rtl/ustring.hxx>
25 #include <tools/gen.hxx>
27 //============================================================================
28 namespace formula
30 class FORMULA_DLLPUBLIC FormEditData
32 public:
33 FormEditData();
34 virtual ~FormEditData();
36 virtual void SaveValues();
37 sal_Bool HasParent() const { return pParent != NULL; }
39 inline sal_uInt16 GetMode() const { return nMode; }
40 inline xub_StrLen GetFStart() const { return nFStart; }
41 inline sal_uInt16 GetCatSel() const { return nCatSel; }
42 inline sal_uInt16 GetFuncSel() const { return nFuncSel; }
43 inline sal_uInt16 GetOffset() const { return nOffset; }
44 inline sal_uInt16 GetEdFocus() const { return nEdFocus; }
45 inline const OUString& GetUndoStr() const { return aUndoStr; }
46 inline sal_Bool GetMatrixFlag()const{ return bMatrix;}
47 inline OString GetUniqueId()const { return aUniqueId;}
48 inline const Selection& GetSelection()const { return aSelection;}
50 inline void SetMode( sal_uInt16 nNew ) { nMode = nNew; }
51 inline void SetFStart( xub_StrLen nNew ) { nFStart = nNew; }
52 inline void SetCatSel( sal_uInt16 nNew ) { nCatSel = nNew; }
53 inline void SetFuncSel( sal_uInt16 nNew ) { nFuncSel = nNew; }
54 inline void SetOffset( sal_uInt16 nNew ) { nOffset = nNew; }
55 inline void SetEdFocus( sal_uInt16 nNew ) { nEdFocus = nNew; }
56 inline void SetUndoStr( const OUString& rNew ) { aUndoStr = rNew; }
57 inline void SetMatrixFlag(sal_Bool bNew) { bMatrix=bNew;}
58 inline void SetUniqueId(const OString nNew) { aUniqueId=nNew;}
59 inline void SetSelection(const Selection& aSel) { aSelection=aSel;}
60 protected:
61 void Reset();
62 FormEditData( const FormEditData& );
63 const FormEditData& operator=( const FormEditData& r );
65 FormEditData* pParent; // fuer Verschachtelung
66 private:
67 sal_uInt16 nMode; // enum ScFormulaDlgMode
68 xub_StrLen nFStart;
69 sal_uInt16 nCatSel;
70 sal_uInt16 nFuncSel;
71 sal_uInt16 nOffset;
72 sal_uInt16 nEdFocus;
73 OUString aUndoStr;
74 sal_Bool bMatrix;
75 OString aUniqueId;
76 Selection aSelection;
80 } // formula
81 #endif // INCLUDED_FORMULA_FORMDATA_HXX
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */