Hi,
This is regarding i47233. I am trying to move the ordinal suffix part to i18npool.
I created some skeleton code in i18npool and offapi. The problem is that i am not able
to call the function from sc. Am I missing something here?
I was not able to include the file OrdinalSuffix.hpp/hxx ( i don't know how to create hpp file)
This is what i used (in table4.cxx),
#include <com/sun/star/i18n/OrdinalSuffix.hpp>
files:
XOrdinalSuffix.idl (offapi):
------------------
#ifndef __com_sun_star_i18n_Ordinal_Suffix_idl__
#define __com_sun_star_i18n_Ordinal_Suffix_idl__
#include <com/sun/star/lang/Locale.idl>
#include <rtl/string.hxx>
//============================================================================
module com { module sun { module star { module i18n {
//============================================================================
published interface XOrdinalSuffix : com::sun::star::uno::XInterface
{
//------------------------------------------------------------------------
rtl::OUString getOrdinalSuffix([in] rtl::OUString aValue, [in] long nDigits);
};
//============================================================================
}; }; }; };
//============================================================================
#endif
added in build.lst (i18npool)
----------------------------
inp
i18npool\source\search
nmake - all inp_search inp_utypes NULL
+inp
i18npool\source\ordinalsuffix
nmake - all inp_ordinalsuffix inp_utypes NULL
inp
i18npool\util
nmake - all inp_util inp_brkit inp_dict
inp_chclass inp_translit inp_cal i
ordinalsuffix.cxx (i18npool/source/ordinalsuffix)
-------------------------------------------------
#include "ordinalsuffix.hxx"
using namespace ::rtl;
OUString SAL_CALL
OrdinalSuffix::getOrdinalSuffix(OUString aValue, long nDigits)
{
printf("\n Here \n");
return OUString::createFromAscii("st");
}
ordinalsuffix.hxx (i18npool/inc)
--------------------------------
#include <cppuhelper/implbase2.hxx> // helper for implementations
#include <com/sun/star/lang/XServiceInfo.hpp>
using namespace ::rtl;
class OrdinalSuffix
{
public:
OUString SAL_CALL getOrdinalSuffix(OUString aValue,long nDigits);
};
makefile.mk (i18npool/source/ordinalsuffix)
--------------------------------------------
PRJ=..$/..
PRJNAME=i18npool
TARGET=ordinalsuffix
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : svpre.mk
.INCLUDE : settings.mk
.INCLUDE : sv.mk
# --- Files --------------------------------------------------------
SLOFILES= \
$(SLO)$/ordinalsuffix.obj
#
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
Thanks,
Muthu Subramanian
[muthusuba]
- [l10n-dev] adding (new) code to i18n (i47233). Muthu Subramanian
- Re: [l10n-dev] adding (new) code to i18n (i4723... Eike Rathke
- [l10n-dev] script convert old Helpcontent's... dooteo
- RE: [l10n-dev] adding (new) code to i18n (i... Muthu Subramanian
- Re: [l10n-dev] adding (new) code to i18... Eike Rathke
- Re: [l10n-dev] adding (new) code to i18... Eike Rathke
- Re: [l10n-dev] script convert old Helpcontent's... Ivo Hinkelmann
- Re: [l10n-dev] script convert old Helpconte... dooteo
- Re: [l10n-dev] script convert old Helpc... G. Roderick Singleton
- Re: [l10n-dev] script convert old Helpconte... Robert Ludvik
- Re: [l10n-dev] script convert old Helpcontent's... Ivo Hinkelmann
