BackgroundArtifact.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/shared_ptr.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 #include "Aspose.PDF.Cpp/Artifacts/Artifact.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 class ArtifactCollection;
14 class Color;
15 namespace Engine
16 {
17 namespace Data
18 {
19 class IPdfDictionary;
20 } // namespace Data
21 } // namespace Engine
22 class Operator;
23 class OperatorCollection;
24 } // namespace Pdf
25 } // namespace Aspose
26 namespace System
27 {
28 namespace Collections
29 {
30 namespace Generic
31 {
32 template <typename> class List;
33 } // namespace Generic
34 } // namespace Collections
35 namespace IO
36 {
37 class Stream;
38 } // namespace IO
39 } // namespace System
40 
41 namespace Aspose {
42 
43 namespace Pdf {
44 
48 class ASPOSE_PDF_SHARED_CLASS BackgroundArtifact : public Aspose::Pdf::Artifact
49 {
52 
53  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
54  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
55 
57 
58 public:
59 
63  ASPOSE_PDF_SHARED_API System::SharedPtr<Color> get_BackgroundColor() const;
67  ASPOSE_PDF_SHARED_API void set_BackgroundColor(System::SharedPtr<Color> value);
71  ASPOSE_PDF_SHARED_API System::SharedPtr<System::IO::Stream> get_BackgroundImage() const;
75  ASPOSE_PDF_SHARED_API void set_BackgroundImage(System::SharedPtr<System::IO::Stream> value);
76 
80  ASPOSE_PDF_SHARED_API BackgroundArtifact();
81 
82 protected:
83 
85 
87  ASPOSE_PDF_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator>>> GetOperators() override;
88  ASPOSE_PDF_SHARED_API void ModifyContents(System::SharedPtr<OperatorCollection> contents) override;
89  ASPOSE_PDF_SHARED_API System::SharedPtr<Artifact> CreateInstance() override;
90  ASPOSE_PDF_SHARED_API System::SharedPtr<Artifact> Clone() override;
91 
92 private:
93 
94  System::SharedPtr<Color> backgroundColor;
96 
98 
99 };
100 
101 } // namespace Pdf
102 } // namespace Aspose
103 
104 
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ArtifactCollection, CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Page > page))
Class descibes background artifact. This artifact allows to set background of the page...
Definition: BackgroundArtifact.h:48
Definition: Artifact.h:67
Class represents artifact collection.
Definition: ArtifactCollection.h:48
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:29
Definition: AFRelationship.h:4
List forward declaration.
Definition: Artifact.h:74
Class represents PDF Artifact object.
Definition: Artifact.h:90
Whole PDF file will be submitted.