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
07a43d8d
Kaydet (Commit)
07a43d8d
authored
Nis 04, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SvxMSConvertOCXControlsRemoved never defined
üst
1c2f9e41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
119 deletions
+0
-119
olehelper.hxx
include/oox/ole/olehelper.hxx
+0
-21
olehelper.cxx
oox/source/ole/olehelper.cxx
+0
-98
No files found.
include/oox/ole/olehelper.hxx
Dosyayı görüntüle @
07a43d8d
...
@@ -154,12 +154,6 @@ private:
...
@@ -154,12 +154,6 @@ private:
// implementation into the sd module itself.
// implementation into the sd module itself.
class
OOX_DLLPUBLIC
MSConvertOCXControls
:
public
SvxMSConvertOCXControls
class
OOX_DLLPUBLIC
MSConvertOCXControls
:
public
SvxMSConvertOCXControls
{
{
#ifdef SvxMSConvertOCXControlsRemoved
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShapes
>
mxShapes
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XDrawPage
>
mxDrawPage
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
container
::
XIndexContainer
>
mxFormComps
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
mxServiceFactory
;
#endif
protected
:
protected
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>
mxCtx
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>
mxCtx
;
::
oox
::
GraphicHelper
maGrfHelper
;
::
oox
::
GraphicHelper
maGrfHelper
;
...
@@ -179,21 +173,6 @@ public:
...
@@ -179,21 +173,6 @@ public:
sal_Int32
nPos
,
sal_Int32
nSize
);
sal_Int32
nPos
,
sal_Int32
nSize
);
static
sal_Bool
WriteOCXStream
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModel
>&
rxModel
,
SotStorageRef
&
rSrc1
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
awt
::
XControlModel
>
&
rControlModel
,
const
com
::
sun
::
star
::
awt
::
Size
&
rSize
,
OUString
&
rName
);
static
sal_Bool
WriteOCXStream
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModel
>&
rxModel
,
SotStorageRef
&
rSrc1
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
awt
::
XControlModel
>
&
rControlModel
,
const
com
::
sun
::
star
::
awt
::
Size
&
rSize
,
OUString
&
rName
);
static
sal_Bool
WriteOCXExcelKludgeStream
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModel
>&
rxModel
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XOutputStream
>&
xOutStrm
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
awt
::
XControlModel
>
&
rControlModel
,
const
com
::
sun
::
star
::
awt
::
Size
&
rSize
,
OUString
&
rName
);
static
sal_Bool
WriteOCXExcelKludgeStream
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModel
>&
rxModel
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XOutputStream
>&
xOutStrm
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
awt
::
XControlModel
>
&
rControlModel
,
const
com
::
sun
::
star
::
awt
::
Size
&
rSize
,
OUString
&
rName
);
#ifdef SvxMSConvertOCXControlsRemoved
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShapes
>
&
GetShapes
();
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
container
::
XIndexContainer
>
&
GetFormComps
();
virtual
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XDrawPage
>
&
GetDrawPage
();
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
&
GetServiceFactory
();
virtual
sal_Bool
InsertControl
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
form
::
XFormComponent
>&
/*rFComp*/
,
const
com
::
sun
::
star
::
awt
::
Size
&
/*rSize*/
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShape
>*
/*pShape*/
,
sal_Bool
/*bFloatingCtrl*/
)
{
return
sal_False
;}
#endif
};
};
...
...
oox/source/ole/olehelper.cxx
Dosyayı görüntüle @
07a43d8d
...
@@ -621,104 +621,6 @@ sal_Bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxMode
...
@@ -621,104 +621,6 @@ sal_Bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxMode
return
sal_True
;
return
sal_True
;
}
}
#ifdef SvxMSConvertOCXControlsRemoved
const
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
&
MSConvertOCXControls
::
GetServiceFactory
()
{
if
(
!
mxServiceFactory
.
is
()
&&
mxModel
.
is
()
)
mxServiceFactory
.
set
(
mxModel
,
UNO_QUERY
);
return
mxServiceFactory
;
}
const
Reference
<
XIndexContainer
>&
MSConvertOCXControls
::
GetFormComps
()
{
if
(
!
mxFormComps
.
is
()
)
{
GetDrawPage
();
if
(
mxDrawPage
.
is
()
)
{
Reference
<
XFormsSupplier
>
xFormsSupplier
(
mxDrawPage
,
UNO_QUERY
);
OSL_ENSURE
(
xFormsSupplier
.
is
(),
"not able to get XFormsSupplier from XDrawPage"
);
Reference
<
XNameContainer
>
xNameCont
=
xFormsSupplier
->
getForms
();
OUString
sStdName
=
"WW-Standard"
;
OUString
sName
(
sStdName
);
sal_uInt16
n
=
0
;
while
(
xNameCont
->
hasByName
(
sName
)
)
{
sName
=
sStdName
;
sName
+=
OUString
::
number
(
++
n
);
}
const
Reference
<
XMultiServiceFactory
>
&
rServiceFactory
=
GetServiceFactory
();
if
(
!
rServiceFactory
.
is
()
)
return
mxFormComps
;
Reference
<
XInterface
>
xCreate
=
rServiceFactory
->
createInstance
(
"com.sun.star.form.component.Form"
);
if
(
xCreate
.
is
()
)
{
Reference
<
XPropertySet
>
xFormPropSet
(
xCreate
,
UNO_QUERY
);
Any
aTmp
(
&
sName
,
getCppuType
((
OUString
*
)
0
));
xFormPropSet
->
setPropertyValue
(
"Name"
,
aTmp
);
Reference
<
XForm
>
xForm
(
xCreate
,
UNO_QUERY
);
OSL_ENSURE
(
xForm
.
is
(),
"No Form?"
);
Reference
<
XIndexContainer
>
xForms
(
xNameCont
,
UNO_QUERY
);
OSL_ENSURE
(
xForms
.
is
(),
"XForms not available"
);
aTmp
.
setValue
(
&
xForm
,
::
getCppuType
((
Reference
<
XForm
>*
)
0
));
xForms
->
insertByIndex
(
xForms
->
getCount
(),
aTmp
);
mxFormComps
=
Reference
<
XIndexContainer
>
(
xCreate
,
UNO_QUERY
);
}
}
}
return
mxFormComps
;
}
const
Reference
<
XDrawPage
>&
MSConvertOCXControls
::
GetDrawPage
()
{
if
(
!
mxDrawPage
.
is
()
&&
mxModel
.
is
()
)
{
Reference
<
XDrawPageSupplier
>
xTxtDoc
(
mxModel
,
UNO_QUERY
);
OSL_ENSURE
(
xTxtDoc
.
is
(),
"no XDrawPageSupplier from XModel"
);
mxDrawPage
=
xTxtDoc
->
getDrawPage
();
OSL_ENSURE
(
mxDrawPage
.
is
(),
"no XDrawPage"
);
}
return
mxDrawPage
;
}
const
Reference
<
XShapes
>&
MSConvertOCXControls
::
GetShapes
()
{
if
(
!
mxShapes
.
is
()
)
{
GetDrawPage
();
if
(
mxDrawPage
.
is
()
)
{
mxShapes
=
Reference
<
XShapes
>
(
mxDrawPage
,
UNO_QUERY
);
OSL_ENSURE
(
mxShapes
.
is
(),
"no XShapes from XDrawPage"
);
}
}
return
mxShapes
;
}
#endif
}
// namespace ole
}
// namespace ole
}
// namespace oox
}
// namespace oox
...
...
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