LCOV - code coverage report
Current view: top level - basctl/source/basicide - basdoc.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 29 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 21 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             : 
      20             : #include <sfx2/app.hxx>
      21             : #include <sfx2/printer.hxx>
      22             : #include <sfx2/objface.hxx>
      23             : 
      24             : #include "unomodel.hxx"
      25             : 
      26             : #include <basdoc.hxx>
      27             : #define basctl_DocShell     // This CANNOT come before basdoc apparently
      28             : #include <basslots.hxx>
      29             : #include <sfx2/sfxmodelfactory.hxx>
      30             : #include <svx/svxids.hrc>
      31             : 
      32             : namespace basctl
      33             : {
      34             : 
      35           0 : TYPEINIT1(DocShell, SfxObjectShell);
      36             : 
      37           0 : SFX_IMPL_OBJECTFACTORY( DocShell, SvGlobalName(), SfxObjectShellFlags::STD_NORMAL, "sbasic" )
      38             : 
      39           0 : SFX_IMPL_SUPERCLASS_INTERFACE(basctl_DocShell, SfxObjectShell)
      40             : 
      41           0 : void basctl_DocShell::InitInterface_Impl()
      42             : {
      43           0 :     GetStaticInterface()->RegisterStatusBar(IDEResId(SID_BASICIDE_STATUSBAR));
      44           0 : }
      45             : 
      46           0 : DocShell::DocShell()
      47           0 :     :SfxObjectShell( SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS | SfxModelFlags::DISABLE_DOCUMENT_RECOVERY )
      48             : {
      49           0 :     SetPool( &SfxGetpApp()->GetPool() );
      50           0 :     SetBaseModel( new SIDEModel(this) );
      51           0 : }
      52             : 
      53           0 : DocShell::~DocShell()
      54             : {
      55           0 :     pPrinter.disposeAndClear();
      56           0 : }
      57             : 
      58           0 : SfxPrinter* DocShell::GetPrinter( bool bCreate )
      59             : {
      60           0 :     if ( !pPrinter && bCreate )
      61             :         pPrinter.reset(VclPtr<SfxPrinter>::Create(new SfxItemSet(
      62           0 :             GetPool(), SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN
      63           0 :         )));
      64             : 
      65           0 :     return pPrinter.get();
      66             : }
      67             : 
      68           0 : void DocShell::SetPrinter( SfxPrinter* pPr )
      69             : {
      70           0 :     if (pPr != pPrinter.get())
      71             :     {
      72           0 :         pPrinter.disposeAndClear();
      73           0 :         pPrinter.reset(pPr);
      74             :     }
      75           0 : }
      76             : 
      77           0 : void DocShell::FillClass( SvGlobalName*, SotClipboardFormatId*, OUString*, OUString*, OUString*, sal_Int32, bool bTemplate) const
      78             : {
      79             :     (void)bTemplate;
      80             :     DBG_ASSERT( !bTemplate, "No template for Basic" );
      81           0 : }
      82             : 
      83           0 : void DocShell::Draw( OutputDevice *, const JobSetup &, sal_uInt16 )
      84           0 : {}
      85             : 
      86           0 : } // namespace basctl
      87             : 
      88             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11