Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

CP_PPobToXML_Application Class Reference

List of all members.

Public Member Functions

Constructor / Destructor
 CP_PPobToXML_Application ()
 Constructor.
virtual ~CP_PPobToXML_Application () throw ()
 Destructor.

Protected Member Functions

Commands
virtual void HandleOpenApplication ()
PPob conversion
virtual void HandlePPobConversion (const CP_S_PPobInfo &inPPobInfo)
UInt32 GetSubviewCount (char *inPPobDataPtr, UInt32 inMarker, UInt32 inPPobLength, UInt32 *outMarker)
UInt32 WriteSubviews (char *inPPobDataPtr, UInt32 inMarker, UInt32 inPPobLength, CPLAT::CP_XMLWriter *inXMLWriter, CPLAT::CP_XMLWriter_Element *inParentElement, CP_PPobClassToCPXML *inPPobClassToXML)

Protected Attributes

CPLAT::CP_FileSystemSpec fDestinationDirectory
CPLAT::CP_Window * fAskUserPPobResourceWindow
CPLAT::CP_FileSystemSpec fPPobResourceFileSpec
CPLAT::CP_Window * fAskUserCustomTypeWindow
CPLAT::CP_DataSource_Strings * fDataSourceStrings
CPLAT::CP_Strings_Array fPPobNames
CP_PPobItem_Array fPPobItems

Private Types

typedef CPLAT::CP_Application<
CPLAT::CP_DocumentPolicy_None,
CPLAT::CP_PrintPolicy_None,
CPLAT::CP_UndoPolicy_None > 
inherited

Private Member Functions

void HandleConversion (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
void HandleCancel (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
bool GetCPLATClassID (UInt32 inPPobClassID, UInt32 &inOutClassID)
File Dialogs
void AskUserForLocations ()
Destination Directory
void AskForDestinationDirectory (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
void HandleGetOutputDirectory (CPLAT::CP_FileSystemDialogs_Base *inSendingDialog, const CPLAT::CP_FileSystemSpec &inSelection, bool inOverwrite)
PPob Source File
void HandleGetPPobSourceFile (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
void HandleGetPPobFile (CPLAT::CP_FileSystemDialogs_Base *inSendingDialog, const CPLAT::CP_FileSystemSpec &inSelection, bool inOverwrite)
XML Output
void CreateXMLWriter (const CPLAT::CP_FileSystemSpec &inFileSpec, CPLAT::CP_XMLWriter_Element **inOutRootElement, CPLAT::CP_XMLWriter_Element **inOutParentElement)

Member Typedef Documentation

typedef CPLAT::CP_Application<CPLAT::CP_DocumentPolicy_None, CPLAT::CP_PrintPolicy_None, CPLAT::CP_UndoPolicy_None> CP_PPobToXML_Application::inherited [private]
 


Constructor & Destructor Documentation

CP_PPobToXML_Application::CP_PPobToXML_Application  ) 
 

Constructor.

CP_PPobToXML_Application::~CP_PPobToXML_Application  )  throw () [virtual]
 

Destructor.


Member Function Documentation

void CP_PPobToXML_Application::HandleOpenApplication  )  [protected, virtual]
 

void CP_PPobToXML_Application::HandlePPobConversion const CP_S_PPobInfo inPPobInfo  )  [protected, virtual]
 

UInt32 CP_PPobToXML_Application::GetSubviewCount char *  inPPobDataPtr,
UInt32  inMarker,
UInt32  inPPobLength,
UInt32 *  outMarker
[protected]
 

UInt32 CP_PPobToXML_Application::WriteSubviews char *  inPPobDataPtr,
UInt32  inMarker,
UInt32  inPPobLength,
CPLAT::CP_XMLWriter inXMLWriter,
CPLAT::CP_XMLWriter_Element inParentElement,
CP_PPobClassToCPXML inPPobClassToXML
[protected]
 

void CP_PPobToXML_Application::AskUserForLocations  )  [private]
 

Main user interaction portion of tool to create the main window allowing the user to select the source Nib, and corresponding output directory.

Exceptions:
none 
Returns:
void

void CP_PPobToXML_Application::AskForDestinationDirectory CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Ask the user for the output directory, where the files will be written to.

Parameters:
inOutStatus Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_PPobToXML_Application::HandleGetOutputDirectory CPLAT::CP_FileSystemDialogs_Base *  inSendingDialog,
const CPLAT::CP_FileSystemSpec &  inSelection,
bool  inOverwrite
[private]
 

Called when the user selects a directory from the get directory dialog to select the output directory.

Parameters:
inSendingDialog Not used.
inSelection The selected directory.
inOverwrite Not used.
Exceptions:
none 
Returns:
void

void CP_PPobToXML_Application::HandleGetPPobSourceFile CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

void CP_PPobToXML_Application::HandleGetPPobFile CPLAT::CP_FileSystemDialogs_Base *  inSendingDialog,
const CPLAT::CP_FileSystemSpec &  inSelection,
bool  inOverwrite
[private]
 

void CP_PPobToXML_Application::CreateXMLWriter const CPLAT::CP_FileSystemSpec &  inFileSpec,
CPLAT::CP_XMLWriter_Element **  inOutRootElement,
CPLAT::CP_XMLWriter_Element **  inOutParentElement
[private]
 

void CP_PPobToXML_Application::HandleConversion CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Routine to handle conversion of the nib file once the user has selected the nib and output directory, and selected convert from the main window.

Parameters:
inOutStatus Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_PPobToXML_Application::HandleCancel CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Called when the user selects cancel from the main window, this will quit the application.

Parameters:
inOutStatus Passed to the HandleQuitCommand.
inCommandNo Passed to the HandleQuitCommand.
Exceptions:
none 
Returns:
void

bool CP_PPobToXML_Application::GetCPLATClassID UInt32  inPPobClassID,
UInt32 &  inOutClassID
[private]
 


Member Data Documentation

CPLAT::CP_FileSystemSpec CP_PPobToXML_Application::fDestinationDirectory [protected]
 

CPLAT::CP_Window* CP_PPobToXML_Application::fAskUserPPobResourceWindow [protected]
 

CPLAT::CP_FileSystemSpec CP_PPobToXML_Application::fPPobResourceFileSpec [protected]
 

CPLAT::CP_Window* CP_PPobToXML_Application::fAskUserCustomTypeWindow [protected]
 

CPLAT::CP_DataSource_Strings* CP_PPobToXML_Application::fDataSourceStrings [protected]
 

CPLAT::CP_Strings_Array CP_PPobToXML_Application::fPPobNames [protected]
 

CP_PPobItem_Array CP_PPobToXML_Application::fPPobItems [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:30:36 2005 for CPLAT_MacOS by  doxygen 1.4.0