LibreOffice Module writerfilter (master)
1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
x
Functions
a
b
c
d
e
f
g
i
k
l
m
n
p
q
r
s
u
x
Variables
a
c
d
f
h
m
n
o
p
w
Typedefs
Enumerations
Enumerator
b
c
e
f
i
l
m
n
p
r
s
t
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
b
c
e
f
g
h
l
m
n
p
r
s
t
x
Typedefs
b
c
d
e
i
o
p
r
t
v
Enumerations
Enumerator
a
c
d
e
f
g
h
i
l
n
p
r
s
t
u
v
w
Files
File List
File Members
All
a
b
c
d
e
h
i
l
m
n
p
s
u
w
Functions
Variables
Typedefs
Macros
writerfilter
source
ooxml
OOXMLFastHelper.hxx
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
#pragma once
20
21
#include "
OOXMLFastContextHandler.hxx
"
22
23
namespace
writerfilter::ooxml
24
{
25
26
template
<
class
T>
27
class
OOXMLFastHelper
28
{
29
public
:
30
static
rtl::Reference<OOXMLFastContextHandler>
createAndSetParentAndDefine
31
(
OOXMLFastContextHandler
* pHandler, sal_uInt32
nToken
,
Id
nId
,
Id
nDefine);
32
33
static
void
newProperty
(
OOXMLFastContextHandler
* pHandler,
34
Id
nId
, sal_Int32
nValue
);
35
};
36
37
template
<
class
T>
38
rtl::Reference<OOXMLFastContextHandler>
OOXMLFastHelper<T>::createAndSetParentAndDefine
(
OOXMLFastContextHandler
* pHandler, sal_uInt32 nToken,
Id
nId,
Id
nDefine)
39
{
40
rtl::Reference<OOXMLFastContextHandler>
pTmp =
new
T(pHandler);
41
42
pTmp->setToken(
nToken
);
43
pTmp->setId(
nId
);
44
pTmp->setDefine(nDefine);
45
46
return
pTmp;
47
}
48
49
template
<
class
T>
50
void
OOXMLFastHelper<T>::newProperty
(
OOXMLFastContextHandler
* pHandler,
51
Id
nId,
52
sal_Int32 nVal)
53
{
54
OOXMLValue::Pointer_t
pVal(T::Create(nVal));
55
56
pHandler->
newProperty
(
nId
, pVal);
57
}
58
59
}
60
61
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OOXMLFastContextHandler.hxx
rtl::Reference
tools::SvRef< OOXMLValue >
writerfilter::ooxml::OOXMLFastContextHandler
Definition:
OOXMLFastContextHandler.hxx:36
writerfilter::ooxml::OOXMLFastContextHandler::newProperty
virtual void newProperty(Id aId, const OOXMLValue::Pointer_t &pVal)
Definition:
OOXMLFastContextHandler.cxx:536
writerfilter::ooxml::OOXMLFastHelper
Definition:
OOXMLFastHelper.hxx:28
writerfilter::ooxml::OOXMLFastHelper::createAndSetParentAndDefine
static rtl::Reference< OOXMLFastContextHandler > createAndSetParentAndDefine(OOXMLFastContextHandler *pHandler, sal_uInt32 nToken, Id nId, Id nDefine)
Definition:
OOXMLFastHelper.hxx:38
writerfilter::ooxml::OOXMLFastHelper::newProperty
static void newProperty(OOXMLFastContextHandler *pHandler, Id nId, sal_Int32 nValue)
Definition:
OOXMLFastHelper.hxx:50
nValue
sal_Int16 nValue
writerfilter::ooxml
Definition:
DomainMapper_Impl.hxx:75
nId
sal_Int16 nId
nToken
DefTokenId nToken
Id
sal_uInt32 Id
Definition:
resourcemodel.hxx:53
Generated on Sun Jul 30 2023 04:31:26 for LibreOffice Module writerfilter (master) by
1.9.3