LibreOffice Module sw (master) 1
globdoc.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
22#include <osl/diagnose.h>
23#include <tools/globname.hxx>
24
25#include <swtypes.hxx>
26#include <globdoc.hxx>
27#include <strings.hrc>
28
29// Description: Register all filters
30
31
32SFX_IMPL_OBJECTFACTORY( SwGlobalDocShell, SvGlobalName(SO3_SWGLOB_CLASSID), "swriter/GlobalDocument" )
33
35 SwDocShell(eMode)
36{
37}
38
40{
41}
42
44 SotClipboardFormatId * pClipFormat,
45 OUString * pLongUserName,
46 sal_Int32 nVersion,
47 bool bTemplate /* = false */) const
48{
50 {
51 *pClassName = SvGlobalName( SO3_SWGLOB_CLASSID_60 );
52 *pClipFormat = SotClipboardFormatId::STARWRITERGLOB_60;
53 *pLongUserName = SwResId(STR_WRITER_GLOBALDOC_FULLTYPE);
54 OSL_ENSURE( !bTemplate, "No template for Writer Global" );
55 }
57 {
58 *pClassName = SvGlobalName( SO3_SWGLOB_CLASSID_60 );
59 *pClipFormat = bTemplate ? SotClipboardFormatId::STARWRITERGLOB_8_TEMPLATE : SotClipboardFormatId::STARWRITERGLOB_8;
60 *pLongUserName = SwResId(STR_WRITER_GLOBALDOC_FULLTYPE);
61 }
62}
63
64/* 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: globdoc.cxx:43
virtual ~SwGlobalDocShell() override
Definition: globdoc.cxx:39
#define SO3_SWGLOB_CLASSID_60
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