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 
29 class SwNodeIndex;
30 class SwPaM;
31 class SwFrameFormat;
32 
33 namespace sw
34 {
35  struct FrameClient : public SwClient
36  {
37  FrameClient(SwModify* pModify) : SwClient(pModify) {};
38  };
39 }
41 {
42  sal_Int32 nIndex;
43  sal_uInt32 nOrder;
44  std::shared_ptr<sw::FrameClient> pFrameClient;
45 
46  FrameClientSortListEntry (sal_Int32 const i_nIndex,
47  sal_uInt32 const i_nOrder, sw::FrameClient* const i_pClient)
48  : nIndex(i_nIndex), nOrder(i_nOrder), pFrameClient(i_pClient) { }
49 };
50 
51 typedef std::deque< FrameClientSortListEntry >
53 
54 typedef std::deque< std::shared_ptr<sw::FrameClient> >
56 
57 // #i28701# - adjust 4th parameter
58 void CollectFrameAtNode( const SwNodeIndex& rIdx,
59  FrameClientSortList_t& rFrames,
60  const bool bAtCharAnchoredObjs );
61 
63 {
67 };
68 
71 {
72  static SwXParaFrameEnumeration* Create(const SwPaM& rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat* const pFormat = nullptr);
73 };
74 
75 #endif // INCLUDED_SW_SOURCE_CORE_INC_UNOPARAFRAMEENUM_HXX
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FrameClientSortListEntry(sal_Int32 const i_nIndex, sal_uInt32 const i_nOrder, sw::FrameClient *const i_pClient)
std::deque< FrameClientSortListEntry > FrameClientSortList_t
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:40
static SwXParaFrameEnumeration * Create(const SwPaM &rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat *const pFormat=nullptr)
Definition: unoobj2.cxx:1610
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:136
Style of a layout element.
Definition: frmfmt.hxx:57
void CollectFrameAtNode(const SwNodeIndex &rIdx, FrameClientSortList_t &rFrames, const bool bAtCharAnchoredObjs)
Definition: unoobj2.cxx:179
std::deque< std::shared_ptr< sw::FrameClient > > FrameClientList_t
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XEnumeration > SwSimpleEnumeration_Base
Marks a node in the document model.
Definition: ndindex.hxx:31
FrameClient(SwModify *pModify)
ParaFrameMode
std::shared_ptr< sw::FrameClient > pFrameClient