summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/grfsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/grfsh.cxx')
-rw-r--r--sw/source/uibase/shells/grfsh.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx
index a334edc3edf7..2fb6a19713a4 100644
--- a/sw/source/uibase/shells/grfsh.cxx
+++ b/sw/source/uibase/shells/grfsh.cxx
@@ -244,6 +244,7 @@ void SwGrfShell::Execute(SfxRequest &rReq)
FN_SET_FRM_NAME,FN_KEEP_ASPECT_RATIO, // [21306
FN_SET_FRM_ALT_NAME,FN_SET_FRM_ALT_NAME, // [21318
SID_REFERER, SID_REFERER,
+ FN_UNO_DESCRIPTION, FN_UNO_DESCRIPTION, // [21320
0);
// create needed items for XPropertyList entries from the DrawModel so that
@@ -267,6 +268,7 @@ void SwGrfShell::Execute(SfxRequest &rReq)
aSet.Put( aFrameSize );
aSet.Put(SfxStringItem(FN_SET_FRM_NAME, rSh.GetFlyName()));
+ aSet.Put(SfxStringItem(FN_UNO_DESCRIPTION, rSh.GetObjDescription()));
if ( nSlot == FN_FORMAT_GRAFIC_DLG )
{
// #i73249#
@@ -455,6 +457,10 @@ void SwGrfShell::Execute(SfxRequest &rReq)
rSh.SetObjTitle( static_cast<const SfxStringItem*>(pItem)->GetValue() );
}
+ if ( SfxItemState::SET == pSet->GetItemState(
+ FN_UNO_DESCRIPTION, true, &pItem ))
+ rSh.SetObjDescription( static_cast<const SfxStringItem*>(pItem)->GetValue() );
+
SfxItemSet aGrfSet( rSh.GetAttrPool(), RES_GRFATR_BEGIN,
RES_GRFATR_END-1 );
aGrfSet.Put( *pSet );