2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 10:34:33 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 10:34:33 +00:00
|
|
|
* $RCSfile: wdocsh.cxx,v $
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2006-09-16 22:36:46 +00:00
|
|
|
* $Revision: 1.14 $
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2006-09-16 22:36:46 +00:00
|
|
|
* last change: $Author: obo $ $Date: 2006-09-16 23:36:46 $
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 10:34:33 +00:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 10:34:33 +00:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 10:34:33 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 10:34:33 +00:00
|
|
|
* This library 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 for more details.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2005-09-09 10:34:33 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _SVX_SRCHITEM_HXX
|
|
|
|
#include <svx/srchitem.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _SFXAPP_HXX //autogen
|
|
|
|
#include <sfx2/app.hxx>
|
|
|
|
#endif
|
|
|
|
#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"
|
|
|
|
|
|
|
|
#define C2S(cChar) UniString::CreateFromAscii(cChar)
|
|
|
|
|
|
|
|
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,
|
2000-09-18 16:15:01 +00:00
|
|
|
String * pAppName,
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|