2006-07-14 07:23:39 +00:00
|
|
|
|
/*************************************************************************
|
|
|
|
|
*
|
2008-04-10 11:51:39 +00:00
|
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2006-07-14 07:23:39 +00:00
|
|
|
|
*
|
2008-04-10 11:51:39 +00:00
|
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2006-07-14 07:23:39 +00:00
|
|
|
|
*
|
2008-04-10 11:51:39 +00:00
|
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2006-07-14 07:23:39 +00:00
|
|
|
|
*
|
2008-04-10 11:51:39 +00:00
|
|
|
|
* $RCSfile: types.cxx,v $
|
2008-04-24 13:00:48 +00:00
|
|
|
|
* $Revision: 1.6 $
|
2006-07-14 07:23:39 +00:00
|
|
|
|
*
|
2008-04-10 11:51:39 +00:00
|
|
|
|
* This file is part of OpenOffice.org.
|
2006-07-14 07:23:39 +00:00
|
|
|
|
*
|
2008-04-10 11:51:39 +00:00
|
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
|
* only, as published by the Free Software Foundation.
|
2006-07-14 07:23:39 +00:00
|
|
|
|
*
|
2008-04-10 11:51:39 +00:00
|
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2006-07-14 07:23:39 +00:00
|
|
|
|
*
|
2008-04-10 11:51:39 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
|
* for a copy of the LGPLv3 License.
|
2006-07-14 07:23:39 +00:00
|
|
|
|
*
|
|
|
|
|
************************************************************************/
|
|
|
|
|
|
2006-09-17 06:56:15 +00:00
|
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
|
#include "precompiled_starmath.hxx"
|
|
|
|
|
|
2006-07-14 07:23:39 +00:00
|
|
|
|
|
|
|
|
|
#include <types.hxx>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sal_Unicode ConvertMathPrivateUseAreaToUnicode( sal_Unicode cChar )
|
|
|
|
|
{
|
2009-11-12 15:30:38 +01:00
|
|
|
|
sal_Unicode cRes = cChar;
|
2006-07-14 07:23:39 +00:00
|
|
|
|
if (IsInPrivateUseArea( cChar ))
|
|
|
|
|
{
|
2009-11-12 15:30:38 +01:00
|
|
|
|
DBG_ASSERT( 0, "Error: private use area characters should no longer be in use!" );
|
|
|
|
|
cRes = '<EFBFBD>'; // just some character that should easily be notice as odd in the context
|
2006-07-14 07:23:39 +00:00
|
|
|
|
}
|
|
|
|
|
return cRes;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sal_Unicode ConvertMathToMathML( sal_Unicode cChar )
|
|
|
|
|
{
|
2009-11-12 15:30:38 +01:00
|
|
|
|
sal_Unicode cRes = ConvertMathPrivateUseAreaToUnicode( cChar );
|
2006-07-14 07:23:39 +00:00
|
|
|
|
return cRes;
|
|
|
|
|
}
|
|
|
|
|
|