LibreOffice Module dbaccess (master) 1
xmlStyleImport.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#pragma once
21
22#include <rtl/ustring.hxx>
23#include <xmloff/xmlimp.hxx>
24#include <xmloff/prstylei.hxx>
25#include <xmloff/xmlimppr.hxx>
26
27namespace dbaxml
28{
29 class ODBFilter;
30
32 {
34 OUString sPageStyle;
36 sal_Int32 m_nNumberFormat;
37
39
40 protected:
41
42 virtual void SetAttribute( sal_Int32 nElement,
43 const OUString& rValue ) override;
44
45 public:
46
47
49 SvXMLStylesContext& rStyles, XmlStyleFamily nFamily );
50
51 virtual ~OTableStyleContext() override;
52
53 virtual void FillPropertySet(const css::uno::Reference<
54 css::beans::XPropertySet > & rPropSet ) override;
55
56 virtual void SetDefaults() override;
57
58 void AddProperty(sal_Int16 nContextID, const css::uno::Any& aValue);
59 };
60
62 {
65 bool bAutoStyles : 1;
66
70
72
73 protected:
74
75 // Create a style context.
78 XmlStyleFamily nFamily,
79 sal_Int32 nElement,
80 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
81
82 public:
83
84
86 virtual ~OTableStylesContext() override;
87
88 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
89
91 XmlStyleFamily nFamily ) const override;
92 virtual OUString GetServiceName( XmlStyleFamily nFamily ) const override;
93
94 sal_Int32 GetIndex(const sal_Int16 nContextID);
95 };
96} // dbaxml
97
98/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
friend friend class SvXMLImport
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet) override
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
SvXMLStylesContext * pStyles
virtual ~OTableStyleContext() override
void AddProperty(sal_Int16 nContextID, const css::uno::Any &aValue)
virtual void SetDefaults() override
OTableStyleContext(ODBFilter &rImport, SvXMLStylesContext &rStyles, XmlStyleFamily nFamily)
sal_Int32 GetIndex(const sal_Int16 nContextID)
rtl::Reference< SvXMLImportPropertyMapper > m_xTableImpPropMapper
virtual OUString GetServiceName(XmlStyleFamily nFamily) const override
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const override
virtual ~OTableStylesContext() override
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
rtl::Reference< SvXMLImportPropertyMapper > m_xCellImpPropMapper
OTableStylesContext(SvXMLImport &rImport, bool bAutoStyles)
rtl::Reference< SvXMLImportPropertyMapper > m_xColumnImpPropMapper
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
XmlStyleFamily