LibreOffice Module drawinglayer (master) 1
texthierarchyprimitive2d.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
20#pragma once
21
23
25#include <rtl/ustring.hxx>
26
27
29{
40 {
41 private:
42 public:
45
47 virtual sal_uInt32 getPrimitive2DID() const override;
48 };
49
55 {
56 private:
57 public:
60
62 virtual sal_uInt32 getPrimitive2DID() const override;
63 };
64
70 {
71 private:
72 // outline level of the encapsulated paragraph data.
73 // -1 means no level, >= 0 is the level
74 sal_Int16 mnOutlineLevel;
75
76 public:
79 Primitive2DContainer&& aChildren,
80 sal_Int16 nOutlineLevel = -1);
81
83 sal_Int16 getOutlineLevel() const { return mnOutlineLevel; }
84
86 virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
87
89 virtual sal_uInt32 getPrimitive2DID() const override;
90 };
91
97 {
98 private:
99 public:
102
104 virtual sal_uInt32 getPrimitive2DID() const override;
105 };
106
109 {
114
117
120 };
121
130 {
131 private:
134
136 std::vector< std::pair< OUString, OUString>> meNameValue;
137
138 public:
141 Primitive2DContainer&& aChildren,
142 const FieldType& rFieldType,
143 const std::vector< std::pair< OUString, OUString>>* pNameValue = nullptr);
144
146 FieldType getType() const { return meType; }
147 OUString getValue(const OUString& rName) const;
148
150 virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
151
153 virtual sal_uInt32 getPrimitive2DID() const override;
154 };
155
172 {
173 private:
176
177 public:
180
182 const Primitive2DContainer& getContent() const { return maContent; }
183
185 virtual sal_uInt32 getPrimitive2DID() const override;
186 };
187} // end of namespace drawinglayer::primitive2d
188
189
190/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const Primitive2DContainer & getContent() const
data read access
std::vector< std::pair< OUString, OUString > > meNameValue
field data as name/value pairs (dependent of field type definition)
#define DRAWINGLAYER_DLLPUBLIC
@ FIELD_TYPE_URL
uses URL as string -> special handling
@ FIELD_TYPE_PAGE
uses "FIELD_SEQ_BEGIN;PageField" -> special handling
css::beans::Optional< css::uno::Any > getValue(std::u16string_view id)
RedlineType meType
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)