/*
**********************************************************************
- * Copyright (C) 1998-2004, International Business Machines
+ * Copyright (C) 1998-2011, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*/
struct InsertionRecord;
+#ifndef U_HIDE_INTERNAL_API
/**
* This class encapsulates the callback used by <code>LEInsertionList</code>
* to apply an insertion from the insertion list.
*
* @internal
*/
-class LEInsertionCallback
+class U_LAYOUT_API LEInsertionCallback
{
public:
/**
* @internal
*/
virtual le_bool applyInsertion(le_int32 atPosition, le_int32 count, LEGlyphID newGlyphs[]) = 0;
+
+ /**
+ * The destructor
+ */
+ virtual ~LEInsertionCallback();
};
/**
* @param position the glyph at this position in the array will be
* replaced by the new glyphs.
* @param count the number of new glyphs
+ * @param success set to an error code if the auxillary data cannot be retrieved.
*
* @return the address of an array in which to store the new glyphs. This will
* <em>not</em> be in the glyph array.
*
* @internal
*/
- LEGlyphID *insert(le_int32 position, le_int32 count);
+ LEGlyphID *insert(le_int32 position, le_int32 count, LEErrorCode &success);
/**
* Return the number of new glyphs that have been inserted.
*/
le_bool append;
};
+#endif /* U_HIDE_INTERNAL_API */
U_NAMESPACE_END
#endif