LibreOffice Module sw (master) 1
wdocsh.cxx
Go to the documentation of this file.
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 <svx/svxids.hrc>
21
24#include <sfx2/objface.hxx>
25#include <tools/globname.hxx>
26#include <osl/diagnose.h>
27
28#include <sfx2/msg.hxx>
29#include <swtypes.hxx>
30
31#include <wdocsh.hxx>
32#include <strings.hrc>
33
34 // needed for -fsanitize=function visibility of typeinfo for functions of
35 // type void(SfxShell*,SfxRequest&) defined in swslots.hxx
36#define ShellClass_SwWebDocShell
37#include <swslots.hxx>
38
40
41void SwWebDocShell::InitInterface_Impl()
42{
43}
44
45
46SFX_IMPL_OBJECTFACTORY(SwWebDocShell, SvGlobalName(SO3_SWWEB_CLASSID), "swriter/web" )
47
50 , m_nSourcePara(0)
51{
52}
53
55{
56}
57
59 SotClipboardFormatId * pClipFormat,
60 OUString * pLongUserName,
61 sal_Int32 nVersion,
62 bool bTemplate /* = false */) const
63{
64 OSL_ENSURE( !bTemplate, "No template for Writer Web" );
65
67 {
68 *pClassName = SvGlobalName( SO3_SWWEB_CLASSID_60 );
69 *pClipFormat = SotClipboardFormatId::STARWRITERWEB_60;
70 *pLongUserName = SwResId(STR_WRITER_WEBDOC_FULLTYPE);
71 }
73 {
74 *pClassName = SvGlobalName( SO3_SWWEB_CLASSID_60 );
75 *pClipFormat = SotClipboardFormatId::STARWRITERWEB_8;
76 *pLongUserName = SwResId(STR_WRITER_WEBDOC_FULLTYPE);
77 }
78}
79
80/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void FillClass(SvGlobalName *pClassName, SotClipboardFormatId *pClipFormat, OUString *pLongUserName, sal_Int32 nFileFormat, bool bTemplate=false) const override
Definition: wdocsh.cxx:58
virtual ~SwWebDocShell() override
Definition: wdocsh.cxx:54
#define SO3_SWWEB_CLASSID_60
SFX_IMPL_SUPERCLASS_INTERFACE(DrawDocShell, SfxObjectShell)
sal_Int16 nVersion
#define SOFFICE_FILEFORMAT_8
#define SOFFICE_FILEFORMAT_60
SotClipboardFormatId
SFX_IMPL_OBJECTFACTORY(DrawDocShell, SvGlobalName(SO3_SIMPRESS_CLASSID), "simpress") void DrawDocShell
SfxObjectCreateMode
OUString SwResId(TranslateId aId)
Definition: swmodule.cxx:168