LCOV - code coverage report
Current view: top level - basic/inc - sbstdobj.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 15 6.7 %
Date: 2014-11-03 Functions: 2 16 12.5 %
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_BASIC_INC_SBSTDOBJ_HXX
      21             : #define INCLUDED_BASIC_INC_SBSTDOBJ_HXX
      22             : 
      23             : #include <basic/sbxobj.hxx>
      24             : #include <vcl/graph.hxx>
      25             : #include <basic/sbxfac.hxx>
      26             : #include <basic/basicdllapi.h>
      27             : 
      28             : // class SbStdFactory
      29        8832 : class BASIC_DLLPUBLIC SbStdFactory : public SbxFactory
      30             : {
      31             : public:
      32             :     SbStdFactory();
      33             : 
      34             :     virtual SbxObject*  CreateObject( const OUString& rClassName ) SAL_OVERRIDE;
      35             : };
      36             : 
      37             : // class SbStdPicture
      38             : class BASIC_DLLPUBLIC SbStdPicture : public SbxObject
      39             : {
      40             : protected:
      41             :     Graphic     aGraphic;
      42             : 
      43             :    virtual ~SbStdPicture();
      44             :     virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
      45             :                              const SfxHint& rHint, const TypeId& rHintType ) SAL_OVERRIDE;
      46             : 
      47             :     void    PropType( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      48             :     void    PropWidth( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      49             :     void    PropHeight( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      50             : 
      51             : public:
      52             :     TYPEINFO_OVERRIDE();
      53             : 
      54             :     SbStdPicture();
      55             :     virtual SbxVariable* Find( const OUString&, SbxClassType ) SAL_OVERRIDE;
      56             : 
      57           0 :     Graphic GetGraphic() const { return aGraphic; }
      58           0 :     void    SetGraphic( const Graphic& rGrf ) { aGraphic = rGrf; }
      59             : };
      60             : 
      61             : // class SbStdFont
      62             : class BASIC_DLLPUBLIC SbStdFont : public SbxObject
      63             : {
      64             : protected:
      65             :     bool    bBold;
      66             :     bool    bItalic;
      67             :     bool    bStrikeThrough;
      68             :     bool    bUnderline;
      69             :     sal_uInt16  nSize;
      70             :     OUString  aName;
      71             : 
      72             :    virtual ~SbStdFont();
      73             :     virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
      74             :                              const SfxHint& rHint, const TypeId& rHintType ) SAL_OVERRIDE;
      75             : 
      76             :     void    PropBold( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      77             :     void    PropItalic( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      78             :     void    PropStrikeThrough( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      79             :     void    PropUnderline( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      80             :     void    PropSize( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      81             :     void    PropName( SbxVariable* pVar, SbxArray* pPar, bool bWrite );
      82             : 
      83             : public:
      84             :     TYPEINFO_OVERRIDE();
      85             : 
      86             :     SbStdFont();
      87             :     virtual SbxVariable* Find( const OUString&, SbxClassType ) SAL_OVERRIDE;
      88             : 
      89           0 :     void     SetBold( bool bB ) { bBold = bB; }
      90           0 :     bool IsBold() const { return bBold; }
      91           0 :     void     SetItalic( bool bI ) { bItalic = bI; }
      92           0 :     bool IsItalic() const { return bItalic; }
      93           0 :     void     SetStrikeThrough( bool bS ) { bStrikeThrough = bS; }
      94           0 :     bool IsStrikeThrough() const { return bStrikeThrough; }
      95           0 :     void     SetUnderline( bool bU ) { bUnderline = bU; }
      96           0 :     bool IsUnderline() const { return bUnderline; }
      97           0 :     void     SetSize( sal_uInt16 nS ) { nSize = nS; }
      98           0 :     sal_uInt16 GetSize() const { return nSize; }
      99           0 :     void     SetFontName( const OUString& rName ) { aName = rName; }
     100           0 :     OUString GetFontName() const { return aName; }
     101             : };
     102             : 
     103             : // class SbStdClipboard
     104             : class BASIC_DLLPUBLIC SbStdClipboard : public SbxObject
     105             : {
     106             : protected:
     107             : 
     108             :    virtual ~SbStdClipboard();
     109             :     virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
     110             :                              const SfxHint& rHint, const TypeId& rHintType ) SAL_OVERRIDE;
     111             : 
     112             :     void    MethClear( SbxVariable* pVar, SbxArray* pPar_, bool bWrite );
     113             :     void    MethGetData( SbxVariable* pVar, SbxArray* pPar_, bool bWrite );
     114             :     void    MethGetFormat( SbxVariable* pVar, SbxArray* pPar_, bool bWrite );
     115             :     void    MethGetText( SbxVariable* pVar, SbxArray* pPar_, bool bWrite );
     116             :     void    MethSetData( SbxVariable* pVar, SbxArray* pPar_, bool bWrite );
     117             :     void    MethSetText( SbxVariable* pVar, SbxArray* pPar_, bool bWrite );
     118             : 
     119             : public:
     120             :     TYPEINFO_OVERRIDE();
     121             : 
     122             :     SbStdClipboard();
     123             :     virtual SbxVariable* Find( const OUString&, SbxClassType ) SAL_OVERRIDE;
     124             : };
     125             : 
     126             : #endif // INCLUDED_BASIC_INC_SBSTDOBJ_HXX
     127             : 
     128             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10