Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / core / inc / unoparaframeenum.hxx
blob81a653aac57f0f3665a5bc9309841f213606358b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
23 #include <deque>
25 #include <calbck.hxx>
26 #include <unobaseclass.hxx>
29 class SwNode;
30 class SwNodeIndex;
31 class SwPaM;
32 class SwFrameFormat;
34 namespace sw
36 struct FrameClient final : public SwClient
38 FrameClient(sw::BroadcastingModify* pModify) : SwClient(pModify) {};
41 struct FrameClientSortListEntry
43 sal_Int32 nIndex;
44 sal_uInt32 nOrder;
45 std::unique_ptr<sw::FrameClient> pFrameClient;
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)) { }
52 typedef std::deque< FrameClientSortListEntry >
53 FrameClientSortList_t;
55 // #i28701# - adjust 4th parameter
56 void CollectFrameAtNode( const SwNode& rNd,
57 FrameClientSortList_t& rFrames,
58 const bool bAtCharAnchoredObjs );
60 enum ParaFrameMode
62 PARAFRAME_PORTION_PARAGRAPH,
63 PARAFRAME_PORTION_CHAR,
64 PARAFRAME_PORTION_TEXTRANGE,
67 struct SwXParaFrameEnumeration
68 : public SwSimpleEnumeration_Base
70 static rtl::Reference<SwXParaFrameEnumeration> Create(const SwPaM& rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat* const pFormat = nullptr);
73 #endif // INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */