LibreOffice Module sw (master) 1
unoparaframeenum.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#ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
22
23#include <deque>
24
25#include <calbck.hxx>
26#include <unobaseclass.hxx>
27
28
29class SwNode;
30class SwNodeIndex;
31class SwPaM;
32class SwFrameFormat;
33
34namespace sw
35{
36 struct FrameClient final : public SwClient
37 {
38 FrameClient(sw::BroadcastingModify* pModify) : SwClient(pModify) {};
39 };
40}
42{
43 sal_Int32 nIndex;
44 sal_uInt32 nOrder;
45 std::unique_ptr<sw::FrameClient> pFrameClient;
46
47 FrameClientSortListEntry (sal_Int32 const i_nIndex,
48 sal_uInt32 const i_nOrder, std::unique_ptr<sw::FrameClient> i_pClient)
49 : nIndex(i_nIndex), nOrder(i_nOrder), pFrameClient(std::move(i_pClient)) { }
50};
51
52typedef std::deque< FrameClientSortListEntry >
54
55// #i28701# - adjust 4th parameter
56void CollectFrameAtNode( const SwNode& rNd,
57 FrameClientSortList_t& rFrames,
58 const bool bAtCharAnchoredObjs );
59
61{
65};
66
69{
70 static rtl::Reference<SwXParaFrameEnumeration> Create(const SwPaM& rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat* const pFormat = nullptr);
71};
72
73#endif // INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
74
75/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Style of a layout element.
Definition: frmfmt.hxx:72
Marks a node in the document model.
Definition: ndindex.hxx:31
Base class of the Writer document model elements.
Definition: node.hxx:98
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:188
Dialog to specify the properties of date form field.
std::unique_ptr< sw::FrameClient > pFrameClient
FrameClientSortListEntry(sal_Int32 const i_nIndex, sal_uInt32 const i_nOrder, std::unique_ptr< sw::FrameClient > i_pClient)
static rtl::Reference< SwXParaFrameEnumeration > Create(const SwPaM &rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat *const pFormat=nullptr)
Definition: unoobj2.cxx:1716
FrameClient(sw::BroadcastingModify *pModify)
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XEnumeration > SwSimpleEnumeration_Base
std::deque< FrameClientSortListEntry > FrameClientSortList_t
void CollectFrameAtNode(const SwNode &rNd, FrameClientSortList_t &rFrames, const bool bAtCharAnchoredObjs)
Definition: unoobj2.cxx:137
ParaFrameMode
@ PARAFRAME_PORTION_TEXTRANGE
@ PARAFRAME_PORTION_CHAR
@ PARAFRAME_PORTION_PARAGRAPH