lok: vcl: fix multiple floatwin removal case more robustly.
[LibreOffice.git] / writerfilter / source / dmapper / TDefTableHandler.hxx
blob76b3e60b0e85b1eed27a6fb19726ed52d9320d8d
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 #ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_TDEFTABLEHANDLER_HXX
20 #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_TDEFTABLEHANDLER_HXX
22 #include "LoggedResources.hxx"
23 #include <memory>
24 #include <vector>
25 namespace com{ namespace sun{ namespace star{
26 namespace table {
27 struct BorderLine2;
29 namespace beans {
30 struct PropertyValue;
32 }}}
34 namespace writerfilter {
35 namespace 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 OUString m_aInteropGrabBagName;
54 std::vector<css::beans::PropertyValue> m_aInteropGrabBag;
55 void appendGrabBag(const OUString& aKey, const OUString& aValue);
57 void localResolve(Id Name, const writerfilter::Reference<Properties>::Pointer_t& pProperties);
59 // Properties
60 virtual void lcl_attribute(Id Name, Value & val) override;
61 virtual void lcl_sprm(Sprm & sprm) override;
63 public:
64 TDefTableHandler();
65 virtual ~TDefTableHandler() override;
67 void fillCellProperties( const ::tools::SvRef< TablePropertyMap >& pCellProperties) const;
68 void enableInteropGrabBag(const OUString& aName);
69 css::beans::PropertyValue getInteropGrabBag(const OUString& aName = OUString());
70 static OUString getBorderTypeString(sal_Int32 nType);
71 static OUString getThemeColorTypeString(sal_Int32 nType);
75 #endif
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */