LCOV - code coverage report
Current view: top level - sfx2/source/inc - objshimp.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 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             :  * 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             : #ifndef INCLUDED_SFX2_SOURCE_INC_OBJSHIMP_HXX
      20             : #define INCLUDED_SFX2_SOURCE_INC_OBJSHIMP_HXX
      21             : 
      22             : #include <com/sun/star/frame/XModel.hpp>
      23             : #include <com/sun/star/uno/Sequence.hxx>
      24             : #include <rtl/ustring.hxx>
      25             : #include <rtl/ref.hxx>
      26             : #include <com/sun/star/logging/XSimpleLogRing.hpp>
      27             : #include <tools/datetime.hxx>
      28             : 
      29             : #include <unotools/securityoptions.hxx>
      30             : #include <sfx2/objsh.hxx>
      31             : #include <sfx2/docmacromode.hxx>
      32             : #include "bitset.hxx"
      33             : 
      34             : #include <appbaslib.hxx>
      35             : 
      36             : namespace svtools { class AsynchronLink; }
      37             : 
      38             : class SfxViewFrame;
      39           0 : struct MarkData_Impl
      40             : {
      41             :     OUString aMark;
      42             :     OUString aUserData;
      43             :     SfxViewFrame* pFrame;
      44             : };
      45             : 
      46             : class SfxBasicManagerHolder;
      47             : 
      48             : struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess
      49             : {
      50             :     ::comphelper::EmbeddedObjectContainer* mpObjectContainer;
      51             :     SfxBasicManagerHolder aBasicManager;
      52             :     SfxObjectShell&     rDocShell;
      53             :     ::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >
      54             :                         xBasicLibraries;
      55             :     ::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >
      56             :                         xDialogLibraries;
      57             :     com::sun::star::uno::Sequence < OUString > xEventNames;
      58             :     ::sfx2::DocumentMacroMode
      59             :                         aMacroMode;
      60             :     SfxProgress*        pProgress;
      61             :     OUString            aTitle;
      62             :     OUString            aTempName;
      63             :     DateTime            nTime;
      64             :     sal_uInt16          nVisualDocumentNumber;
      65             :     SignatureState      nDocumentSignatureState;
      66             :     SignatureState      nScriptingSignatureState;
      67             :     bool            bInList:1,          // if reachable by First/Next
      68             :                         bClosing:1,         // sal_True while Close(), to prevent recurrences Notification
      69             :                         bIsSaving:1,
      70             :                         bPasswd:1,
      71             :                         bIsNamedVisible:1,
      72             :                         bIsTemplate:1,
      73             :                         bIsAbortingImport:1,  // Import operation should be canceled.
      74             :                         bImportDone : 1, // Import finished already? For auto reload of Docs.
      75             :                         bInPrepareClose : 1,
      76             :                         bPreparedForClose : 1,
      77             :                         bForbidReload : 1,
      78             :                         bBasicInitialized :1,
      79             :                         bIsPrintJobCancelable :1, // Stampit disable/enable cancel button for print jobs ... default = true = enable!
      80             :                         bOwnsStorage:1,
      81             :                         bNoBaseURL:1,
      82             :                         bInitialized:1,
      83             :                         bSignatureErrorIsShown:1,
      84             :                         bModelInitialized:1, // whether the related model is initialized
      85             :                         bPreserveVersions:1,
      86             :                         m_bMacroSignBroken:1, // whether the macro signature was explicitly broken
      87             :                         m_bNoBasicCapabilities:1,
      88             :                         m_bDocRecoverySupport:1,
      89             :                         bQueryLoadTemplate:1,
      90             :                         bLoadReadonly:1,
      91             :                         bUseUserData:1,
      92             :                         bSaveVersionOnClose:1,
      93             :                         m_bSharedXMLFlag:1, // whether the flag should be stored in xml file
      94             :                         m_bAllowShareControlFileClean:1, // whether the flag should be stored in xml file
      95             :                         m_bConfigOptionsChecked:1; // whether or not the user options are checked after the Options dialog is closed.
      96             : 
      97             :     IndexBitSet         aBitSet;
      98             :     sal_uInt32          lErr;
      99             :     sal_uInt16          nEventId;           // If Open/Create as to be sent
     100             :                                             // before Activate
     101             :     AutoReloadTimer_Impl *pReloadTimer;
     102             :     MarkData_Impl*      pMarkData;
     103             :     SfxLoadedFlags      nLoadedFlags;
     104             :     SfxLoadedFlags      nFlagsInProgress;
     105             :     bool                bModalMode;
     106             :     bool                bRunningMacro;
     107             :     bool                bReloadAvailable;
     108             :     sal_uInt16          nAutoLoadLocks;
     109             :     SfxModule*          pModule;
     110             :     SfxObjectShellFlags     eFlags;
     111             :     bool                bReadOnlyUI;
     112             :     tools::SvRef<SvRefBase>  xHeaderAttributes;
     113             :     ::rtl::Reference< SfxBaseModel >
     114             :                             pBaseModel;
     115             :     sal_uInt16          nStyleFilter;
     116             :     bool                bDisposing;
     117             : 
     118             :     bool                m_bEnableSetModified;
     119             :     bool                m_bIsModified;
     120             : 
     121             :     Rectangle           m_aVisArea;
     122             :     MapUnit             m_nMapUnit;
     123             : 
     124             :     bool                m_bCreateTempStor;
     125             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xDocStorage;
     126             : 
     127             :     bool                m_bIsInit;
     128             : 
     129             :     OUString         m_aSharedFileURL;
     130             : 
     131             :     ::com::sun::star::uno::Reference< ::com::sun::star::logging::XSimpleLogRing > m_xLogRing;
     132             : 
     133             :     bool                m_bIncomplEncrWarnShown;
     134             : 
     135             :     // TODO/LATER: m_aModifyPasswordInfo should completely replace m_nModifyPasswordHash in future
     136             :     sal_uInt32              m_nModifyPasswordHash;
     137             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aModifyPasswordInfo;
     138             :     bool                m_bModifyPasswordEntered;
     139             : 
     140             :     SfxObjectShell_Impl( SfxObjectShell& _rDocShell );
     141             :     virtual ~SfxObjectShell_Impl();
     142             : 
     143             :     // IMacroDocumentAccess overridables
     144             :     virtual sal_Int16 getCurrentMacroExecMode() const SAL_OVERRIDE;
     145             :     virtual bool setCurrentMacroExecMode( sal_uInt16 nMacroMode ) SAL_OVERRIDE;
     146             :     virtual OUString getDocumentLocation() const SAL_OVERRIDE;
     147             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > getZipStorageToSign() SAL_OVERRIDE;
     148             :     virtual bool documentStorageHasMacros() const SAL_OVERRIDE;
     149             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedScripts > getEmbeddedDocumentScripts() const SAL_OVERRIDE;
     150             :     virtual SignatureState getScriptingSignatureState() SAL_OVERRIDE;
     151             : 
     152             :     virtual bool hasTrustedScriptingSignature( bool bAllowUIToAddAuthor ) SAL_OVERRIDE;
     153             :     virtual void showBrokenSignatureWarning( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxInteraction ) const SAL_OVERRIDE;
     154             : };
     155             : 
     156             : #endif
     157             : 
     158             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11