android: Update app-specific/MIME type icons
[LibreOffice.git] / writerfilter / source / dmapper / TDefTableHandler.hxx
blob7b02d4ae0907d4d59f705dad9c430dcb6ed04cd4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #pragma once
21 #include "LoggedResources.hxx"
22 #include <vector>
23 #include <docmodel/theme/ThemeColorType.hxx>
24 #include <docmodel/color/ComplexColor.hxx>
26 namespace com::sun::star{
27 namespace table {
28 struct BorderLine2;
30 namespace beans {
31 struct PropertyValue;
35 namespace writerfilter::dmapper
37 class PropertyMap;
38 class TablePropertyMap;
39 class TDefTableHandler : public LoggedProperties
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;
48 //values of the current border
49 sal_Int32 m_nLineWidth;
50 sal_Int32 m_nLineType;
51 sal_Int32 m_nLineColor;
53 model::ThemeColorType m_eThemeColorType = model::ThemeColorType::Unknown;
54 sal_Int32 m_nThemeShade = 0;
55 sal_Int32 m_nThemeTint = 0;
57 OUString m_aInteropGrabBagName;
58 std::vector<css::beans::PropertyValue> m_aInteropGrabBag;
59 void appendGrabBag(const OUString& aKey, const OUString& aValue);
61 void localResolve(Id Name, const writerfilter::Reference<Properties>::Pointer_t& pProperties);
63 // Properties
64 virtual void lcl_attribute(Id Name, Value & val) override;
65 virtual void lcl_sprm(Sprm & sprm) override;
67 public:
68 TDefTableHandler();
69 virtual ~TDefTableHandler() override;
71 void fillCellProperties( const ::tools::SvRef< TablePropertyMap >& pCellProperties) const;
72 void enableInteropGrabBag(const OUString& aName);
73 css::beans::PropertyValue getInteropGrabBag(const OUString& aName = OUString());
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);
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */