Aspose.Tasks for C++
IPageSavingCallback.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="IPageSavingCallback.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object.h>
9 
10 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 namespace Saving
17 {
18 class PageSavingArgs;
19 } // namespace Saving
20 } // namespace Tasks
21 } // namespace Aspose
22 
23 namespace Aspose {
24 
25 namespace Tasks {
26 
27 namespace Saving {
28 
29 /// <summary>
30 /// Represents a callback that is called when each page in multi page document is saved to a separate stream.
31 /// </summary>
32 class ASPOSE_TASKS_SHARED_CLASS IPageSavingCallback : public virtual System::Object
33 {
35  typedef System::Object BaseType;
36 
37  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
38  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
39 
40 public:
41 
42  /// <summary>
43  /// The method to be called when a page is saved to a stream.
44  /// </summary>
45  /// <param name="args">The page saving arguments.</param>
46  virtual void PageSaving(System::SharedPtr<PageSavingArgs> args) = 0;
47  /// <summary>
48  /// Method which will be called when all pages are written.
49  /// </summary>
50  virtual void OnFinish() = 0;
51 
52 };
53 
54 } // namespace Saving
55 } // namespace Tasks
56 } // namespace Aspose
57 
58 
Represents a callback that is called when each page in multi page document is saved to a separate str...
Definition: IPageSavingCallback.h:33
virtual void OnFinish()=0
Method which will be called when all pages are written.
virtual void PageSaving(System::SharedPtr< PageSavingArgs > args)=0
The method to be called when a page is saved to a stream.
Definition: Asn.h:13