search/mag_sel search/close
ReplacingArgs.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 <cstdint>
13 
14 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
15 
16 namespace Aspose { namespace Words { namespace Replacing { class FindReplaceLegacy; } } }
17 namespace Aspose { namespace Words { namespace Replacing { class FindReplace; } } }
18 namespace System { namespace Text { namespace RegularExpressions { class Match; } } }
19 namespace Aspose { namespace Words { class Node; } }
20 
21 namespace Aspose {
22 
23 namespace Words {
24 
25 namespace Replacing {
26 
163 class ASPOSE_WORDS_SHARED_CLASS ReplacingArgs : public System::Object
164 {
165  typedef ReplacingArgs ThisType;
166  typedef System::Object BaseType;
167 
168  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
169  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
170 
171  friend class Aspose::Words::Replacing::FindReplaceLegacy;
172  friend class Aspose::Words::Replacing::FindReplace;
173 
174 public:
175 
260 
336  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Node> get_MatchNode() const;
337 
417  ASPOSE_WORDS_SHARED_API int32_t get_MatchOffset() const;
418 
479  ASPOSE_WORDS_SHARED_API System::String get_Replacement() const;
480 
482  ASPOSE_WORDS_SHARED_API void set_Replacement(System::String value);
483 
567  ASPOSE_WORDS_SHARED_API System::String get_GroupName() const;
568 
570  ASPOSE_WORDS_SHARED_API void set_GroupName(System::String value);
571 
655  ASPOSE_WORDS_SHARED_API int32_t get_GroupIndex() const;
656 
658  ASPOSE_WORDS_SHARED_API void set_GroupIndex(int32_t value);
659 
660 protected:
661 
663 
664  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ReplacingArgs, CODEPORTING_ARGS(System::SharedPtr<System::Text::RegularExpressions::Match> match, System::SharedPtr<Aspose::Words::Node> matchNode, int32_t matchOffset, System::String replacement));
665 
666 private:
667 
668  System::String mGroupName;
671  int32_t mMatchOffset;
672  System::String mReplacement;
673  int32_t mGroupIndex;
674 
675 };
676 
677 }
678 }
679 }