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
7efec84c
Kaydet (Commit)
7efec84c
authored
Tem 12, 2011
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use oox filter for *all* control import
üst
e8342dab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
xiescher.cxx
sc/source/filter/excel/xiescher.cxx
+25
-4
xiescher.hxx
sc/source/filter/inc/xiescher.hxx
+3
-2
No files found.
sc/source/filter/excel/xiescher.cxx
Dosyayı görüntüle @
7efec84c
...
...
@@ -115,6 +115,10 @@
#include "namebuff.hxx"
#include <boost/shared_ptr.hpp>
#include <comphelper/componentcontext.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/mediadescriptor.hxx>
#include <sfx2/docfile.hxx>
using
::
rtl
::
OUString
;
using
::
rtl
::
OUStringBuffer
;
...
...
@@ -125,6 +129,7 @@ using ::com::sun::star::uno::Sequence;
using
::
com
::
sun
::
star
::
uno
::
UNO_QUERY
;
using
::
com
::
sun
::
star
::
uno
::
UNO_QUERY_THROW
;
using
::
com
::
sun
::
star
::
uno
::
UNO_SET_THROW
;
using
::
com
::
sun
::
star
::
uno
::
XComponentContext
;
using
::
com
::
sun
::
star
::
beans
::
NamedValue
;
using
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
;
using
::
com
::
sun
::
star
::
container
::
XIndexContainer
;
...
...
@@ -3132,6 +3137,12 @@ bool XclImpSimpleDffConverter::GetColorFromPalette( sal_uInt16 nIndex, Color& rC
}
// ----------------------------------------------------------------------------
Reference
<
XComponentContext
>
lcl_getUnoCtx
()
{
comphelper
::
ComponentContext
aCtx
(
::
comphelper
::
getProcessServiceFactory
()
);
return
aCtx
.
getUNOContext
();
}
XclImpDffConverter
::
XclImpDffConvData
::
XclImpDffConvData
(
XclImpDrawing
&
rDrawing
,
SdrModel
&
rSdrModel
,
SdrPage
&
rSdrPage
)
:
...
...
@@ -3142,13 +3153,12 @@ XclImpDffConverter::XclImpDffConvData::XclImpDffConvData(
mbHasCtrlForm
(
false
)
{
}
// ----------------------------------------------------------------------------
XclImpDffConverter
::
XclImpDffConverter
(
const
XclImpRoot
&
rRoot
,
SvStream
&
rDffStrm
)
:
XclImpSimpleDffConverter
(
rRoot
,
rDffStrm
),
SvxMSConvertOCXControls
(
rRoot
.
GetDocShell
(),
0
),
maStdFormName
(
CREATE_OUSTRING
(
"Standard"
)
),
maFormCtrlHelper
(
GetMedium
().
GetInputStream
(),
lcl_getUnoCtx
(),
GetDocShell
()
->
GetModel
()
),
mnOleImpFlags
(
0
)
{
if
(
SvtFilterOptions
*
pFilterOpt
=
SvtFilterOptions
::
Get
()
)
...
...
@@ -3312,8 +3322,19 @@ SdrObject* XclImpDffConverter::CreateSdrObject( const XclImpPictureObj& rPicObj,
mxCtlsStrm
->
Seek
(
rPicObj
.
GetCtlsStreamPos
()
);
// read from mxCtlsStrm into xShape, insert the control model into the form
Reference
<
XShape
>
xShape
;
if
(
GetConvData
().
mxCtrlForm
.
is
()
&&
ReadOCXExcelKludgeStream
(
mxCtlsStrm
,
&
xShape
,
sal_True
)
)
xSdrObj
.
reset
(
rPicObj
.
CreateSdrObjectFromShape
(
xShape
,
rAnchorRect
)
);
if
(
GetConvData
().
mxCtrlForm
.
is
()
)
{
Reference
<
XFormComponent
>
xFComp
;
com
::
sun
::
star
::
awt
::
Size
aSz
;
// not used in import
maFormCtrlHelper
.
importFormControlFromCtls
(
xFComp
,
rPicObj
.
GetCtlsStreamPos
(),
rPicObj
.
GetCtlsStreamSize
()
);
// recreate the method formally known as
// ReadOCXExcelKludgeStream( )
if
(
xFComp
.
is
()
)
{
InsertControl
(
xFComp
,
aSz
,
&
xShape
,
true
);
xSdrObj
.
reset
(
rPicObj
.
CreateSdrObjectFromShape
(
xShape
,
rAnchorRect
)
);
}
}
}
catch
(
Exception
&
)
{
...
...
sc/source/filter/inc/xiescher.hxx
Dosyayı görüntüle @
7efec84c
...
...
@@ -38,7 +38,7 @@
#include "xiroot.hxx"
#include "xistring.hxx"
#include <boost/shared_ptr.hpp>
#include <oox/ole/olehelper.hxx>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
drawing
{
class
XShape
;
}
namespace
form
{
class
XForm
;
}
...
...
@@ -985,7 +985,7 @@ protected:
contains core implementation of DFF stream import and OCX form control
import.
*/
class
XclImpDffConverter
:
public
XclImpSimpleDffConverter
,
private
SvxMSConvertOCXControls
class
XclImpDffConverter
:
public
XclImpSimpleDffConverter
{
public
:
explicit
XclImpDffConverter
(
const
XclImpRoot
&
rRoot
,
SvStream
&
rDffStrm
);
...
...
@@ -1092,6 +1092,7 @@ private:
typedef
::
std
::
vector
<
XclImpDffConvDataRef
>
XclImpDffConvDataStack
;
const
::
rtl
::
OUString
maStdFormName
;
/// Standard name of control forms.
::
oox
::
ole
::
OleFormCtrlImportHelper
maFormCtrlHelper
;
SotStorageStreamRef
mxCtlsStrm
;
/// The 'Ctls' stream for OCX form controls.
ScfProgressBarRef
mxProgress
;
/// The progress bar used in ProcessObj().
XclImpDffConvDataStack
maDataStack
;
/// Stack for registered drawing managers.
...
...
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