LibreOffice Module drawinglayer (master) 1
structuretagprimitive2d.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 <vcl/pdfwriter.hxx>
26
27
29{
43 {
44 private:
47
55 ::std::vector<sal_Int32> m_AnnotIds;
56
57 public:
60 const vcl::PDFWriter::StructElement& rStructureElement,
61 bool bBackground,
62 bool bIsImage,
63 Primitive2DContainer&& aChildren,
64 void const* pAnchorStructureElementKey = nullptr,
65 ::std::vector<sal_Int32> const* pAnnotIds = nullptr);
66
68 const vcl::PDFWriter::StructElement& getStructureElement() const { return maStructureElement; }
69 bool isBackground() const { return mbBackground; }
70 bool isImage() const { return mbIsImage; }
71 bool isTaggedSdrObject() const;
72 void const* GetAnchorStructureElementKey() const { return m_pAnchorStructureElementKey; }
73 ::std::vector<sal_Int32> GetAnnotIds() const { return m_AnnotIds; }
74
76 virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
77
79 virtual sal_uInt32 getPrimitive2DID() const override;
80 };
81} // end of namespace drawinglayer::primitive2d
82
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void const * m_pAnchorStructureElementKey
anchor structure element (Writer)
::std::vector< sal_Int32 > m_AnnotIds
for Annot structure element, the ids of the annotations
const vcl::PDFWriter::StructElement & getStructureElement() const
data read access
vcl::PDFWriter::StructElement maStructureElement
the PDF structure element this grouping represents
#define DRAWINGLAYER_DLLPUBLIC
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)