android: Update app-specific/MIME type icons
[LibreOffice.git] / basctl / source / inc / sbxitem.hxx
blob941ffd3e0ee9fceeee7b3d2a752a92b4e1734ef1
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 .
19 #pragma once
21 #include "scriptdocument.hxx"
22 #include <svl/poolitem.hxx>
24 namespace basctl
27 enum ItemType
29 TYPE_UNKNOWN,
30 TYPE_SHELL,
31 TYPE_LIBRARY,
32 TYPE_MODULE,
33 TYPE_DIALOG,
34 TYPE_METHOD
37 class SbxItem : public SfxPoolItem
39 const ScriptDocument m_aDocument;
40 const OUString m_aLibName;
41 const OUString m_aName;
42 const OUString m_aMethodName;
43 ItemType m_eType;
45 public:
46 static SfxPoolItem* CreateDefault();
47 SbxItem(sal_uInt16 nWhich, ScriptDocument aDocument, OUString aLibName, OUString aName, ItemType);
48 SbxItem(sal_uInt16 nWhich, ScriptDocument aDocument, OUString aLibName, OUString aName, OUString aMethodName, ItemType eType);
50 virtual SbxItem* Clone(SfxItemPool *pPool = nullptr) const override;
51 virtual bool operator==(const SfxPoolItem&) const override;
53 ScriptDocument const& GetDocument () const { return m_aDocument; }
54 OUString const& GetLibName () const { return m_aLibName; }
55 OUString const& GetName () const { return m_aName; }
56 OUString const& GetMethodName () const { return m_aMethodName; }
57 ItemType GetType () const { return m_eType; }
60 } // namespace basctl
62 // For baside.sdi, because I don't know how to use nested names in it.
63 using basctl::SbxItem;
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */