LibreOffice Module sw (master)
1
sw
source
core
inc
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
SwNode
;
30
class
SwNodeIndex
;
31
class
SwPaM
;
32
class
SwFrameFormat
;
33
34
namespace
sw
35
{
36
struct
FrameClient
final :
public
SwClient
37
{
38
FrameClient
(sw::BroadcastingModify* pModify) :
SwClient
(pModify) {};
39
};
40
}
41
struct
FrameClientSortListEntry
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
52
typedef
std::deque< FrameClientSortListEntry >
53
FrameClientSortList_t
;
54
55
// #i28701# - adjust 4th parameter
56
void
CollectFrameAtNode
(
const
SwNode
& rNd,
57
FrameClientSortList_t
& rFrames,
58
const
bool
bAtCharAnchoredObjs );
59
60
enum
ParaFrameMode
61
{
62
PARAFRAME_PORTION_PARAGRAPH
,
63
PARAFRAME_PORTION_CHAR
,
64
PARAFRAME_PORTION_TEXTRANGE
,
65
};
66
67
struct
SwXParaFrameEnumeration
68
:
public
SwSimpleEnumeration_Base
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: */
calbck.hxx
SwClient
Definition:
calbck.hxx:134
SwFrameFormat
Style of a layout element.
Definition:
frmfmt.hxx:72
SwNodeIndex
Marks a node in the document model.
Definition:
ndindex.hxx:31
SwNode
Base class of the Writer document model elements.
Definition:
node.hxx:98
SwPaM
PaM is Point and Mark: a selection of the document model.
Definition:
pam.hxx:188
rtl::Reference
std
sw
Dialog to specify the properties of date form field.
Definition:
AccessibilityCheck.cxx:48
FrameClientSortListEntry
Definition:
unoparaframeenum.hxx:42
FrameClientSortListEntry::pFrameClient
std::unique_ptr< sw::FrameClient > pFrameClient
Definition:
unoparaframeenum.hxx:45
FrameClientSortListEntry::FrameClientSortListEntry
FrameClientSortListEntry(sal_Int32 const i_nIndex, sal_uInt32 const i_nOrder, std::unique_ptr< sw::FrameClient > i_pClient)
Definition:
unoparaframeenum.hxx:47
FrameClientSortListEntry::nIndex
sal_Int32 nIndex
Definition:
unoparaframeenum.hxx:43
FrameClientSortListEntry::nOrder
sal_uInt32 nOrder
Definition:
unoparaframeenum.hxx:44
SwXParaFrameEnumeration
Definition:
unoparaframeenum.hxx:69
SwXParaFrameEnumeration::Create
static rtl::Reference< SwXParaFrameEnumeration > Create(const SwPaM &rPaM, const enum ParaFrameMode eParaFrameMode, SwFrameFormat *const pFormat=nullptr)
Definition:
unoobj2.cxx:1716
sw::FrameClient
Definition:
unoparaframeenum.hxx:37
sw::FrameClient::FrameClient
FrameClient(sw::BroadcastingModify *pModify)
Definition:
unoparaframeenum.hxx:38
unobaseclass.hxx
SwSimpleEnumeration_Base
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XEnumeration > SwSimpleEnumeration_Base
Definition:
unobaseclass.hxx:34
FrameClientSortList_t
std::deque< FrameClientSortListEntry > FrameClientSortList_t
Definition:
unoparaframeenum.hxx:53
CollectFrameAtNode
void CollectFrameAtNode(const SwNode &rNd, FrameClientSortList_t &rFrames, const bool bAtCharAnchoredObjs)
Definition:
unoobj2.cxx:137
ParaFrameMode
ParaFrameMode
Definition:
unoparaframeenum.hxx:61
PARAFRAME_PORTION_TEXTRANGE
@ PARAFRAME_PORTION_TEXTRANGE
Definition:
unoparaframeenum.hxx:64
PARAFRAME_PORTION_CHAR
@ PARAFRAME_PORTION_CHAR
Definition:
unoparaframeenum.hxx:63
PARAFRAME_PORTION_PARAGRAPH
@ PARAFRAME_PORTION_PARAGRAPH
Definition:
unoparaframeenum.hxx:62
Generated on Sun Jul 30 2023 04:28:39 for LibreOffice Module sw (master) by
1.9.3