LibreOffice Module writerfilter (master) 1
TablePositionHandler.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#pragma once
10
11#include "LoggedResources.hxx"
12
14{
15struct PropertyValue;
16}
17
19{
22{
23 OUString m_aVertAnchor{ "margin" };
24 OUString m_aYSpec;
25 OUString m_aHorzAnchor{ "text" };
26 OUString m_aXSpec;
27 sal_Int32 m_nY = 0;
28 sal_Int32 m_nX = 0;
29 sal_Int32 m_nLeftFromText = 0;
30 sal_Int32 m_nRightFromText = 0;
31 sal_Int32 m_nTopFromText = 0;
32 sal_Int32 m_nBottomFromText = 0;
33
34 // Properties
35 void lcl_attribute(Id nId, Value& rVal) override;
36 void lcl_sprm(Sprm& sprm) override;
37
38public:
39 sal_Int32 getY() const { return m_nY; }
40 sal_Int32 getX() const { return m_nX; }
41 sal_Int32 getLeftFromText() const { return m_nLeftFromText; }
42 sal_Int32 getRightFromText() const { return m_nRightFromText; }
43 sal_Int32 getTopFromText() const { return m_nTopFromText; }
44 sal_Int32 getBottomFromText() const { return m_nBottomFromText; }
45
46 const OUString& getVertAnchor() const { return m_aVertAnchor; }
47 const OUString& getYSpec() const { return m_aYSpec; }
48 const OUString& getHorzAnchor() const { return m_aHorzAnchor; }
49 const OUString& getXSpec() const { return m_aXSpec; }
50
53
60 css::uno::Sequence<css::beans::PropertyValue> getTablePosition() const;
61
62 bool operator==(const TablePositionHandler& rHandler) const;
63};
64
66} // namespace writerfilter::dmapper
67
68/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void sprm(Sprm &sprm) override
Receives a SPRM.
An SPRM: Section, Paragraph and Run Modifier.
Handler for floating table positioning.
bool operator==(const TablePositionHandler &rHandler) const
css::uno::Sequence< css::beans::PropertyValue > getTablePosition() const
Compute the UNO properties for the frame containing the table based on the received tokens.
void lcl_attribute(Id nId, Value &rVal) override
sal_uInt32 Id