LibreOffice Module writerfilter (master) 1
TDefTableHandler.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 "LoggedResources.hxx"
22#include <vector>
25
26namespace com::sun::star{
27 namespace table {
28 struct BorderLine2;
29 }
30 namespace beans {
31 struct PropertyValue;
32 }
33}
34
36{
37class PropertyMap;
38class TablePropertyMap;
40{
41 std::vector<css::table::BorderLine2> m_aLeftBorderLines;
42 std::vector<css::table::BorderLine2> m_aRightBorderLines;
43 std::vector<css::table::BorderLine2> m_aTopBorderLines;
44 std::vector<css::table::BorderLine2> m_aBottomBorderLines;
45 std::vector<css::table::BorderLine2> m_aInsideHBorderLines;
46 std::vector<css::table::BorderLine2> m_aInsideVBorderLines;
47
48 //values of the current border
49 sal_Int32 m_nLineWidth;
50 sal_Int32 m_nLineType;
51 sal_Int32 m_nLineColor;
52
54 sal_Int32 m_nThemeShade = 0;
55 sal_Int32 m_nThemeTint = 0;
56
58 std::vector<css::beans::PropertyValue> m_aInteropGrabBag;
59 void appendGrabBag(const OUString& aKey, const OUString& aValue);
60
62
63 // Properties
64 virtual void lcl_attribute(Id Name, Value & val) override;
65 virtual void lcl_sprm(Sprm & sprm) override;
66
67public:
69 virtual ~TDefTableHandler() override;
70
71 void fillCellProperties( const ::tools::SvRef< TablePropertyMap >& pCellProperties) const;
72 void enableInteropGrabBag(const OUString& aName);
73 css::beans::PropertyValue getInteropGrabBag(const OUString& aName = OUString());
74
75 static OUString getBorderTypeString(sal_Int32 nType);
76 static OUString getThemeColorTypeString(sal_Int32 nType);
77 static model::ThemeColorType getThemeColorTypeIndex(sal_Int32 nType);
78 static model::ThemeColorUsage getThemeColorUsage(sal_Int32 nType);
79};
80}
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void sprm(Sprm &sprm) override
Receives a SPRM.
An SPRM: Section, Paragraph and Run Modifier.
static OUString getBorderTypeString(sal_Int32 nType)
std::vector< css::table::BorderLine2 > m_aLeftBorderLines
std::vector< css::table::BorderLine2 > m_aInsideVBorderLines
css::beans::PropertyValue getInteropGrabBag(const OUString &aName=OUString())
std::vector< css::table::BorderLine2 > m_aTopBorderLines
void localResolve(Id Name, const writerfilter::Reference< Properties >::Pointer_t &pProperties)
virtual void lcl_sprm(Sprm &sprm) override
void enableInteropGrabBag(const OUString &aName)
std::vector< css::table::BorderLine2 > m_aInsideHBorderLines
void fillCellProperties(const ::tools::SvRef< TablePropertyMap > &pCellProperties) const
std::vector< css::beans::PropertyValue > m_aInteropGrabBag
static model::ThemeColorUsage getThemeColorUsage(sal_Int32 nType)
static model::ThemeColorType getThemeColorTypeIndex(sal_Int32 nType)
static OUString getThemeColorTypeString(sal_Int32 nType)
std::vector< css::table::BorderLine2 > m_aRightBorderLines
void appendGrabBag(const OUString &aKey, const OUString &aValue)
virtual void lcl_attribute(Id Name, Value &val) override
std::vector< css::table::BorderLine2 > m_aBottomBorderLines
@ table
ThemeColorType
ThemeColorUsage
std::map< sal_Int32, STLPropertyMapEntry > PropertyMap
sal_uInt32 Id