Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
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/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
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 .
18 : : */
19 : : #ifndef _SBXITEM_HXX
20 : : #define _SBXITEM_HXX
21 : :
22 : : #include "scriptdocument.hxx"
23 : : #include <svl/poolitem.hxx>
24 : :
25 : : enum BasicIDEType
26 : : {
27 : : BASICIDE_TYPE_UNKNOWN,
28 : : BASICIDE_TYPE_SHELL,
29 : : BASICIDE_TYPE_LIBRARY,
30 : : BASICIDE_TYPE_MODULE,
31 : : BASICIDE_TYPE_DIALOG,
32 : : BASICIDE_TYPE_METHOD
33 : : };
34 : :
35 : 0 : class SbxItem : public SfxPoolItem
36 : : {
37 : : const ScriptDocument m_aDocument;
38 : : const ::rtl::OUString m_aLibName;
39 : : const ::rtl::OUString m_aName;
40 : : const ::rtl::OUString m_aMethodName;
41 : : BasicIDEType m_nType;
42 : :
43 : : public:
44 : : TYPEINFO();
45 : : SbxItem(sal_uInt16 nWhich, const ScriptDocument& rDocument, const ::rtl::OUString& aLibName, const ::rtl::OUString& aName, BasicIDEType nType);
46 : : SbxItem(sal_uInt16 nWhich, const ScriptDocument& rDocument, const ::rtl::OUString& aLibName, const ::rtl::OUString& aName, const ::rtl::OUString& aMethodName, BasicIDEType nType);
47 : : SbxItem(const SbxItem&);
48 : :
49 : : virtual SfxPoolItem* Clone(SfxItemPool *pPool = 0) const;
50 : : virtual int operator==(const SfxPoolItem&) const;
51 : :
52 : : const ScriptDocument& GetDocument() const;
53 : : const ::rtl::OUString& GetLibName() const;
54 : : const ::rtl::OUString& GetName() const;
55 : : const ::rtl::OUString& GetMethodName() const;
56 : : BasicIDEType GetType() const;
57 : : };
58 : :
59 : : #endif
60 : :
61 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|