LCOV - code coverage report
Current view: top level - libreoffice/basctl/source/inc - sbxitem.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-12-27 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          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 BASCTL_SBXITEM_HXX
      20             : #define BASCTL_SBXITEM_HXX
      21             : 
      22             : #include "scriptdocument.hxx"
      23             : #include <svl/poolitem.hxx>
      24             : 
      25             : namespace basctl
      26             : {
      27             : 
      28             : enum ItemType
      29             : {
      30             :     TYPE_UNKNOWN,
      31             :     TYPE_SHELL,
      32             :     TYPE_LIBRARY,
      33             :     TYPE_MODULE,
      34             :     TYPE_DIALOG,
      35             :     TYPE_METHOD
      36             : };
      37             : 
      38           0 : class SbxItem : public SfxPoolItem
      39             : {
      40             :     const ScriptDocument    m_aDocument;
      41             :     const OUString          m_aLibName;
      42             :     const OUString          m_aName;
      43             :     const OUString          m_aMethodName;
      44             :     ItemType                m_eType;
      45             : 
      46             : public:
      47             :     TYPEINFO();
      48             :     SbxItem(sal_uInt16 nWhich, const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aName, ItemType);
      49             :     SbxItem(sal_uInt16 nWhich, const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aName, const OUString& aMethodName, ItemType eType);
      50             : 
      51             :     virtual SfxPoolItem* Clone(SfxItemPool *pPool = 0) const;
      52             :     virtual int operator==(const SfxPoolItem&) const;
      53             : 
      54           0 :     ScriptDocument const& GetDocument () const { return m_aDocument; }
      55           0 :     OUString const& GetLibName () const { return m_aLibName; }
      56           0 :     OUString const& GetName () const { return m_aName; }
      57           0 :     OUString const& GetMethodName () const { return m_aMethodName; }
      58           0 :     ItemType GetType () const { return m_eType; }
      59             : };
      60             : 
      61             : } // namespace basctl
      62             : 
      63             : // For baside.sdi, because I don't know how to use nested names in it.
      64             : using basctl::SbxItem;
      65             : 
      66             : #endif // BASCTL_SBXITEM_HXX
      67             : 
      68             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10