LCOV - code coverage report
Current view: top level - sc/source/filter/excel - xltoolbar.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 9 0.0 %
Date: 2014-04-14 Functions: 0 12 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             : #ifndef _XLTOOLBAR_HXX
      10             : #define _XLTOOLBAR_HXX
      11             : 
      12             : #include <filter/msfilter/mstoolbar.hxx>
      13             : 
      14             : class ScCTBWrapper;
      15             : // hmm I don't normally use these packed structures
      16             : // but.. hey always good to do something different
      17           0 : class TBCCmd : public TBBase
      18             : {
      19             : public:
      20           0 :     TBCCmd() : cmdID(0), A(false), B(false), cmdType(0), C(false), reserved3(0)
      21           0 :     {}
      22             :     sal_uInt16 cmdID;
      23             :     bool A:1;
      24             :     bool B:1;
      25             :     sal_uInt16 cmdType:5;
      26             :     bool C:1;
      27             :     sal_uInt16 reserved3:8;
      28             :     bool Read( SvStream& rS ) SAL_OVERRIDE;
      29             :     void Print(FILE* fp) SAL_OVERRIDE;
      30             : };
      31             : 
      32           0 : class ScTBC : public TBBase
      33             : {
      34             :     TBCHeader tbch;
      35             :     boost::shared_ptr<TBCCmd> tbcCmd; // optional
      36             :     boost::shared_ptr<TBCData> tbcd;
      37             : public:
      38             :     ScTBC();
      39           0 :     virtual ~ScTBC(){}
      40             :     void Print( FILE* ) SAL_OVERRIDE;
      41             :     bool Read(SvStream &rS) SAL_OVERRIDE;
      42             :     bool ImportToolBarControl( ScCTBWrapper&, const com::sun::star::uno::Reference< com::sun::star::container::XIndexContainer >& toolbarcontainer, CustomToolBarImportHelper& helper, bool bIsMenuBar );
      43             : };
      44             : 
      45           0 : class ScCTB : public TBBase
      46             : {
      47             :     sal_uInt16 nViews;
      48             :     TB tb;
      49             :     std::vector<TBVisualData> rVisualData;
      50             :     sal_uInt32 ectbid;
      51             :     std::vector< ScTBC > rTBC;
      52             :     bool ImportCustomToolBar_Impl( ScCTBWrapper&, CustomToolBarImportHelper& );
      53             : public:
      54             :     ScCTB(sal_uInt16);
      55           0 :     virtual ~ScCTB(){}
      56             :     void Print( FILE* ) SAL_OVERRIDE;
      57             :     bool Read(SvStream &rS) SAL_OVERRIDE;
      58             :     bool IsMenuToolbar();
      59             :     bool ImportCustomToolBar( ScCTBWrapper&, CustomToolBarImportHelper& );
      60             :     bool ImportMenuTB( ScCTBWrapper&, const css::uno::Reference< css::container::XIndexContainer >&, CustomToolBarImportHelper& );
      61           0 :     OUString GetName() { return tb.getName().getString(); }
      62             : 
      63             : 
      64             : };
      65             : 
      66             : class CTBS : public TBBase
      67             : {
      68             : public:
      69             :     sal_uInt8 bSignature;
      70             :     sal_uInt8 bVersion;
      71             :     sal_uInt16 reserved1;
      72             :     sal_uInt16 reserved2;
      73             :     sal_uInt16 reserved3;
      74             :     sal_uInt16 ctb;
      75             :     sal_uInt16 ctbViews;
      76             :     sal_uInt16 ictbView;
      77             :     CTBS(const CTBS&);
      78             :     CTBS& operator = ( const CTBS&);
      79             :     CTBS();
      80           0 :     virtual ~CTBS(){}
      81             :     void Print( FILE* ) SAL_OVERRIDE;
      82             :     bool Read(SvStream &rS) SAL_OVERRIDE;
      83             : };
      84             : 
      85             : class ScCTBWrapper : public TBBase
      86             : {
      87             :     CTBS ctbSet;
      88             : 
      89             :     std::vector< ScCTB > rCTB;
      90             : 
      91             : public:
      92             :     ScCTBWrapper();
      93             :     virtual ~ScCTBWrapper();
      94             :     bool Read(SvStream &rS) SAL_OVERRIDE;
      95             :     void Print( FILE* ) SAL_OVERRIDE;
      96             :     bool ImportCustomToolBar( SfxObjectShell& rDocSh );
      97             :     ScCTB* GetCustomizationData( const OUString& name );
      98             : };
      99             : 
     100             : 
     101             : #endif //_XLTOOLBAR_HXX
     102             : 
     103             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10