diff options
author | Andre Fischer <af@apache.org> | 2012-06-21 10:29:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-23 16:48:07 +0100 |
commit | aab697c7b64e79dd9102395ae1a8fe9025995a73 (patch) | |
tree | d8aa1aad0bbbab1946c55a1f37d576e7c4c6b991 /filter | |
parent | aac817bca6951a42bfe6c8fbfd86163190f96997 (diff) |
Resolves: #i119903# Alternative text for form control t import/export
Patch by: Jianyuan Li
review by: Andre Fischer
(cherry picked from commit 0ecc381c85bd4192add692d26fc60ba8e6341fd9)
Conflicts:
filter/source/msfilter/msdffimp.cxx
sc/source/filter/excel/xiescher.cxx
sc/source/filter/inc/xiescher.hxx
svx/inc/svx/msdffdef.hxx
Change-Id: Iac7282e50fd86244381ca174ba3f906aab89c7d9
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 25942ee047d6..637e2ab3676f 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -4705,6 +4705,13 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r pRet->SetPrintable( ( nGroupProperties & 1 ) != 0 ); } + //Import alt text as description + if ( pRet && SeekToContent( DFF_Prop_wzDescription, rSt ) ) + { + OUString aAltText = MSDFFReadZString(rSt, GetPropertyValue(DFF_Prop_wzDescription), true); + pRet->SetDescription( aAltText ); + } + return pRet; } |