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
02d95370
Kaydet (Commit)
02d95370
authored
Agu 15, 2011
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix for bnc#684784 - more conservative graphic replacemement
üst
3ef3fbbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
xiescher.cxx
sc/source/filter/excel/xiescher.cxx
+13
-0
xiescher.hxx
sc/source/filter/inc/xiescher.hxx
+1
-0
No files found.
sc/source/filter/excel/xiescher.cxx
Dosyayı görüntüle @
02d95370
...
...
@@ -2856,6 +2856,19 @@ SdrObject* XclImpPictureObj::DoCreateSdrObj( XclImpDffConverter& rDffConv, const
// try to create an OLE object or form control
SdrObjectPtr
xSdrObj
(
rDffConv
.
CreateSdrObject
(
*
this
,
rAnchorRect
)
);
// insert a graphic replacement for unsupported ole object ( if none already
// exists ) Hmm ok, it's possibly that there has been some imported
// graphic at a base level but unlikely, normally controls have a valid
// preview in the IMGDATA record ( see below )
// It might be possible to push such an imported graphic up to this
// XclImpPictureObj instance but there are somany layers of indirection I
// don't see an easy way. This way at least ensures that we can
// avoid a 'blank' shape that can result from a failed control import
if
(
!
xSdrObj
&&
IsOcxControl
()
&&
maGraphic
.
GetType
()
==
GRAPHIC_NONE
)
{
Graphic
aReplacement
(
SdrOle2Obj
::
GetEmtyOLEReplacementBitmap
()
);
const_cast
<
XclImpPictureObj
*
>
(
this
)
->
maGraphic
=
aReplacement
;
}
// no OLE - create a plain picture from IMGDATA record data
if
(
!
xSdrObj
&&
(
maGraphic
.
GetType
()
!=
GRAPHIC_NONE
)
)
{
...
...
sc/source/filter/inc/xiescher.hxx
Dosyayı görüntüle @
02d95370
...
...
@@ -871,6 +871,7 @@ public:
virtual
String
GetObjName
()
const
;
/** Returns the graphic imported from the IMGDATA record. */
inline
const
Graphic
&
GetGraphic
()
const
{
return
maGraphic
;
}
/** Returns the visible area of the imported graphic. */
inline
const
Rectangle
&
GetVisArea
()
const
{
return
maVisArea
;
}
...
...
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