Lines 109-114
Link Here
|
109 |
|
109 |
|
110 |
using ::rtl::OUString; |
110 |
using ::rtl::OUString; |
111 |
using ::rtl::OUStringBuffer; |
111 |
using ::rtl::OUStringBuffer; |
|
|
112 |
using ::com::sun::star::uno::makeAny; |
112 |
using ::com::sun::star::uno::Any; |
113 |
using ::com::sun::star::uno::Any; |
113 |
using ::com::sun::star::uno::Exception; |
114 |
using ::com::sun::star::uno::Exception; |
114 |
using ::com::sun::star::uno::Reference; |
115 |
using ::com::sun::star::uno::Reference; |
Lines 1965-1970
Link Here
|
1965 |
aLabel.Insert( '~', nPos ); |
1966 |
aLabel.Insert( '~', nPos ); |
1966 |
} |
1967 |
} |
1967 |
rPropSet.SetStringProperty( CREATE_OUSTRING( "Label" ), aLabel ); |
1968 |
rPropSet.SetStringProperty( CREATE_OUSTRING( "Label" ), aLabel ); |
|
|
1969 |
|
1970 |
//Excel Alt text <==> Aoo description |
1971 |
//For TBX control, if user does not operate alt text, alt text will be set label text as default value in Excel. |
1972 |
//In this case, DFF_Prop_wzDescription will not be set in excel file. |
1973 |
//So In the end of SvxMSDffManager::ImportShape, description will not be set. But actually in excel, |
1974 |
//the alt text is the label value. So here set description as label text first which is called before ImportShape. |
1975 |
Reference< ::com::sun::star::beans::XPropertySet > xPropset( mxShape, UNO_QUERY ); |
1976 |
try{ |
1977 |
if(xPropset.is()) |
1978 |
xPropset->setPropertyValue( CREATE_OUSTRING( "Description" ), makeAny(::rtl::OUString(aLabel)) ); |
1979 |
}catch( ... ) |
1980 |
{ |
1981 |
OSL_TRACE( " Can't set a default text for TBX Control "); |
1982 |
} |
1968 |
} |
1983 |
} |
1969 |
ConvertFont( rPropSet ); |
1984 |
ConvertFont( rPropSet ); |
1970 |
} |
1985 |
} |