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
c703f03e
Kaydet (Commit)
c703f03e
authored
Mar 15, 2011
tarafından
Thorsten Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix build in scripting
üst
fcc66077
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
15 deletions
+16
-15
DialogModelProvider.cxx
scripting/source/dlgprov/DialogModelProvider.cxx
+2
-1
dlgprov.cxx
scripting/source/dlgprov/dlgprov.cxx
+11
-12
dlgprov.hxx
scripting/source/dlgprov/dlgprov.hxx
+1
-0
xmldlg_imexp.hxx
xmlscript/inc/xmlscript/xmldlg_imexp.hxx
+1
-1
xmldlg_addfunc.cxx
xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx
+1
-1
No files found.
scripting/source/dlgprov/DialogModelProvider.cxx
Dosyayı görüntüle @
c703f03e
...
@@ -94,7 +94,8 @@ void SAL_CALL DialogModelProvider::initialize(const css::uno::Sequence< uno::Any
...
@@ -94,7 +94,8 @@ void SAL_CALL DialogModelProvider::initialize(const css::uno::Sequence< uno::Any
Any
aDialogSourceURLAny
;
Any
aDialogSourceURLAny
;
aDialogSourceURLAny
<<=
sURL
;
aDialogSourceURLAny
<<=
sURL
;
m_xDialogModel
.
set
(
dlgprov
::
lcl_createDialogModel
(
m_xContext
,
xInput
,
xStringResourceManager
,
aDialogSourceURLAny
),
UNO_QUERY_THROW
);
Reference
<
frame
::
XModel
>
xModel
;
m_xDialogModel
.
set
(
dlgprov
::
lcl_createDialogModel
(
m_xContext
,
xInput
,
xModel
,
xStringResourceManager
,
aDialogSourceURLAny
),
UNO_QUERY_THROW
);
m_xDialogModelProp
.
set
(
m_xDialogModel
,
UNO_QUERY_THROW
);
m_xDialogModelProp
.
set
(
m_xDialogModel
,
UNO_QUERY_THROW
);
}
}
}
}
...
...
scripting/source/dlgprov/dlgprov.cxx
Dosyayı görüntüle @
c703f03e
...
@@ -138,6 +138,7 @@ static ::rtl::OUString aResourceResolverPropName(RTL_CONSTASCII_USTRINGPARAM("Re
...
@@ -138,6 +138,7 @@ static ::rtl::OUString aResourceResolverPropName(RTL_CONSTASCII_USTRINGPARAM("Re
}
}
Reference
<
container
::
XNameContainer
>
lcl_createDialogModel
(
const
Reference
<
XComponentContext
>&
i_xContext
,
Reference
<
container
::
XNameContainer
>
lcl_createDialogModel
(
const
Reference
<
XComponentContext
>&
i_xContext
,
const
Reference
<
io
::
XInputStream
>&
xInput
,
const
Reference
<
io
::
XInputStream
>&
xInput
,
const
Reference
<
frame
::
XModel
>&
xModel
,
const
Reference
<
resource
::
XStringResourceManager
>&
xStringResourceManager
,
const
Reference
<
resource
::
XStringResourceManager
>&
xStringResourceManager
,
const
Any
&
aDialogSourceURL
)
throw
(
Exception
)
const
Any
&
aDialogSourceURL
)
throw
(
Exception
)
{
{
...
@@ -147,7 +148,15 @@ static ::rtl::OUString aResourceResolverPropName(RTL_CONSTASCII_USTRINGPARAM("Re
...
@@ -147,7 +148,15 @@ static ::rtl::OUString aResourceResolverPropName(RTL_CONSTASCII_USTRINGPARAM("Re
Reference
<
beans
::
XPropertySet
>
xDlgPropSet
(
xDialogModel
,
UNO_QUERY
);
Reference
<
beans
::
XPropertySet
>
xDlgPropSet
(
xDialogModel
,
UNO_QUERY
);
xDlgPropSet
->
setPropertyValue
(
aDlgSrcUrlPropName
,
aDialogSourceURL
);
xDlgPropSet
->
setPropertyValue
(
aDlgSrcUrlPropName
,
aDialogSourceURL
);
::
xmlscript
::
importDialogModel
(
xInput
,
xDialogModel
,
i_xContext
);
// #TODO we really need to detect the source of the Dialog, is it
// the dialog. E.g. if the dialog was created from basic ( then we just
// can't tell where its from )
// If we are happy to always substitute the form model for the awt
// one then maybe the presence of a document model is enough to trigger
// swapping out the models ( or perhaps we only want to do this
// for vba mode ) there are a number of feasible and valid possibilities
::
xmlscript
::
importDialogModel
(
xInput
,
xDialogModel
,
i_xContext
,
xModel
);
// Set resource property
// Set resource property
if
(
xStringResourceManager
.
is
()
)
if
(
xStringResourceManager
.
is
()
)
{
{
...
@@ -266,17 +275,7 @@ static ::rtl::OUString aResourceResolverPropName(RTL_CONSTASCII_USTRINGPARAM("Re
...
@@ -266,17 +275,7 @@ static ::rtl::OUString aResourceResolverPropName(RTL_CONSTASCII_USTRINGPARAM("Re
const
Reference
<
resource
::
XStringResourceManager
>&
xStringResourceManager
,
const
Reference
<
resource
::
XStringResourceManager
>&
xStringResourceManager
,
const
Any
&
aDialogSourceURL
)
throw
(
Exception
)
const
Any
&
aDialogSourceURL
)
throw
(
Exception
)
{
{
return
lcl_createDialogModel
(
m_xContext
,
xInput
,
m_xModel
,
xStringResourceManager
,
aDialogSourceURL
);
// #TODO we really need to detect the source of the Dialog, is it
// the dialog. E.g. if the dialog was created from basic ( then we just
// can't tell where its from )
// If we are happy to always substitute the form model for the awt
// one then maybe the presence of a document model is enough to trigger
// swapping out the models ( or perhaps we only want to do this
// for vba mode ) there are a number of feasible and valid possibilities
::
xmlscript
::
importDialogModel
(
xInput
,
xDialogModel
,
m_xContext
,
m_xModel
);
return
lcl_createDialogModel
(
m_xContext
,
xInput
,
xStringResourceManager
,
aDialogSourceURL
);
}
}
Reference
<
XControlModel
>
DialogProviderImpl
::
createDialogModelForBasic
()
throw
(
Exception
)
Reference
<
XControlModel
>
DialogProviderImpl
::
createDialogModelForBasic
()
throw
(
Exception
)
...
...
scripting/source/dlgprov/dlgprov.hxx
Dosyayı görüntüle @
c703f03e
...
@@ -67,6 +67,7 @@ namespace dlgprov
...
@@ -67,6 +67,7 @@ namespace dlgprov
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
lcl_createDialogModel
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
lcl_createDialogModel
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
i_xContext
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
i_xContext
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>&
xInput
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>&
xInput
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModel
>&
xModel
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
resource
::
XStringResourceManager
>&
xStringResourceManager
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
resource
::
XStringResourceManager
>&
xStringResourceManager
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
aDialogSourceURL
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
const
::
com
::
sun
::
star
::
uno
::
Any
&
aDialogSourceURL
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
...
...
xmlscript/inc/xmlscript/xmldlg_imexp.hxx
Dosyayı görüntüle @
c703f03e
...
@@ -78,7 +78,7 @@ SAL_CALL exportDialogModel(
...
@@ -78,7 +78,7 @@ SAL_CALL exportDialogModel(
//==============================================================================
//==============================================================================
void
SAL_CALL
importDialogModel
(
void
SAL_CALL
importDialogModel
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>
xInput
,
::
com
::
sun
::
star
::
io
::
XInputStream
>
const
&
xInput
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
const
&
xDialogModel
,
::
com
::
sun
::
star
::
container
::
XNameContainer
>
const
&
xDialogModel
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
...
...
xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx
Dosyayı görüntüle @
c703f03e
...
@@ -105,7 +105,7 @@ Reference< io::XInputStreamProvider > SAL_CALL exportDialogModel(
...
@@ -105,7 +105,7 @@ Reference< io::XInputStreamProvider > SAL_CALL exportDialogModel(
//==================================================================================================
//==================================================================================================
void
SAL_CALL
importDialogModel
(
void
SAL_CALL
importDialogModel
(
Reference
<
io
::
XInputStream
>
xInput
,
Reference
<
io
::
XInputStream
>
const
&
xInput
,
Reference
<
container
::
XNameContainer
>
const
&
xDialogModel
,
Reference
<
container
::
XNameContainer
>
const
&
xDialogModel
,
Reference
<
XComponentContext
>
const
&
xContext
,
Reference
<
XComponentContext
>
const
&
xContext
,
Reference
<
XModel
>
const
&
xDocument
)
Reference
<
XModel
>
const
&
xDocument
)
...
...
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