Bump version to 4.3-4
[LibreOffice.git] / sc / inc / sheetevents.hxx
blob46549b882009cfbffada1dda0efb791d1570ef15
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_SHEETEVENTS_HXX
21 #define INCLUDED_SC_INC_SHEETEVENTS_HXX
23 #include <rtl/ustring.hxx>
25 #define SC_SHEETEVENT_FOCUS 0
26 #define SC_SHEETEVENT_UNFOCUS 1
27 #define SC_SHEETEVENT_SELECT 2
28 #define SC_SHEETEVENT_DOUBLECLICK 3
29 #define SC_SHEETEVENT_RIGHTCLICK 4
30 #define SC_SHEETEVENT_CHANGE 5
31 #define SC_SHEETEVENT_CALCULATE 6
32 #define SC_SHEETEVENT_COUNT 7
34 class ScSheetEvents
36 OUString** mpScriptNames;
38 void Clear();
40 public:
41 ScSheetEvents();
42 ScSheetEvents(const ScSheetEvents& rOther);
43 ~ScSheetEvents();
45 const ScSheetEvents& operator= (const ScSheetEvents& rOther);
47 const OUString* GetScript(sal_Int32 nEvent) const;
48 void SetScript(sal_Int32 nEvent, const OUString* pNew);
50 static OUString GetEventName(sal_Int32 nEvent);
51 static sal_Int32 GetVbaSheetEventId(sal_Int32 nEvent);
52 static sal_Int32 GetVbaDocumentEventId(sal_Int32 nEvent);
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */