00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _UNOGLOBAL_HXX_
00030 #define _UNOGLOBAL_HXX_
00031
00032 #include <sal/config.h>
00033 #include <cppuhelper/implementationentry.hxx>
00034 #include <vector>
00035 #include <string>
00036
00037 namespace scsolver {
00038
00039 void printOUStr( const rtl::OUString & );
00040 #define ascii_i18n ascii
00041 const ::rtl::OUString ascii(const sal_Char* text);
00042 const ::com::sun::star::uno::Any asciiAny(const sal_Char* text);
00043
00044 void split( const rtl::OUString&, const rtl::OUString&, std::vector<rtl::OUString>& );
00045
00046
00047 struct Global
00048 {
00049 static const rtl::OUString STRING_SEPARATOR;
00050 static const rtl::OUString MODEL_METADATA_NAME;
00051 };
00052
00053
00060 class RuntimeError : public ::std::exception
00061 {
00062 public:
00063 RuntimeError( const rtl::OUString& umsg );
00064 ~RuntimeError() throw();
00065
00066 virtual const char* what() const throw();
00067 const rtl::OUString getMessage() const throw();
00068
00069 private:
00070 rtl::OUString m_sUniMsg;
00071 };
00072
00073
00074 }
00075
00076 #endif //_UNOGLOBAL_HXX_