LibreOffice Module writerfilter (master) 1
TablePropertiesHandler.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 "PropertyMap.hxx"
23
24#include "TableManager.hxx"
26
27#include <vector>
28
29namespace writerfilter::dmapper {
30
31class DomainMapper;
32
33class TablePropertiesHandler final : public virtual SvRefBase
34{
35private:
37 std::vector<css::beans::PropertyValue>* m_pCurrentInteropGrabBag;
39
40public:
42
43 bool sprm(Sprm & sprm);
44
45 void SetTableManager( TableManager* pTableManager )
46 {
47 m_pTableManager = pTableManager;
48 };
49
50 void SetProperties( PropertyMapPtr pProperties )
51 {
52 m_pCurrentProperties = pProperties;
53 };
54
55 void SetInteropGrabBag(std::vector<css::beans::PropertyValue>& rValue);
56
57private:
58
60 {
61 if ( m_pTableManager )
62 m_pTableManager->cellProps( pProps );
63 else
64 m_pCurrentProperties->InsertProps(pProps.get());
65 };
66
68 {
69 if ( m_pTableManager )
71 else
72 m_pCurrentProperties->InsertProps(pProps.get());
73 };
74
76 {
77 if ( m_pTableManager )
79 else
80 m_pCurrentProperties->InsertProps(pProps.get());
81 };
82
84 {
85 if ( m_pTableManager )
87 else
88 m_pCurrentProperties->InsertProps(pProps.get());
89 };
90};
91
92}
93
94/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
T * get() const
An SPRM: Section, Paragraph and Run Modifier.
virtual void insertRowProps(const TablePropertyMapPtr &pProps)
Handle properties of the current row.
virtual void tableExceptionProps(const TablePropertyMapPtr &pProps)
Handle table exception properties of the current row.
virtual void insertTableProps(const TablePropertyMapPtr &pProps)
Handle properties of the current table.
virtual void cellProps(const TablePropertyMapPtr &pProps)
Handle properties of the current cell.
void tableExceptionProps(TablePropertyMapPtr pProps)
std::vector< css::beans::PropertyValue > * m_pCurrentInteropGrabBag
void SetTableManager(TableManager *pTableManager)
void SetInteropGrabBag(std::vector< css::beans::PropertyValue > &rValue)
The classes in this file define the interfaces for the resource model of the DocTokenizer: