worksheethelper.cxx (cdf0e10c) worksheethelper.cxx (0dac23a0)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 1653 unchanged lines hidden (view full) ---

1662 OSL_ENSURE( xText.is(), "WorksheetHelper::putString - missing text interface" );
1663 if( xText.is() ) xText->setString( rText );
1664}
1665
1666void WorksheetHelper::putRichString( const CellAddress& rAddress, const RichString& rString, const Font* pFirstPortionFont ) const
1667{
1668 Reference< XText > xText( getCell( rAddress ), UNO_QUERY );
1669 OSL_ENSURE( xText.is(), "WorksheetHelper::putRichString - missing text interface" );
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 1653 unchanged lines hidden (view full) ---

1662 OSL_ENSURE( xText.is(), "WorksheetHelper::putString - missing text interface" );
1663 if( xText.is() ) xText->setString( rText );
1664}
1665
1666void WorksheetHelper::putRichString( const CellAddress& rAddress, const RichString& rString, const Font* pFirstPortionFont ) const
1667{
1668 Reference< XText > xText( getCell( rAddress ), UNO_QUERY );
1669 OSL_ENSURE( xText.is(), "WorksheetHelper::putRichString - missing text interface" );
1670 rString.convert( xText, pFirstPortionFont );
1670 /* Passing false will always append the portions to the XText. This is
1671 essential for special rich formatting attributes at the leading text
1672 portion supported by edit cells only, e.g. font escapement. */
1673 rString.convert( xText, false, pFirstPortionFont );
1671}
1672
1673void WorksheetHelper::putFormulaTokens( const CellAddress& rAddress, const ApiTokenSequence& rTokens ) const
1674{
1675 Reference< XFormulaTokens > xTokens( getCell( rAddress ), UNO_QUERY );
1676 OSL_ENSURE( xTokens.is(), "WorksheetHelper::putFormulaTokens - missing token interface" );
1677 if( xTokens.is() ) xTokens->setTokens( rTokens );
1678}

--- 16 unchanged lines hidden ---
1674}
1675
1676void WorksheetHelper::putFormulaTokens( const CellAddress& rAddress, const ApiTokenSequence& rTokens ) const
1677{
1678 Reference< XFormulaTokens > xTokens( getCell( rAddress ), UNO_QUERY );
1679 OSL_ENSURE( xTokens.is(), "WorksheetHelper::putFormulaTokens - missing token interface" );
1680 if( xTokens.is() ) xTokens->setTokens( rTokens );
1681}

--- 16 unchanged lines hidden ---