Issue 120816

Summary: Method clearContents() clears 'Formatted' contents of the cells used does not work, If constants of com.sun.star.sheet.CellFlags is '512'.
Product: App Dev Reporter: binguo <binbjguo>
Component: apiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description binguo 2012-09-05 05:50:49 UTC
Steps:
1. Input text into Cell B6.
2. Set the Bold of text is ON.
3. Execute the following code sentence:
-------------------------------
       // Get cell range B5:C15 by position - (column, row, column, row)
        XCellRange xCellRange = xSheet.getCellRangeByPosition( 1, 4, 2, 14 );
        XSheetOperation xSheetOp = (XSheetOperation) UnoRuntime.queryInterface(XSheetOperation.class, xCellRange);

       //Delete Text from Cell Range B5:C15
        xSheetOp.clearContents(512);
--------------------------

Defect:
Contents with formatted are not deleted.