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
30c466d3
Kaydet (Commit)
30c466d3
authored
Mar 26, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, convert to XComponentContext
Change-Id: I51e98ac96815d6d7348d53a191400e608768d6b7
üst
ccb77a73
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
39 deletions
+37
-39
AccessibleControlShape.cxx
svx/source/accessibility/AccessibleControlShape.cxx
+3
-4
srchdlg.cxx
svx/source/dialog/srchdlg.cxx
+1
-2
fmdmod.cxx
svx/source/form/fmdmod.cxx
+6
-5
fmpgeimp.cxx
svx/source/form/fmpgeimp.cxx
+4
-4
fmshimp.cxx
svx/source/form/fmshimp.cxx
+2
-1
navigatortree.cxx
svx/source/form/navigatortree.cxx
+2
-1
galmisc.cxx
svx/source/gallery2/galmisc.cxx
+17
-20
viewobjectcontactofunocontrol.cxx
svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
+2
-2
No files found.
svx/source/accessibility/AccessibleControlShape.cxx
Dosyayı görüntüle @
30c466d3
...
...
@@ -39,7 +39,6 @@
#include "svx/svdstr.hrc"
#include <algorithm>
using
namespace
::
comphelper
;
using
namespace
::
accessibility
;
using
namespace
::
com
::
sun
::
star
::
accessibility
;
using
namespace
::
com
::
sun
::
star
::
uno
;
...
...
@@ -123,7 +122,7 @@ AccessibleControlShape::AccessibleControlShape (
,
m_bDisposeNativeContext
(
false
)
,
m_bWaitingForControl
(
false
)
{
m_pChildManager
=
new
OWrappedAccessibleChildrenManager
(
getProcessComponentContext
()
);
m_pChildManager
=
new
comphelper
::
OWrappedAccessibleChildrenManager
(
comphelper
::
getProcessComponentContext
()
);
m_pChildManager
->
acquire
();
osl_atomic_increment
(
&
m_refCount
);
...
...
@@ -260,7 +259,7 @@ void AccessibleControlShape::Init()
// .................................................................
// finally, aggregate a proxy for the control context
// first a factory for the proxy
Reference
<
XProxyFactory
>
xFactory
=
ProxyFactory
::
create
(
comphelper
::
get
ComponentContext
(
getProcessServiceFactory
()
)
);
Reference
<
XProxyFactory
>
xFactory
=
ProxyFactory
::
create
(
comphelper
::
get
ProcessComponentContext
(
)
);
// then the proxy itself
if
(
xNativeControlContext
.
is
()
)
{
...
...
@@ -438,7 +437,7 @@ Sequence< Type > SAL_CALL AccessibleControlShape::getTypes() throw (RuntimeExcep
if
(
m_xControlContextTypeAccess
.
is
()
)
aAggregateTypes
=
m_xControlContextTypeAccess
->
getTypes
();
Sequence
<
Type
>
aAllTypes
=
concatSequences
(
aShapeTypes
,
aOwnTypes
,
aAggregateTypes
);
Sequence
<
Type
>
aAllTypes
=
co
mphelper
::
co
ncatSequences
(
aShapeTypes
,
aOwnTypes
,
aAggregateTypes
);
// remove duplicates
Type
*
pBegin
=
aAllTypes
.
getArray
();
...
...
svx/source/dialog/srchdlg.cxx
Dosyayı görüntüle @
30c466d3
...
...
@@ -452,9 +452,8 @@ void SvxSearchDialog::Construct_Impl()
{
try
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xMgr
=
getProcessServiceFactory
();
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xConfigurationProvider
=
configuration
::
theDefaultProvider
::
get
(
comphelper
::
get
ComponentContext
(
xMgr
)
);
configuration
::
theDefaultProvider
::
get
(
comphelper
::
get
ProcessComponentContext
(
)
);
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
OUString
sPath
(
"/org.openoffice.Office.Common/SearchOptions/"
);
aArgs
[
0
]
<<=
sPath
;
...
...
svx/source/form/fmdmod.cxx
Dosyayı görüntüle @
30c466d3
...
...
@@ -28,20 +28,21 @@
using
namespace
::
svxform
;
//-----------------------------------------------------------------------------
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
SvxFmMSFactory
::
createInstance
(
const
OUString
&
ServiceSpecifier
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
SAL_CALL
SvxFmMSFactory
::
createInstance
(
const
OUString
&
r
ServiceSpecifier
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
xRet
;
if
(
ServiceSpecifier
.
indexOf
(
"com.sun.star.form.component."
)
==
0
)
if
(
rServiceSpecifier
.
startsWith
(
"com.sun.star.form.component."
)
)
{
xRet
=
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
ServiceSpecifier
);
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
xContext
=
comphelper
::
getProcessComponentContext
();
xRet
=
xContext
->
getServiceManager
()
->
createInstanceWithContext
(
rServiceSpecifier
,
xContext
);
}
else
if
(
ServiceSpecifier
==
"com.sun.star.drawing.ControlShape"
)
else
if
(
r
ServiceSpecifier
==
"com.sun.star.drawing.ControlShape"
)
{
SdrObject
*
pObj
=
new
FmFormObj
();
xRet
=
static_cast
<
cppu
::
OWeakObject
*>
(
static_cast
<
SvxShape_UnoImplHelper
*>
(
new
SvxShapeControl
(
pObj
)));
}
if
(
!
xRet
.
is
())
xRet
=
SvxUnoDrawMSFactory
::
createInstance
(
ServiceSpecifier
);
xRet
=
SvxUnoDrawMSFactory
::
createInstance
(
r
ServiceSpecifier
);
return
xRet
;
}
...
...
svx/source/form/fmpgeimp.cxx
Dosyayı görüntüle @
30c466d3
...
...
@@ -329,11 +329,11 @@ const Reference< XNameContainer >& FmFormPageImpl::getForms( bool _bForceCreate
m_bAttemptedFormCreation
=
true
;
const
OUString
sFormsCollectionServiceName
(
"com.sun.star.form.Forms"
);
m_xForms
=
Reference
<
XNameContainer
>
(
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
sFormsCollectionServiceName
),
UNO_QUERY
Reference
<
XComponentContext
>
xContext
=
comphelper
::
getProcessComponentContext
();
m_xForms
.
set
(
xContext
->
getServiceManager
()
->
createInstanceWithContext
(
sFormsCollectionServiceName
,
xContext
),
UNO_QUERY_THROW
);
DBG_ASSERT
(
m_xForms
.
is
(),
"FmFormPageImpl::getForms: could not create a forms collection!"
);
if
(
m_aFormsCreationHdl
.
IsSet
()
)
{
...
...
svx/source/form/fmshimp.cxx
Dosyayı görüntüle @
30c466d3
...
...
@@ -1166,7 +1166,8 @@ bool FmXFormShell::executeControlConversionSlot( const Reference< XFormComponent
return
false
;
OUString
sNewName
(
getServiceNameByControlType
(
nObjectTypes
[
lookupSlot
]
)
);
Reference
<
XControlModel
>
xNewModel
(
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
sNewName
),
UNO_QUERY
);
Reference
<
XComponentContext
>
xContext
=
comphelper
::
getProcessComponentContext
();
Reference
<
XControlModel
>
xNewModel
(
xContext
->
getServiceManager
()
->
createInstanceWithContext
(
sNewName
,
xContext
),
UNO_QUERY
);
if
(
!
xNewModel
.
is
())
return
false
;
...
...
svx/source/form/navigatortree.cxx
Dosyayı görüntüle @
30c466d3
...
...
@@ -1429,7 +1429,8 @@ namespace svxform
//////////////////////////////////////////////////////////////////////
// Neue Component erzeugen
Reference
<
XFormComponent
>
xNewComponent
(
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
rServiceName
),
UNO_QUERY
);
Reference
<
XComponentContext
>
xContext
=
comphelper
::
getProcessComponentContext
();
Reference
<
XFormComponent
>
xNewComponent
(
xContext
->
getServiceManager
()
->
createInstanceWithContext
(
rServiceName
,
xContext
),
UNO_QUERY
);
if
(
!
xNewComponent
.
is
())
return
NULL
;
...
...
svx/source/gallery2/galmisc.cxx
Dosyayı görüntüle @
30c466d3
...
...
@@ -395,33 +395,30 @@ GalleryProgress::GalleryProgress( GraphicFilter* pFilter ) :
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xMgr
(
::
comphelper
::
getProcessServiceFactory
()
);
if
(
xMgr
.
is
()
)
{
uno
::
Reference
<
awt
::
XProgressMonitor
>
xMonitor
(
xMgr
->
createInstance
(
uno
::
Reference
<
awt
::
XProgressMonitor
>
xMonitor
(
xMgr
->
createInstance
(
OUString
(
"com.sun.star.awt.XProgressMonitor"
)
),
uno
::
UNO_QUERY
);
if
(
xMonitor
.
is
()
)
if
(
xMonitor
.
is
()
)
{
mxProgressBar
=
uno
::
Reference
<
awt
::
XProgressBar
>
(
xMonitor
,
uno
::
UNO_QUERY
);
if
(
mxProgressBar
.
is
()
)
{
mxProgressBar
=
uno
::
Reference
<
awt
::
XProgressBar
>
(
xMonitor
,
uno
::
UNO_QUERY
)
;
String
aProgressText
;
if
(
m
xProgressBar
.
is
()
)
if
(
m
pFilter
)
{
String
aProgressText
;
if
(
mpFilter
)
{
aProgressText
=
GAL_RESSTR
(
RID_SVXSTR_GALLERY_FILTER
);
// mpFilter->SetUpdatePercentHdl( LINK( this, GalleryProgress, Update ) ); // sj: progress wasn't working up from SO7 at all
// // so I am removing this. The gallery progress should
// // be changed to use the XStatusIndicator instead of XProgressMonitor
}
else
aProgressText
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Gallery"
)
);
xMonitor
->
addText
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Gallery"
)
),
aProgressText
,
sal_False
)
;
mxProgressBar
->
setRange
(
0
,
GALLERY_PROGRESS_RANGE
);
aProgressText
=
GAL_RESSTR
(
RID_SVXSTR_GALLERY_FILTER
);
// mpFilter->SetUpdatePercentHdl( LINK( this, GalleryProgress, Update ) ); // sj: progress wasn't working up from SO7 at all
// // so I am removing this. The gallery progress should
// // be changed to use the XStatusIndicator instead of XProgressMonitor
}
else
aProgressText
=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Gallery"
)
);
xMonitor
->
addText
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Gallery"
)
),
aProgressText
,
sal_False
)
;
mxProgressBar
->
setRange
(
0
,
GALLERY_PROGRESS_RANGE
);
}
}
}
...
...
svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
Dosyayı görüntüle @
30c466d3
...
...
@@ -1205,8 +1205,8 @@ namespace sdr { namespace contact {
{
const
OUString
sControlServiceName
(
_rUnoObject
.
GetUnoControlTypeName
()
);
Reference
<
XMultiServiceFactory
>
xFactory
(
::
comphelper
::
getProcessServiceFactory
(),
UNO_SET_THROW
);
_out_rControl
=
Reference
<
XControl
>
(
xFactory
->
createInstance
(
sControlServiceName
),
UNO_QUERY_THROW
);
Reference
<
css
::
uno
::
XComponentContext
>
xContext
=
::
comphelper
::
getProcessComponentContext
(
);
_out_rControl
=
Reference
<
XControl
>
(
xContext
->
getServiceManager
()
->
createInstanceWithContext
(
sControlServiceName
,
xContext
),
UNO_QUERY_THROW
);
// knit the model and the control
_out_rControl
.
setModel
(
xControlModel
);
...
...
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