This might also work:

xPropertySet->setPropertyValue(L"CharFontName", makeAny(OUString((const sal_Unicode *)L"Corbel")));

Or, if the value is not a constant (MFC):

CStringW value;
...
OUString value((const sal_Unicode *)((LPCWSTR)value));
xPropertySet->setPropertyValue(L"CharFontName", Any(value));



jg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to