FieldFileSize.h
1 // Copyright 2001-2022 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 <Aspose.Words.Cpp/Fields/IFieldInfoResultProvider.h>
12 #include <Aspose.Words.Cpp/Fields/IFieldCodeTokenInfoProvider.h>
13 #include <Aspose.Words.Cpp/Fields/Field.h>
14 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
15 
16 namespace Aspose
17 {
18 namespace Words
19 {
20 class Document;
21 namespace Fields
22 {
23 namespace Expressions
24 {
25 class Constant;
26 
27 }
28 
29 enum class FieldSwitchType;
30 class FieldUpdateAction;
31 class IFieldCode;
32 }
33 }
34 }
35 namespace System
36 {
37 class String;
38 }
39 
40 namespace Aspose {
41 
42 namespace Words {
43 
44 namespace Fields {
45 
96 class ASPOSE_WORDS_SHARED_CLASS FieldFileSize : public Aspose::Words::Fields::Field, public Aspose::Words::Fields::IFieldCodeTokenInfoProvider
97 {
98  typedef FieldFileSize ThisType;
100  typedef Aspose::Words::Fields::IFieldCodeTokenInfoProvider BaseType1;
101 
102  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
103  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
104 
105 private:
106 
107 public:
108 
154  ASPOSE_WORDS_SHARED_API bool get_IsInKilobytes();
155 
157  ASPOSE_WORDS_SHARED_API void set_IsInKilobytes(bool value);
158 
204  ASPOSE_WORDS_SHARED_API bool get_IsInMegabytes();
205 
207  ASPOSE_WORDS_SHARED_API void set_IsInMegabytes(bool value);
208 
209 protected:
210 
211  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Fields::FieldUpdateAction> UpdateCore() override;
212 
213  virtual ASPOSE_WORDS_SHARED_API ~FieldFileSize();
214 
215 private:
216 
217  Aspose::Words::Fields::FieldSwitchType GetSwitchType(System::String ) override;
218 
219 };
220 
221 }
222 }
223 }