diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-25 01:11:16 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-25 11:31:14 +0200 |
commit | a352018c76028b332ccc50be6ee12c16f75aac25 (patch) | |
tree | 77e5d5d4855bdc238bb3844c35f3bbf85bbd1adb /svx/source/tbxctrls/fontworkgallery.cxx | |
parent | ByteString->rtl::OString (diff) | |
download | core-a352018c76028b332ccc50be6ee12c16f75aac25.tar.gz core-a352018c76028b332ccc50be6ee12c16f75aac25.zip |
unusedcode: svx::, svxform::
Diffstat (limited to 'svx/source/tbxctrls/fontworkgallery.cxx')
-rw-r--r-- | svx/source/tbxctrls/fontworkgallery.cxx | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index bd3cd0e30c6b..448ef1be8278 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -192,39 +192,6 @@ void FontWorkGalleryDialog::fillFavorites( sal_uInt16 nThemeId, std::vector< Bit } } -void FontWorkGalleryDialog::changeText( SdrTextObj* pObj ) -{ - if( pObj ) - { - SdrOutliner& rOutl = mpModel->GetDrawOutliner(pObj); - - sal_uInt16 nOutlMode = rOutl.GetMode(); - Size aPaperSize = rOutl.GetPaperSize(); - sal_Bool bUpdateMode = rOutl.GetUpdateMode(); - rOutl.SetUpdateMode(sal_False); - rOutl.SetParaAttribs( 0, rOutl.GetEmptyItemSet() ); - - // #95114# Always set the object's StyleSheet at the Outliner to - // use the current objects StyleSheet. Thus it's the same as in - // SetText(...). - // #95114# Moved this implementation from where SetObjText(...) was called - // to inside this method to work even when outliner is fetched here. - rOutl.SetStyleSheet(0, pObj->GetStyleSheet()); - - rOutl.SetPaperSize( pObj->GetLogicRect().GetSize() ); - - rOutl.SetText( maStrClickToAddText, rOutl.GetParagraph( 0 ) ); - pObj->SetOutlinerParaObject( rOutl.CreateParaObject() ); - - rOutl.Init( nOutlMode ); - rOutl.SetParaAttribs( 0, rOutl.GetEmptyItemSet() ); - rOutl.SetUpdateMode( bUpdateMode ); - rOutl.SetPaperSize( aPaperSize ); - - rOutl.Clear(); - } -} - void FontWorkGalleryDialog::SetSdrObjectRef( SdrObject** ppSdrObject, SdrModel* pModel ) { mppSdrObject = ppSdrObject; @@ -277,7 +244,6 @@ void FontWorkGalleryDialog::insertSelectedFontwork() else if( pPV ) { mpSdrView->InsertObjectAtView( pNewObject, *pPV ); - // changeText( PTR_CAST( SdrTextObj, pNewObject ) ); } } } |