LayoutEnumerator.h
1
// Copyright 2001-2021 Aspose Pty Ltd. All Rights Reserved.
3
//
4
// This file is part of Aspose.Words. The source code in this file
5
// is only intended as a supplement to the documentation, and is provided
6
// "as is", without warranty of any kind, either expressed or implied.
9
#pragma once
10
11
#include <system/string.h>
12
#include <system/enum_helpers.h>
13
14
#include <Aspose.Words.Cpp/Layout/LayoutEntityType.h>
15
#include <Aspose.Words.Cpp/aspose_words_api_defs.h>
16
17
namespace
System
{
namespace
Drawing {
class
RectangleF; } }
18
namespace
Aspose
{
namespace
Words
{
namespace
Layout
{
namespace
Core {
class
Part; } } } }
19
namespace
Aspose
{
namespace
Words
{
class
Document
; } }
20
namespace
System
{
namespace
Collections {
namespace
Generic {
template
<
typename
>
class
List
; } } }
21
namespace
Aspose
{
namespace
Words
{
namespace
Layout
{
namespace
Core {
class
CommentPart; } } } }
22
namespace
Aspose
{
namespace
Words
{
namespace
Layout
{
namespace
Core {
class
DocumentLayout; } } } }
23
namespace
Aspose
{
namespace
Words
{
namespace
Layout
{
namespace
Core {
class
PagePart; } } } }
24
25
namespace
Aspose
{
26
27
namespace
Words
{
28
29
namespace
Layout
{
30
180
class
ASPOSE_WORDS_SHARED_CLASS
LayoutEnumerator
:
public
System::Object
181
{
182
typedef
LayoutEnumerator
ThisType
;
183
typedef
System::Object
BaseType
;
184
185
typedef ::System::BaseTypesInfo<BaseType>
ThisTypeBaseTypesInfo
;
186
ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
187
188
public
:
189
336
ASPOSE_WORDS_SHARED_API
Aspose::Words::Layout::LayoutEntityType
get_Type
();
337
484
ASPOSE_WORDS_SHARED_API
System::Drawing::RectangleF
get_Rectangle
();
485
632
ASPOSE_WORDS_SHARED_API
System::String
get_Kind
();
633
780
ASPOSE_WORDS_SHARED_API
System::String
get_Text
();
781
928
ASPOSE_WORDS_SHARED_API int32_t
get_PageIndex
();
929
987
ASPOSE_WORDS_SHARED_API
System::SharedPtr<System::Object>
get_Current
()
const
;
988
990
ASPOSE_WORDS_SHARED_API
void
set_Current
(
System::SharedPtr<System::Object>
value);
991
1138
ASPOSE_WORDS_SHARED_API
System::SharedPtr<Aspose::Words::Document>
get_Document
()
const
;
1139
1292
ASPOSE_WORDS_SHARED_API
LayoutEnumerator
(
System::SharedPtr<Aspose::Words::Document>
document);
1293
1440
ASPOSE_WORDS_SHARED_API
void
Reset
();
1441
1590
ASPOSE_WORDS_SHARED_API
bool
MoveNext
();
1591
1740
ASPOSE_WORDS_SHARED_API
bool
MoveNextLogical
();
1741
1888
ASPOSE_WORDS_SHARED_API
bool
MovePrevious
();
1889
2038
ASPOSE_WORDS_SHARED_API
bool
MovePreviousLogical
();
2039
2186
ASPOSE_WORDS_SHARED_API
bool
MoveFirstChild
();
2187
2334
ASPOSE_WORDS_SHARED_API
bool
MoveLastChild
();
2335
2482
ASPOSE_WORDS_SHARED_API
bool
MoveParent
();
2483
2632
ASPOSE_WORDS_SHARED_API
bool
MoveParent
(
Aspose::Words::Layout::LayoutEntityType
types);
2633
2634
protected
:
2635
2636
System::SharedPtr<Aspose::Words::Layout::Core::Part>
get_CurrentPart()
const
;
2637
2638
private
:
2639
2640
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Words::Layout::Core::CommentPart>
>> get_Comments();
2641
2642
System::SharedPtr<Aspose::Words::Layout::Core::Part>
mPart;
2643
System::SharedPtr<Aspose::Words::Document>
mDocument;
2644
2645
static
System::String
GetKindString(
System::SharedPtr<Aspose::Words::Layout::Core::Part>
part);
2646
static
System::String
GetMarkerText(
System::SharedPtr<Aspose::Words::Layout::Core::Part>
part,
System::String
prefix,
System::String
start,
System::String
end,
System::String
point);
2647
System::SharedPtr<Aspose::Words::Layout::Core::DocumentLayout>
GetDocumentLayout();
2648
System::SharedPtr<Aspose::Words::Layout::Core::PagePart>
GetPage();
2649
System::SharedPtr<Aspose::Words::Layout::Core::Part>
FindNextSibling();
2650
System::SharedPtr<Aspose::Words::Layout::Core::Part>
FindPreviousSibling();
2651
System::SharedPtr<Aspose::Words::Layout::Core::Part>
FindNextComment();
2652
System::SharedPtr<Aspose::Words::Layout::Core::Part>
FindPreviousComment();
2653
System::SharedPtr<Aspose::Words::Layout::Core::Part>
FindFirstChild();
2654
System::SharedPtr<Aspose::Words::Layout::Core::Part>
FindLastChild();
2655
2656
};
2657
2658
}
2659
}
2660
}