#include <CellDataHelper.h>
|
static int | SplitCellData (Int32 nParam, CComVariant *pParam, std::vector< double > &orValues, std::vector< EnumCellFormatDataTypes > &orTypes, std::vector< DSS_ID > &orFormatIDs) |
|
static int | CreateVariantFromCellData (double pValue, EnumCellFormatDataTypes pType, const GUID &pFormatID, CComVariant *oResult) |
|
static EnumCellFormatDataTypes | CalculateCellDataType (Int32 nParam, EnumCellFormatDataTypes *pParam) |
|
static DSS_ID | CalculateCellDataFormatID (Int32 nParam, DSS_ID *pParam) |
|
static DSS_ID | GetDefaultFormatID () |
|
static DSS_ID | GetMixFormatID () |
|
static int | SplitCellData (Int32 nParam, CComVariant *pParam, std::vector< double > &orValues, std::vector< EnumCellFormatDataTypes > &orTypes, std::vector< DSS_ID > &orFormatIDs) |
|
static int | CreateVariantFromCellData (double pValue, EnumCellFormatDataTypes pType, const GUID &pFormatID, CComVariant *oResult) |
|
static EnumCellFormatDataTypes | CalculateCellDataType (Int32 nParam, EnumCellFormatDataTypes *pParam) |
|
static DSS_ID | CalculateCellDataFormatID (Int32 nParam, DSS_ID *pParam) |
|
static DSS_ID | GetDefaultFormatID () |
|
static DSS_ID | GetMixFormatID () |
|
CellDataHelper class.
CellDataHelper is a helper class providing methods to deal with cell formatting data.
◆ CalculateCellDataFormatID() [1/2]
static DSS_ID CellDataHelper::CalculateCellDataFormatID |
( |
Int32 |
nParam, |
|
|
DSS_ID * |
pParam |
|
) |
| |
|
static |
Calculates the format ID of the resulting cell format object. This method determines the format ID of the resulting cell format object based on the following rule:
- A op A: A
- A op B: MIXED
- A op const: MIXED
- const op A: MIXED
- Parameters
-
Int32 | the number of input cell format objects |
DSS_ID* | the format IDs of the input cell format objects |
- Returns
- DSS_ID the format ID of the resulting cell format object
◆ CalculateCellDataFormatID() [2/2]
static DSS_ID CellDataHelper::CalculateCellDataFormatID |
( |
Int32 |
nParam, |
|
|
DSS_ID * |
pParam |
|
) |
| |
|
static |
Calculates the format ID of the resulting cell format object. This method determines the format ID of the resulting cell format object based on the following rule:
- A op A: A
- A op B: MIXED
- A op const: MIXED
- const op A: MIXED
- Parameters
-
Int32 | the number of input cell format objects |
DSS_ID* | the format IDs of the input cell format objects |
- Returns
- DSS_ID the format ID of the resulting cell format object
◆ CalculateCellDataType() [1/2]
Calculates the type of the resulting cell format object. This method determines the type of the resulting cell format object based on the following rule:
- A op A: A
- A op B: MIXED
- A op const: MIXED
- const op A: MIXED
- Parameters
-
Int32 | the number of input cell format objects |
EnumCellFormatDataTypes* | the types of the input cell format objects |
- Returns
- EnumCellFormatDataTypes the type of the resulting cell format object
◆ CalculateCellDataType() [2/2]
Calculates the type of the resulting cell format object. This method determines the type of the resulting cell format object based on the following rule:
- A op A: A
- A op B: MIXED
- A op const: MIXED
- const op A: MIXED
- Parameters
-
Int32 | the number of input cell format objects |
EnumCellFormatDataTypes* | the types of the input cell format objects |
- Returns
- EnumCellFormatDataTypes the type of the resulting cell format object
◆ CreateVariantFromCellData() [1/2]
Creates a VARIANT based on the given cell format data components.
- Parameters
-
double | the value of the cell format object |
EnumCellFormatDataTypes | the type (tag) of the cell format object |
GUID& | the DSS_ID of the cell format object |
VARIANT* | the constructed VARIANT object (output) |
- Returns
- HRESULT the return status
◆ CreateVariantFromCellData() [2/2]
Creates a VARIANT based on the given cell format data components.
- Parameters
-
double | the value of the cell format object |
EnumCellFormatDataTypes | the type (tag) of the cell format object |
GUID& | the DSS_ID of the cell format object |
VARIANT* | the constructed VARIANT object (output) |
- Returns
- HRESULT the return status
◆ GetDefaultFormatID() [1/2]
static DSS_ID CellDataHelper::GetDefaultFormatID |
( |
| ) |
|
|
static |
- Returns
- DSS_ID the default format ID
◆ GetDefaultFormatID() [2/2]
static DSS_ID CellDataHelper::GetDefaultFormatID |
( |
| ) |
|
|
static |
- Returns
- DSS_ID the default format ID
◆ GetMixFormatID() [1/2]
static DSS_ID CellDataHelper::GetMixFormatID |
( |
| ) |
|
|
static |
- Returns
- DSS_ID the format ID for mixed cell format calculation result
◆ GetMixFormatID() [2/2]
static DSS_ID CellDataHelper::GetMixFormatID |
( |
| ) |
|
|
static |
- Returns
- DSS_ID the format ID for mixed cell format calculation result
◆ SplitCellData() [1/2]
Splits an array of VARIANT objects into values, types and format IDs (the three components in a cell format object).
- Parameters
-
Int32 | the length of the VARIANT array |
VARIANT* | the VARIANT array |
std::vector<double>& | the value array (output) |
std::vector<EnumCellFormatDataTypes>& | the type array (output) |
std::vector<DSS_ID>& | the format ID array |
- Returns
- HRESULT the return status
◆ SplitCellData() [2/2]
Splits an array of VARIANT objects into values, types and format IDs (the three components in a cell format object).
- Parameters
-
Int32 | the length of the VARIANT array |
VARIANT* | the VARIANT array |
std::vector<double>& | the value array (output) |
std::vector<EnumCellFormatDataTypes>& | the type array (output) |
std::vector<DSS_ID>& | the format ID array |
- Returns
- HRESULT the return status