LCOV - code coverage report
Current view: top level - sw/source/core/uibase/web - wdocsh.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 20 0.0 %
Date: 2014-04-14 Functions: 0 16 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 <svl/srchitem.hxx>
      21             : #include <sfx2/app.hxx>
      22             : #include <svx/svxids.hrc>
      23             : 
      24             : #include <comphelper/classids.hxx>
      25             : #include <sfx2/objface.hxx>
      26             : 
      27             : #include <sfx2/msg.hxx>
      28             : #include "cfgid.h"
      29             : #include "cmdid.h"
      30             : #include "swtypes.hxx"
      31             : 
      32             : #include "shellio.hxx"
      33             : // just because of the itemtypes
      34             : #include "wdocsh.hxx"
      35             : #include "web.hrc"
      36             : 
      37             : #define SwWebDocShell
      38             : #include "swslots.hxx"
      39             : 
      40             : #include <unomid.h>
      41             : 
      42           0 : SFX_IMPL_INTERFACE( SwWebDocShell, SfxObjectShell, SW_RES(0) )
      43             : {
      44           0 : }
      45             : 
      46           0 : TYPEINIT1(SwWebDocShell, SwDocShell);
      47             : 
      48           0 : SFX_IMPL_OBJECTFACTORY(SwWebDocShell, SvGlobalName(SO3_SWWEB_CLASSID), SFXOBJECTSHELL_STD_NORMAL|SFXOBJECTSHELL_HASMENU, "swriter/web" )
      49             : 
      50           0 : SwWebDocShell::SwWebDocShell(SfxObjectCreateMode eMode ) :
      51             :         SwDocShell(eMode),
      52           0 :         nSourcePara(0)
      53             : {
      54           0 : }
      55             : 
      56           0 : SwWebDocShell::~SwWebDocShell()
      57             : {
      58           0 : }
      59             : 
      60           0 : void SwWebDocShell::FillClass( SvGlobalName * pClassName,
      61             :                                    sal_uInt32 * pClipFormat,
      62             :                                    OUString * /*pAppName*/,
      63             :                                    OUString * pLongUserName,
      64             :                                    OUString * pUserName,
      65             :                                    sal_Int32 nVersion,
      66             :                                    bool bTemplate /* = false */) const
      67             : {
      68             :     (void)bTemplate;
      69             :     OSL_ENSURE( !bTemplate, "No template for Writer Web" );
      70             : 
      71           0 :     if (nVersion == SOFFICE_FILEFORMAT_60)
      72             :     {
      73           0 :         *pClassName = SvGlobalName( SO3_SWWEB_CLASSID_60 );
      74           0 :         *pClipFormat = SOT_FORMATSTR_ID_STARWRITERWEB_60;
      75           0 :         *pLongUserName = SW_RESSTR(STR_WRITER_WEBDOC_FULLTYPE);
      76             :     }
      77           0 :     else if (nVersion == SOFFICE_FILEFORMAT_8)
      78             :     {
      79           0 :         *pClassName     = SvGlobalName( SO3_SWWEB_CLASSID_60 );
      80           0 :         *pClipFormat    = SOT_FORMATSTR_ID_STARWRITERWEB_8;
      81           0 :         *pLongUserName = SW_RESSTR(STR_WRITER_WEBDOC_FULLTYPE);
      82             :     }
      83           0 :     *pUserName = SW_RESSTR(STR_HUMAN_SWWEBDOC_NAME);
      84           0 : }
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10