diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-07-01 11:52:45 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-07-01 11:52:45 +0000 |
commit | ed25dd8e409429e0357a39843df1aef709bfb461 (patch) | |
tree | 04e5db3a91c9e2aaba99b1a481bfb93adc4d2ca4 /svx/source/unoedit | |
parent | ba65d707f4d26f8a9762a946029ff7ca776b14ae (diff) |
INTEGRATION: CWS xmlfilter05 (1.28.324); FILE MERGED
2008/06/16 08:46:27 dr 1.28.324.3: RESYNC: (1.29-1.30); FILE MERGED
2008/05/02 11:37:12 hbrinkm 1.28.324.2: RESYNC: (1.28-1.29); FILE MERGED
2008/04/01 13:44:42 os 1.28.324.1: XTextCopy implemented
Diffstat (limited to 'svx/source/unoedit')
-rw-r--r-- | svx/source/unoedit/unofored.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/svx/source/unoedit/unofored.cxx b/svx/source/unoedit/unofored.cxx index d01b546e578d..685e5973b39f 100644 --- a/svx/source/unoedit/unofored.cxx +++ b/svx/source/unoedit/unofored.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unofored.cxx,v $ - * $Revision: 1.30 $ + * $Revision: 1.31 $ * * This file is part of OpenOffice.org. * @@ -127,6 +127,11 @@ void SvxEditEngineForwarder::SetParaAttribs( USHORT nPara, const SfxItemSet& rSe rEditEngine.SetParaAttribs( nPara, rSet ); } +void SvxEditEngineForwarder::RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich ) +{ + rEditEngine.RemoveAttribs( rSelection, bRemoveParaAttribs, nWhich ); +} + SfxItemPool* SvxEditEngineForwarder::GetPool() const { return rEditEngine.GetEmptyItemSet().GetPool(); @@ -526,4 +531,14 @@ xub_StrLen SvxEditEngineForwarder::AppendTextPortion( USHORT nPara, const String return nLen; } +void SvxEditEngineForwarder::CopyText(const SvxTextForwarder& rSource) +{ + const SvxEditEngineForwarder* pSourceForwarder = dynamic_cast< const SvxEditEngineForwarder* >( &rSource ); + if( !pSourceForwarder ) + return; + EditTextObject* pNewTextObject = pSourceForwarder->rEditEngine.CreateTextObject(); + rEditEngine.SetText( *pNewTextObject ); + delete pNewTextObject; +} + //------------------------------------------------------------------------ |