LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/include/svx - fmmodel.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 3 100.0 %
Date: 2013-07-09 Functions: 3 3 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 _SVX_FMMODEL_HXX
      21             : #define _SVX_FMMODEL_HXX
      22             : 
      23             : #include <svx/svdmodel.hxx>
      24             : #include "svx/svxdllapi.h"
      25             : 
      26             : class SfxObjectShell;
      27             : class SfxItemPool;
      28             : class FmXUndoEnvironment;
      29             : class SfxObjectShell;
      30             : class SbxObject;
      31             : class SbxArray;
      32             : class SbxValue;
      33             : 
      34             : struct FmFormModelImplData;
      35             : class SVX_DLLPUBLIC FmFormModel :
      36             :     public SdrModel
      37             : {
      38             : private:
      39             :     FmFormModelImplData*    m_pImpl;
      40             :     SfxObjectShell*         m_pObjShell;
      41             : 
      42             :     sal_Bool            m_bOpenInDesignMode : 1;
      43             :     sal_Bool            m_bAutoControlFocus : 1;
      44             : 
      45             :     SVX_DLLPRIVATE FmFormModel( const FmFormModel& );   // never implemented
      46             :     SVX_DLLPRIVATE void operator=(const FmFormModel& rSrcModel);   // never implemented
      47             : 
      48             : public:
      49             :     TYPEINFO();
      50             : 
      51             :     FmFormModel(SfxItemPool* pPool=NULL, SfxObjectShell* pPers=NULL );
      52             :     FmFormModel(const XubString& rPath, SfxItemPool* pPool=NULL,
      53             :                 SfxObjectShell* pPers=NULL );
      54             :     FmFormModel(const XubString& rPath, SfxItemPool* pPool, SfxObjectShell* pPers,
      55             :                 bool bUseExtColorTable);
      56             : 
      57             :     virtual ~FmFormModel();
      58             : 
      59             :     virtual SdrPage* AllocPage(bool bMasterPage);
      60             :     virtual void     InsertPage(SdrPage* pPage, sal_uInt16 nPos=0xFFFF);
      61             :     virtual SdrPage* RemovePage(sal_uInt16 nPgNum);
      62             :     virtual void     MovePage(sal_uInt16 nPgNum, sal_uInt16 nNewPos);
      63             :     virtual void     InsertMasterPage(SdrPage* pPage, sal_uInt16 nPos=0xFFFF);
      64             :     virtual SdrPage* RemoveMasterPage(sal_uInt16 nPgNum);
      65             : 
      66             :     virtual SdrLayerID      GetControlExportLayerId( const SdrObject& rObj ) const;
      67       23358 :     SfxObjectShell*         GetObjectShell() const { return m_pObjShell; }
      68             :     void                    SetObjectShell( SfxObjectShell* pShell );
      69             : 
      70        1397 :     sal_Bool GetOpenInDesignMode() const { return m_bOpenInDesignMode; }
      71             :     void SetOpenInDesignMode( sal_Bool _bOpenDesignMode );
      72             : 
      73         101 :     sal_Bool    GetAutoControlFocus() const { return m_bAutoControlFocus; }
      74             :     void        SetAutoControlFocus( sal_Bool _bAutoControlFocus );
      75             : 
      76             :     /** check whether the OpenInDesignMode has been set explicitly or been loaded (<FALSE/>)
      77             :         or if it still has the default value from construction (<TRUE/>)
      78             :     */
      79             :     sal_Bool    OpenInDesignModeIsDefaulted();
      80             : 
      81             :     /** determines whether form controls should use the SdrModel's reference device for text rendering
      82             :     */
      83             :     sal_Bool    ControlsUseRefDevice() const;
      84             : 
      85             :     FmXUndoEnvironment& GetUndoEnv();
      86             : 
      87             : private:
      88             :     void        implSetOpenInDesignMode( sal_Bool _bOpenDesignMode, sal_Bool _bForce );
      89             : };
      90             : 
      91             : #endif          // _FM_FMMODEL_HXX
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10