FieldArgumentBuilder.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
13
#include <Aspose.Words.Cpp/Fields/IFieldBuildingBlock.h>
14
#include <Aspose.Words.Cpp/aspose_words_api_defs.h>
15
16
namespace
System
{
namespace
Collections {
namespace
Generic {
template
<
typename
>
class
List
; } } }
17
namespace
Aspose
{
namespace
Words
{
class
Inline
; } }
18
namespace
Aspose
{
namespace
Words
{
namespace
Fields {
class
FieldBuilder; } } }
19
namespace
Aspose
{
namespace
Words
{
class
DocumentBuilder; } }
20
21
namespace
Aspose
{
22
23
namespace
Words
{
24
25
namespace
Fields {
26
108
class
ASPOSE_WORDS_SHARED_CLASS
FieldArgumentBuilder
:
public
Aspose::Words::Fields::IFieldBuildingBlock
109
{
110
typedef
FieldArgumentBuilder
ThisType
;
111
typedef
Aspose::Words::Fields::IFieldBuildingBlock BaseType;
112
113
typedef ::System::BaseTypesInfo<BaseType>
ThisTypeBaseTypesInfo
;
114
ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
115
116
public
:
117
119
ASPOSE_WORDS_SHARED_API
FieldArgumentBuilder
();
120
202
ASPOSE_WORDS_SHARED_API
System::SharedPtr<Aspose::Words::Fields::FieldArgumentBuilder>
AddText
(
System::String
text);
203
285
ASPOSE_WORDS_SHARED_API
System::SharedPtr<Aspose::Words::Fields::FieldArgumentBuilder>
AddNode
(
System::SharedPtr<Aspose::Words::Inline>
node);
286
368
ASPOSE_WORDS_SHARED_API
System::SharedPtr<Aspose::Words::Fields::FieldArgumentBuilder>
AddField
(
System::SharedPtr<Aspose::Words::Fields::FieldBuilder>
fieldBuilder);
369
ASPOSE_WORDS_SHARED_API
void
BuildBlock
(
System::SharedPtr<Aspose::Words::DocumentBuilder>
documentBuilder)
override
;
370
371
protected
:
372
373
virtual
ASPOSE_WORDS_SHARED_API ~
FieldArgumentBuilder
();
374
375
private
:
376
377
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Words::Fields::IFieldBuildingBlock>
>> mBuildingBlocks;
378
379
};
380
381
}
382
}
383
}