LCOV - code coverage report
Current view: top level - svx/inc/svx - fmmodel.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 3 100.0 %
Date: 2012-08-25 Functions: 3 3 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef _SVX_FMMODEL_HXX
      30                 :            : #define _SVX_FMMODEL_HXX
      31                 :            : 
      32                 :            : #include <svx/svdmodel.hxx>
      33                 :            : #include "svx/svxdllapi.h"
      34                 :            : 
      35                 :            : class SfxObjectShell;
      36                 :            : class SfxItemPool;
      37                 :            : class FmXUndoEnvironment;
      38                 :            : class SfxObjectShell;
      39                 :            : class SbxObject;
      40                 :            : class SbxArray;
      41                 :            : class SbxValue;
      42                 :            : 
      43                 :            : struct FmFormModelImplData;
      44                 :            : class SVX_DLLPUBLIC FmFormModel :
      45                 :            :     public SdrModel
      46                 :            : {
      47                 :            : private:
      48                 :            :     FmFormModelImplData*    m_pImpl;
      49                 :            :     SfxObjectShell*         m_pObjShell;
      50                 :            : 
      51                 :            :     sal_Bool            m_bOpenInDesignMode : 1;
      52                 :            :     sal_Bool            m_bAutoControlFocus : 1;
      53                 :            : 
      54                 :            :     SVX_DLLPRIVATE FmFormModel( const FmFormModel& );   // never implemented
      55                 :            :     SVX_DLLPRIVATE void operator=(const FmFormModel& rSrcModel);   // never implemented
      56                 :            : 
      57                 :            : public:
      58                 :            :     TYPEINFO();
      59                 :            : 
      60                 :            :     FmFormModel(SfxItemPool* pPool=NULL, SfxObjectShell* pPers=NULL );
      61                 :            :     FmFormModel(const XubString& rPath, SfxItemPool* pPool=NULL,
      62                 :            :                 SfxObjectShell* pPers=NULL );
      63                 :            :     FmFormModel(const XubString& rPath, SfxItemPool* pPool, SfxObjectShell* pPers,
      64                 :            :                 bool bUseExtColorTable);
      65                 :            : 
      66                 :            :     virtual ~FmFormModel();
      67                 :            : 
      68                 :            :     virtual SdrPage* AllocPage(bool bMasterPage);
      69                 :            :     virtual void     InsertPage(SdrPage* pPage, sal_uInt16 nPos=0xFFFF);
      70                 :            :     virtual SdrPage* RemovePage(sal_uInt16 nPgNum);
      71                 :            :     virtual void     MovePage(sal_uInt16 nPgNum, sal_uInt16 nNewPos);
      72                 :            :     virtual void     InsertMasterPage(SdrPage* pPage, sal_uInt16 nPos=0xFFFF);
      73                 :            :     virtual SdrPage* RemoveMasterPage(sal_uInt16 nPgNum);
      74                 :            : 
      75                 :            :     virtual SdrLayerID      GetControlExportLayerId( const SdrObject& rObj ) const;
      76                 :      42589 :     SfxObjectShell*         GetObjectShell() const { return m_pObjShell; }
      77                 :            :     void                    SetObjectShell( SfxObjectShell* pShell );
      78                 :            : 
      79                 :       1976 :     sal_Bool GetOpenInDesignMode() const { return m_bOpenInDesignMode; }
      80                 :            :     void SetOpenInDesignMode( sal_Bool _bOpenDesignMode );
      81                 :            : 
      82                 :         73 :     sal_Bool    GetAutoControlFocus() const { return m_bAutoControlFocus; }
      83                 :            :     void        SetAutoControlFocus( sal_Bool _bAutoControlFocus );
      84                 :            : 
      85                 :            :     /** check whether the OpenInDesignMode has been set explicitly or been loaded (<FALSE/>)
      86                 :            :         or if it still has the default value from construction (<TRUE/>)
      87                 :            :     */
      88                 :            :     sal_Bool    OpenInDesignModeIsDefaulted();
      89                 :            : 
      90                 :            :     /** determines whether form controls should use the SdrModel's reference device for text rendering
      91                 :            :     */
      92                 :            :     sal_Bool    ControlsUseRefDevice() const;
      93                 :            : 
      94                 :            :     FmXUndoEnvironment& GetUndoEnv();
      95                 :            : 
      96                 :            : private:
      97                 :            :     void        implSetOpenInDesignMode( sal_Bool _bOpenDesignMode, sal_Bool _bForce );
      98                 :            : };
      99                 :            : 
     100                 :            : #endif          // _FM_FMMODEL_HXX
     101                 :            : 
     102                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10