1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_TDEFTABLEHANDLER_HXX
20 #define INCLUDED_TDEFTABLEHANDLER_HXX
22 #include <WriterFilterDllApi.hxx>
23 #include <resourcemodel/LoggedResources.hxx>
24 #include <boost/shared_ptr.hpp>
26 namespace com
{ namespace sun
{ namespace star
{namespace table
{
30 namespace writerfilter
{
34 class TablePropertyMap
;
35 class WRITERFILTER_DLLPRIVATE TDefTableHandler
: public LoggedProperties
40 ::std::vector
<sal_Int32
> m_aCellBorderPositions
;
41 ::std::vector
<sal_Int32
> m_aCellVertAlign
;
43 ::std::vector
< ::com::sun::star::table::BorderLine2
> m_aLeftBorderLines
;
44 ::std::vector
< ::com::sun::star::table::BorderLine2
> m_aRightBorderLines
;
45 ::std::vector
< ::com::sun::star::table::BorderLine2
> m_aTopBorderLines
;
46 ::std::vector
< ::com::sun::star::table::BorderLine2
> m_aBottomBorderLines
;
47 ::std::vector
< ::com::sun::star::table::BorderLine2
> m_aInsideHBorderLines
;
48 ::std::vector
< ::com::sun::star::table::BorderLine2
> m_aInsideVBorderLines
;
49 ::std::vector
< ::com::sun::star::table::BorderLine2
> m_aTl2brBorderLines
;
50 ::std::vector
< ::com::sun::star::table::BorderLine2
> m_aTr2blBorderLines
;
52 //values of the current border
53 sal_Int32 m_nLineWidth
;
54 sal_Int32 m_nLineType
;
55 sal_Int32 m_nLineColor
;
56 sal_Int32 m_nLineDistance
;
60 void localResolve(Id Name
, writerfilter::Reference
<Properties
>::Pointer_t pProperties
);
63 virtual void lcl_attribute(Id Name
, Value
& val
);
64 virtual void lcl_sprm(Sprm
& sprm
);
67 TDefTableHandler( bool bOOXML
);
68 virtual ~TDefTableHandler();
70 size_t getCellCount() const;
71 void fillCellProperties( size_t nCell
, ::boost::shared_ptr
< TablePropertyMap
> pCellProperties
) const;
72 ::boost::shared_ptr
<PropertyMap
> getRowProperties() const;
73 sal_Int32
getTableWidth() const;
75 typedef boost::shared_ptr
< TDefTableHandler
> TDefTableHandlerPtr
;
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */