Objective Grid : PART II Programmer’s Guide : Chapter 26 Excel Data Exchange Support : Shared and Unshared Data
Shared and Unshared Data
 
Shared Objects
One important point to remember is that when working with Excel workbooks in Objective Grid, the following objects will be shared.
 
// Property-Object
CGXProperties* m_pProperties;
// Styles Map
CGXStylesMap* m_pStylesMap;
// Pointer to an optional PrintDevice-Object
CGXPrintDevice* m_pPD;
Unshared Objective Grid Data
The following will be unique to each sheet grid:
 
// pointer to an optional Data-Object
CGXData* m_pData;
This structure mirrors Objective Grid global and local data with respect to each worksheet. The stylesmap is global while the data itself is local. Incidentally, the current implementation does not allow the first tab to be deleted since it has ownership of the shared data.