Files
libreoffice/sw/source/ui/web/wdocsh.cxx

114 lines
3.1 KiB
C++
Raw Normal View History

2000-09-18 16:15:01 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 16:15:01 +00:00
*
* Copyright 2008 by Sun Microsystems, Inc.
2000-09-18 16:15:01 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 16:15:01 +00:00
*
* $RCSfile: wdocsh.cxx,v $
* $Revision: 1.16 $
2000-09-18 16:15:01 +00:00
*
* This file is part of OpenOffice.org.
2000-09-18 16:15:01 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 16:15:01 +00:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 16:15:01 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 16:15:01 +00:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sw.hxx"
2000-09-18 16:15:01 +00:00
#include <svx/srchitem.hxx>
#include <sfx2/app.hxx>
#ifndef _SVX_SVXIDS_HRC //autogen
#include <svx/svxids.hrc>
#endif
#include <sot/clsids.hxx>
#include <sfx2/objface.hxx>
2000-09-18 16:15:01 +00:00
#include "itemdef.hxx"
#include "cfgid.h"
2000-09-18 16:15:01 +00:00
#include "cmdid.h"
#include "swtypes.hxx"
#include "shellio.hxx"
// nur wegen des Itemtypes
#include "wdocsh.hxx"
#include "web.hrc"
#define SwWebDocShell
#include "swslots.hxx"
#include <unomid.h>
2000-09-18 16:15:01 +00:00
SFX_IMPL_INTERFACE( SwWebDocShell, SfxObjectShell, SW_RES(0) )
{
}
TYPEINIT1(SwWebDocShell, SwDocShell);
SFX_IMPL_OBJECTFACTORY(SwWebDocShell, SvGlobalName(SO3_SWWEB_CLASSID), SFXOBJECTSHELL_STD_NORMAL|SFXOBJECTSHELL_HASMENU, "swriter/web" )
2000-09-18 16:15:01 +00:00
/*-----------------22.01.97 09.29-------------------
--------------------------------------------------*/
SwWebDocShell::SwWebDocShell(SfxObjectCreateMode eMode ) :
SwDocShell(eMode),
nSourcePara(0)
{
}
/*-----------------22.01.97 09.29-------------------
--------------------------------------------------*/
2001-07-05 14:48:07 +00:00
SwWebDocShell::~SwWebDocShell()
2000-09-18 16:15:01 +00:00
{
}
2001-07-05 14:48:07 +00:00
void SwWebDocShell::FillClass( SvGlobalName * pClassName,
sal_uInt32 * pClipFormat,
String * /*pAppName*/,
2000-09-18 16:15:01 +00:00
String * pLongUserName,
String * pUserName,
sal_Int32 nVersion ) const
2000-09-18 16:15:01 +00:00
{
if (nVersion == SOFFICE_FILEFORMAT_60)
2000-09-18 16:15:01 +00:00
{
*pClassName = SvGlobalName( SO3_SWWEB_CLASSID_60 );
*pClipFormat = SOT_FORMATSTR_ID_STARWRITERWEB_60;
2000-09-18 16:15:01 +00:00
*pLongUserName = SW_RESSTR(STR_WRITER_WEBDOC_FULLTYPE);
}
else if (nVersion == SOFFICE_FILEFORMAT_8)
{
*pClassName = SvGlobalName( SO3_SWWEB_CLASSID_60 );
*pClipFormat = SOT_FORMATSTR_ID_STARWRITERWEB_8;
*pLongUserName = SW_RESSTR(STR_WRITER_WEBDOC_FULLTYPE);
}
2000-09-18 16:15:01 +00:00
*pUserName = SW_RESSTR(STR_HUMAN_SWWEBDOC_NAME);
}