Kohei Yoshida wrote:
I've been reading a lot of code on the data pilot implementation lately,
mostly for (#i57030#), but also to understand the structure of the
underlying implementation in general.
One thing I noticed is that there are several classes named
ScDPSave[...]. I've been trying to figure out how they are used, but I
wanted to if someone can give me a quick description of the roles of
these classes.
These are the list of relevant classes that I was able to find.
ScDPSaveData
ScDPSaveDimension
ScDPSaveGroupDimension
ScDPSaveGroupItem
ScDPSaveMember
ScDPSaveNumGroupDimension
The classes from dpsave.hxx store the settings (ScDPSource is temporary,
and can be replaced by a different service implementation). ScDPSaveData
is for the whole table, ScDPSaveDimension for a single field, and
ScDPSaveMember for a single item (dimension and member are the terms
from the DataPilotSource API). WriteToSource applies the settings to the
source object.
ScDPDimensionSaveData is for settings that modify the dimensions (that
is, grouping). Grouping is available only for ScDPSource, not for other
sources. These settings are used to create ScDPGroupTableData, which
supplies modified table data (sheet cells or database) to ScDPSource.
Within ScDPDimensionSaveData, ScDPSaveNumGroupDimension has the settings
for a numeric or date grouping, and ScDPSaveGroupDimension is for manual
grouping, where ScDPSaveGroupItem is one group element.
Niklas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]