LibreOffice Module xmloff (master) 1
prhdlfac.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
20#ifndef INCLUDED_XMLOFF_PRHDLFAC_HXX
21#define INCLUDED_XMLOFF_PRHDLFAC_HXX
22
23#include <xmloff/dllapi.h>
24#include <sal/types.h>
25
27#include <memory>
28
30
41{
42 struct Impl;
43 std::unique_ptr<Impl> mpImpl;
44
47
48public:
50 virtual ~XMLPropertyHandlerFactory() override;
51
84 virtual const XMLPropertyHandler* GetPropertyHandler(sal_Int32 nType) const;
85
90 static std::unique_ptr<XMLPropertyHandler> CreatePropertyHandler(sal_Int32 nType);
91
92protected:
94 const XMLPropertyHandler* GetHdlCache(sal_Int32 nType) const;
96 void PutHdlCache(sal_Int32 nType, const XMLPropertyHandler* pHdl) const;
97
98private:
101 SAL_DLLPRIVATE const XMLPropertyHandler* GetBasicHandler(sal_Int32 nType) const;
102};
103
104#endif // INCLUDED_XMLOFF_PRHDLFAC_HXX
105
106/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class is a base-class to create XMLPropertyHandler.
Definition: prhdlfac.hxx:41
XMLPropertyHandlerFactory & operator=(const XMLPropertyHandlerFactory &)=delete
std::unique_ptr< Impl > mpImpl
Definition: prhdlfac.hxx:42
XMLPropertyHandlerFactory(const XMLPropertyHandlerFactory &)=delete
Abstract base-class for different XML-types.
Definition: xmlprhdl.hxx:36
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29
static const XMLPropertyHandler * GetPropertyHandler(sal_Int32 nType)
Definition: txtprhdl.cxx:1223