1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
26 #include <unobaseclass.hxx>
35 struct FrameClient
: public SwClient
37 FrameClient(sw::BroadcastingModify
* pModify
) : SwClient(pModify
) {};
40 struct FrameClientSortListEntry
44 std::shared_ptr
<sw::FrameClient
> pFrameClient
;
46 FrameClientSortListEntry (sal_Int32
const i_nIndex
,
47 sal_uInt32
const i_nOrder
, std::shared_ptr
<sw::FrameClient
> i_pClient
)
48 : nIndex(i_nIndex
), nOrder(i_nOrder
), pFrameClient(std::move(i_pClient
)) { }
51 typedef std::deque
< FrameClientSortListEntry
>
52 FrameClientSortList_t
;
54 typedef std::deque
< std::shared_ptr
<sw::FrameClient
> >
57 // #i28701# - adjust 4th parameter
58 void CollectFrameAtNode( const SwNodeIndex
& rIdx
,
59 FrameClientSortList_t
& rFrames
,
60 const bool bAtCharAnchoredObjs
);
64 PARAFRAME_PORTION_PARAGRAPH
,
65 PARAFRAME_PORTION_CHAR
,
66 PARAFRAME_PORTION_TEXTRANGE
,
69 struct SwXParaFrameEnumeration
70 : public SwSimpleEnumeration_Base
72 static SwXParaFrameEnumeration
* Create(const SwPaM
& rPaM
, const enum ParaFrameMode eParaFrameMode
, SwFrameFormat
* const pFormat
= nullptr);
75 #endif // INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */