Inheritance diagram for CP_IBClassToCPXML:
Public Member Functions | |
Constructor / Destructor | |
CP_IBClassToCPXML () | |
Constructor. | |
virtual | ~CP_IBClassToCPXML () throw () |
Destructor. | |
IBClassToXMLConversion | |
void | RegisterIBClassToXMLConverter (char *inIBClassName, IBClassToXMLConverterCallback inCallback) |
IBClassToXMLConverterCallback | FindXMLConverterFromIBClassName (CP_String &inIBClassName) |
CustomControlToCplat | |
void | RegisterCustomControlToCPLATClassName (UInt32 inCustomControlID, const CP_String &inCPLATClassName) |
CP_String | FindCPLATClassNameFromCustomControlID (UInt32 inCustomControlID) |
Output | |
CP_FileSystemSpec | GetOutputDirectorySpec () |
void | SetOutputDirectorySpec (const CP_FileSystemSpec &inSpec) |
Static Public Member Functions | |
Instance | |
static CP_IBClassToCPXML * | Instance () |
Protected Attributes | |
CP_IBClassToXMLWriter_Map | fIBClasstoXMLArray |
CP_FileSystemSpec | fOutputDirectorySpec |
CP_CustomControlToCPLATClass_Map | fCustomControlIDToCPLATClassName |
Static Protected Attributes | |
static CP_IBClassToCPXML * | fsInstance = NULL |
|
Constructor.
|
|
Destructor.
|
|
Returns the single instance of this class.
|
|
Registers the converter function to be called when a node with the passed in inIBClassName is encountered in the xml file. If you call the function RegisterKnownIBClasses(), then all of the known classes in InterfaceBuilder will be registered for you, so you don't have to call this for each class. There is a convenience macro that gives a simple way to register classes: CP_RegisterIBClassConverter and can be called like:
CP_RegisterIBClassConverter( kCP_IBCarbonButton, IBClassPushButtonToXML ); CP_RegisterIBClassConverter( kCP_IBCarbonBevelButton, IBClassBevelButtonToXML );
|
|
Find the previously registered converter function for the passed in class name.
|
|
Registers a custom control id and its associated CPLAT class name. In Interface Builder we use the custom control to create any controls which Interface Builder does not have built in support for. The custom control id is entered in the Class ID under the attributes pane. There is a convenience macro that gives a simple way to register classes: CP_RegisterCustomControlID and can be called like:
CP_RegisterCustomControlID( kCP_CustomClassID_TV_DataBrowser, kCP_ClassName_DataBrowser ); CP_RegisterCustomControlID( kCP_CustomClassID_Placard, kCP_ClassName_Placard );
|
|
Returns the name of the CPLAT class that was registered with the passed in inCustomControlID.
|
|
|
|
|
|
|
|
Single instance of this class. |
|
Maps a class name in IB to corresponding CPLAT class. This map is filled in through users registering the mapping. |
|
Location to write the generated XML. |