2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 21:12:30 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 21:12:30 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 21:12:30 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 21:12:30 +00:00
|
|
|
* $RCSfile: wdocsh.cxx,v $
|
|
|
|
* $Revision: 1.16 $
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 21:12:30 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 21:12:30 +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
|
|
|
*
|
2008-04-10 21:12:30 +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
|
|
|
*
|
2008-04-10 21:12:30 +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
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-16 22:36:46 +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
|
|
|
|
|
2003-09-19 07:50:02 +00:00
|
|
|
#include <sot/clsids.hxx>
|
2004-10-04 18:35:24 +00:00
|
|
|
#include <sfx2/objface.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#include "itemdef.hxx"
|
2003-09-19 07:50:02 +00:00
|
|
|
#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"
|
|
|
|
|
2007-09-27 11:50:36 +00:00
|
|
|
#include <unomid.h>
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
SFX_IMPL_INTERFACE( SwWebDocShell, SfxObjectShell, SW_RES(0) )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
TYPEINIT1(SwWebDocShell, SwDocShell);
|
|
|
|
|
2004-10-04 18:35:24 +00:00
|
|
|
SFX_IMPL_OBJECTFACTORY(SwWebDocShell, SvGlobalName(SO3_SWWEB_CLASSID), SFXOBJECTSHELL_STD_NORMAL|SFXOBJECTSHELL_HASMENU, "swriter/web" )
|
2003-09-19 07:50:02 +00:00
|
|
|
|
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,
|
2005-12-14 13:52:39 +00:00
|
|
|
sal_uInt32 * pClipFormat,
|
2007-09-27 11:50:36 +00:00
|
|
|
String * /*pAppName*/,
|
2000-09-18 16:15:01 +00:00
|
|
|
String * pLongUserName,
|
|
|
|
String * pUserName,
|
2004-10-04 18:35:24 +00:00
|
|
|
sal_Int32 nVersion ) const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2004-10-04 18:35:24 +00:00
|
|
|
if (nVersion == SOFFICE_FILEFORMAT_60)
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2004-01-28 18:40:18 +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);
|
|
|
|
}
|
2004-07-13 08:12:13 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|