Update of /cvsroot/objecthandler/ObjectHandler/ohxl/Conversions
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10559/ohxl/Conversions
Modified Files:
validations.cpp validations.hpp
Log Message:
implement ohDependsOn2() as a possible replacement for ohDependsOn()
Index: validations.hpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Conversions/validations.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** validations.hpp 19 Nov 2006 13:08:27 -0000 1.2
--- validations.hpp 8 Dec 2006 14:46:12 -0000 1.3
***************
*** 26,30 ****
DLL_API void validateRange(const OPER *xRange, const std::string &name);
- DLL_API void validateReference(const XLOPER *xReference, const std::string &name);
DLL_API void stringToChar(char *c, const std::string &s);
--- 26,29 ----
Index: validations.cpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Conversions/validations.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** validations.cpp 19 Nov 2006 16:00:34 -0000 1.2
--- validations.cpp 8 Dec 2006 14:46:12 -0000 1.3
***************
*** 44,57 ****
}
- DLL_API void validateReference(const XLOPER *xReference, const std::string &name) {
- if (xReference->xltype != xltypeMissing
- && xReference->xltype != xltypeRef
- && xReference->xltype != xltypeSRef) {
- std::ostringstream msg;
- msg << "parameter '" << name << "' is not a valid range reference";
- throw Exception(msg.str());
- }
- }
-
DLL_API void stringToChar(char *c, const std::string &value) {
int len = __min(XL_MAX_STR_LEN - 1, value.length());
--- 44,47 ----
|