Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0ecc381c
Kaydet (Commit)
0ecc381c
authored
Haz 21, 2012
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i119537# Fixed extrusion of custom shapes to XLS.
Patch by: Jianyuan Li review by: Andre Fischer
üst
f58ffc9e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
2 deletions
+35
-2
msdffimp.cxx
filter/source/msfilter/msdffimp.cxx
+8
-0
xeescher.cxx
sc/source/filter/excel/xeescher.cxx
+7
-0
xiescher.cxx
sc/source/filter/excel/xiescher.cxx
+15
-0
xiescher.hxx
sc/source/filter/inc/xiescher.hxx
+2
-2
msdffdef.hxx
svx/inc/svx/msdffdef.hxx
+3
-0
No files found.
filter/source/msfilter/msdffimp.cxx
Dosyayı görüntüle @
0ecc381c
...
...
@@ -4810,6 +4810,14 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r
mpTracer
->
RemoveAttribute
(
aObjData
.
nSpFlags
&
SP_FGROUP
?
rtl
::
OUString
::
createFromAscii
(
"GroupShape"
)
:
rtl
::
OUString
::
createFromAscii
(
"Shape"
)
);
//Import alt text as description
if
(
pRet
&&
SeekToContent
(
DFF_Prop_wzDescription
,
rSt
)
)
{
String
aAltText
;
MSDFFReadZString
(
rSt
,
aAltText
,
GetPropertyValue
(
DFF_Prop_wzDescription
),
sal_True
);
pRet
->
SetDescription
(
aAltText
);
}
return
pRet
;
}
...
...
sc/source/filter/excel/xeescher.cxx
Dosyayı görüntüle @
0ecc381c
...
...
@@ -554,6 +554,13 @@ XclExpTbxControlObj::XclExpTbxControlObj( XclExpObjectManager& rObjMgr, Referenc
if
(
aCtrlProp
.
GetProperty
(
aCtrlName
,
CREATE_OUSTRING
(
"Name"
)
)
&&
(
aCtrlName
.
getLength
()
>
0
)
)
aPropOpt
.
AddOpt
(
ESCHER_Prop_wzName
,
aCtrlName
);
//Export description as alt text
if
(
SdrObject
*
pSdrObj
=
SdrObject
::
getSdrObjectFromXShape
(
xShape
)
)
{
String
aAltTxt
(
pSdrObj
->
GetDescription
(),
0
,
MSPROP_DESCRIPTION_MAX_LEN
);
aPropOpt
.
AddOpt
(
ESCHER_Prop_wzDescription
,
aAltTxt
);
}
// write DFF property set to stream
aPropOpt
.
Commit
(
mrEscherEx
.
GetStream
()
);
...
...
sc/source/filter/excel/xiescher.cxx
Dosyayı görüntüle @
0ecc381c
...
...
@@ -109,6 +109,7 @@
using
::
rtl
::
OUString
;
using
::
rtl
::
OUStringBuffer
;
using
::
com
::
sun
::
star
::
uno
::
makeAny
;
using
::
com
::
sun
::
star
::
uno
::
Any
;
using
::
com
::
sun
::
star
::
uno
::
Exception
;
using
::
com
::
sun
::
star
::
uno
::
Reference
;
...
...
@@ -1965,6 +1966,20 @@ void XclImpTbxObjBase::ConvertLabel( ScfPropertySet& rPropSet ) const
aLabel
.
Insert
(
'~'
,
nPos
);
}
rPropSet
.
SetStringProperty
(
CREATE_OUSTRING
(
"Label"
),
aLabel
);
//Excel Alt text <==> Aoo description
//For TBX control, if user does not operate alt text, alt text will be set label text as default value in Excel.
//In this case, DFF_Prop_wzDescription will not be set in excel file.
//So In the end of SvxMSDffManager::ImportShape, description will not be set. But actually in excel,
//the alt text is the label value. So here set description as label text first which is called before ImportShape.
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
xPropset
(
mxShape
,
UNO_QUERY
);
try
{
if
(
xPropset
.
is
())
xPropset
->
setPropertyValue
(
CREATE_OUSTRING
(
"Description"
),
makeAny
(
::
rtl
::
OUString
(
aLabel
))
);
}
catch
(
...
)
{
OSL_TRACE
(
" Can't set a default text for TBX Control "
);
}
}
ConvertFont
(
rPropSet
);
}
...
...
sc/source/filter/inc/xiescher.hxx
Dosyayı görüntüle @
0ecc381c
...
...
@@ -497,6 +497,8 @@ protected:
/** Derived classes will set additional properties for the current form control. */
virtual
void
DoProcessControl
(
ScfPropertySet
&
rPropSet
)
const
;
mutable
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XShape
>
mxShape
;
/// The UNO wrapper of the control shape.
private
:
/** Reads a list of cell ranges from a formula at the current stream position. */
...
...
@@ -506,8 +508,6 @@ private:
private
:
const
XclImpRoot
&
mrRoot
;
/// Not derived from XclImpRoot to allow multiple inheritance.
mutable
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XShape
>
mxShape
;
/// The UNO wrapper of the control shape.
ScfRef
<
ScAddress
>
mxCellLink
;
/// Linked cell in the Calc document.
ScfRef
<
ScRange
>
mxSrcRange
;
/// Source data range in the Calc document.
XclCtrlBindMode
meBindMode
;
/// Value binding mode.
...
...
svx/inc/svx/msdffdef.hxx
Dosyayı görüntüle @
0ecc381c
...
...
@@ -1220,4 +1220,7 @@ sal_uInt8 m_bTag;
void
*
m_pvBits
;
// raster bits of the blip.
#endif
//ALT_TXT_MSINTEROP
#define MSPROP_DESCRIPTION_MAX_LEN 4096
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment