LCOV - code coverage report
Current view: top level - starmath/inc - toolbox.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 1 100.0 %
Date: 2014-11-03 Functions: 2 2 100.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             : 
      20             : #ifndef INCLUDED_STARMATH_INC_TOOLBOX_HXX
      21             : #define INCLUDED_STARMATH_INC_TOOLBOX_HXX
      22             : 
      23             : #include <sfx2/basedlgs.hxx>
      24             : #include <sfx2/childwin.hxx>
      25             : #include <vcl/toolbox.hxx>
      26             : 
      27             : #include "smmod.hxx"
      28             : #include "config.hxx"
      29             : #include "toolbox.hrc"
      30             : 
      31             : class SmToolBoxWindow : public SfxFloatingWindow
      32             : {
      33             : 
      34             : protected:
      35             :     ToolBox*    m_pToolBoxCat;
      36             :     sal_uInt16  m_nUnbinopsId;
      37             :     sal_uInt16  m_nRelationsId;
      38             :     sal_uInt16  m_nSetoperationsId;
      39             :     sal_uInt16  m_nFunctionsId;
      40             :     sal_uInt16  m_nOperatorsId;
      41             :     sal_uInt16  m_nAttributesId;
      42             :     sal_uInt16  m_nBracketsId;
      43             :     sal_uInt16  m_nFormatId;
      44             :     sal_uInt16  m_nMiscId;
      45             :     ToolBox    *pToolBoxCmd;
      46             :     ToolBox    *vToolBoxCategories[NUM_TBX_CATEGORIES];
      47             :     ImageList  *aImageLists [NUM_TBX_CATEGORIES + 1];   /* regular */
      48             :     sal_uInt16      nActiveCategoryRID;
      49             : 
      50             :     virtual bool    Close() SAL_OVERRIDE;
      51             :     virtual void    GetFocus() SAL_OVERRIDE;
      52             : 
      53             :     void            ApplyImageLists( sal_uInt16 nCategoryRID );
      54             : 
      55             :     DECL_LINK( CategoryClickHdl, ToolBox* );
      56             :     DECL_LINK( CmdSelectHdl, ToolBox* );
      57             : 
      58             :     SmViewShell * GetView();
      59             :     const ImageList * GetImageList( sal_uInt16 nResId );
      60             : 
      61             :     sal_uInt16 MapToolbarIdToCategory(sal_uInt16 nId) const;
      62             : 
      63             : public:
      64             :     SmToolBoxWindow(SfxBindings    *pBindings,
      65             :                     SfxChildWindow *pChildWindow,
      66             :                     Window         *pParent);
      67             :     virtual ~SmToolBoxWindow();
      68             : 
      69             :     // Window
      70             :     virtual void    StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE;
      71             :     virtual void    DataChanged( const DataChangedEvent &rEvt ) SAL_OVERRIDE;
      72             : 
      73             :     void        AdjustPos();
      74             :     void        SetCategory(sal_uInt16 nCategory);
      75             : };
      76             : 
      77             : /**************************************************************************/
      78             : 
      79          68 : class SmToolBoxWrapper : public SfxChildWindow
      80             : {
      81             :     SFX_DECL_CHILDWINDOW_WITHID(SmToolBoxWrapper);
      82             : 
      83             : protected:
      84             :     SmToolBoxWrapper(vcl::Window *pParentWindow,
      85             :                      sal_uInt16, SfxBindings*, SfxChildWinInfo*);
      86             : };
      87             : 
      88             : #endif
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10