InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TaskProgressBar Class Reference

#include <ProgressBar.h>

Inheritance diagram for TaskProgressBar:
BaseProgressBarCProgressBar

Public Member Functions

 TaskProgressBar (const PMString &title, int32 numTasks, bool8 showImmediate=kFalse, bool8 showCancel=kTrue, IProgressBarControlData *customProgress=nil, bool32 useTwoBars=kFalse)
 
void DoTask (const PMString &displayText="", int32 advanceNtasks=1)
 
void SetTaskStatus (const PMString &displayText="")
 
- Public Member Functions inherited from BaseProgressBar
bool16 WasCancelled (bool8 setGlobalErrorState=kTrue)
 
void Abort ()
 
void DisableChildProgressBars (bool16 disable)
 
bool16 WasRegisterSuccessful ()
 
void SetPosition (int32 newPosition)
 

Additional Inherited Members

- Protected Member Functions inherited from BaseProgressBar
 BaseProgressBar (int32 nType, const PMString &progressDialogTitle, int32 taskStart, int32 taskEnd, bool8 showImmediate, bool8 showCancel, IProgressBarControlData *customProgress, bool32 useTwoBars)
 
- Protected Attributes inherited from BaseProgressBar
IProgressBarManagerfProgressMgr
 
int32 fnBarID
 

Detailed Description

Task Progress bar (one that manages a series of smaller tasks). Intended to be used as a stack based object, the lifetime of the progress bar corresponding to the scope of the object.

Constructor & Destructor Documentation

TaskProgressBar::TaskProgressBar (const PMStringtitle,
int32 numTasks,
bool8 showImmediate = kFalse,
bool8 showCancel = kTrue,
IProgressBarControlDatacustomProgress = nil,
bool32 useTwoBars = kFalse 
)

Constructor

Parameters
titleIN dialog title
numTasksIN number of tasks managed by this progress bar
showImmediateIN show the progress bar dialog immediately
showCancelIN make the cancel button visible
customProgressIN custom progress bar control data
useTwoBarsIN one bar or two (for subtasks)

Member Function Documentation

void TaskProgressBar::DoTask (const PMStringdisplayText = "",
int32 advanceNtasks = 1 
)

Call this before processing a task. Calling this will move the progress bar for any previously called tasks

void TaskProgressBar::SetTaskStatus (const PMStringdisplayText = "")

set line of status text