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
2987b20f
Kaydet (Commit)
2987b20f
authored
Agu 11, 2010
tarafından
Andreas Bregas
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
mib18: Merge
üst
73e504b3
3fb28911
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
42 deletions
+42
-42
exprgen.cxx
basic/source/comp/exprgen.cxx
+2
-2
makefile.mk
basic/source/comp/makefile.mk
+10
-23
vbauserform.cxx
vbahelper/source/msforms/vbauserform.cxx
+30
-17
No files found.
basic/source/comp/exprgen.cxx
Dosyayı görüntüle @
2987b20f
...
...
@@ -207,8 +207,8 @@ void SbiExprList::Gen()
{
pParser
->
aGen
.
Gen
(
_ARGC
);
// AB 10.1.96: Typ-Anpassung bei DECLARE
USHORT
nCount
=
1
,
nParAnz
=
0
;
SbiSymPool
*
pPool
=
NULL
;
USHORT
nCount
=
1
/*, nParAnz = 0*/
;
//
SbiSymPool* pPool = NULL;
for
(
SbiExpression
*
pExpr
=
pFirst
;
pExpr
;
pExpr
=
pExpr
->
pNext
,
nCount
++
)
{
pExpr
->
Gen
();
...
...
basic/source/comp/makefile.mk
Dosyayı görüntüle @
2987b20f
...
...
@@ -34,39 +34,26 @@ TARGET=comp
.INCLUDE
:
settings.mk
CXXFILES
=
\
sbcomp.cxx
\
dim.cxx
\
exprtree.cxx
\
exprnode.cxx
\
exprgen.cxx
\
codegen.cxx
\
io.cxx
\
loops.cxx
\
parser.cxx
\
scanner.cxx
\
token.cxx
\
symtbl.cxx
\
buffer.cxx
SLOFILES
=
\
$(SLO)$/
sbcomp.obj
\
$(SLO)$/
buffer.obj
\
$(SLO)$/
codegen.obj
\
$(SLO)$/
dim.obj
\
$(SLO)$/
exprtree.obj
\
$(SLO)$/
exprnode.obj
\
$(SLO)$/
exprgen.obj
\
$(SLO)$/
codegen.obj
\
$(SLO)$/
exprnode.obj
\
$(SLO)$/
exprtree.obj
\
$(SLO)$/
io.obj
\
$(SLO)$/
loops.obj
\
$(SLO)$/
parser.obj
\
$(SLO)$/
sbcomp.obj
\
$(SLO)$/
scanner.obj
\
$(SLO)$/
token.obj
\
$(SLO)$/
symtbl.obj
\
$(SLO)$/
buffer
.obj
$(SLO)$/
token
.obj
EXCEPTIONSFILES
=
\
$(SLO)$/
parser.obj
\
$(SLO)$/
exprtree.obj
$(SLO)$/
codegen.obj
\
$(SLO)$/
dim.obj
\
$(SLO)$/
exprtree.obj
\
$(SLO)$/
parser.obj
# --- Targets --------------------------------------------------------------
...
...
vbahelper/source/msforms/vbauserform.cxx
Dosyayı görüntüle @
2987b20f
...
...
@@ -153,28 +153,41 @@ void SAL_CALL
ScVbaUserForm
::
setValue
(
const
::
rtl
::
OUString
&
aPropertyName
,
const
uno
::
Any
&
aValue
)
throw
(
beans
::
UnknownPropertyException
,
script
::
CannotConvertException
,
reflection
::
InvocationTargetException
,
uno
::
RuntimeException
)
{
uno
::
Any
aObject
=
getValue
(
aPropertyName
);
// The Object *must* support XDefaultProperty here because getValue will
// only return properties that are Objects ( e.g. controls )
// e.g. Userform1.aControl = something
// 'aControl' has to support XDefaultProperty to make sense here
uno
::
Reference
<
script
::
XDefaultProperty
>
xDfltProp
(
aObject
,
uno
::
UNO_QUERY_THROW
);
rtl
::
OUString
aDfltPropName
=
xDfltProp
->
getDefaultPropertyName
();
uno
::
Reference
<
beans
::
XIntrospectionAccess
>
xUnoAccess
(
getIntrospectionAccess
(
aObject
)
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xUnoAccess
->
queryAdapter
(
::
getCppuType
(
(
const
uno
::
Reference
<
beans
::
XPropertySet
>
*
)
0
)
),
uno
::
UNO_QUERY_THROW
);
xPropSet
->
setPropertyValue
(
aDfltPropName
,
aValue
);
// in case the dialog is already closed the VBA implementation should not throw exceptions
if
(
aObject
.
hasValue
()
)
{
// The Object *must* support XDefaultProperty here because getValue will
// only return properties that are Objects ( e.g. controls )
// e.g. Userform1.aControl = something
// 'aControl' has to support XDefaultProperty to make sense here
uno
::
Reference
<
script
::
XDefaultProperty
>
xDfltProp
(
aObject
,
uno
::
UNO_QUERY_THROW
);
rtl
::
OUString
aDfltPropName
=
xDfltProp
->
getDefaultPropertyName
();
uno
::
Reference
<
beans
::
XIntrospectionAccess
>
xUnoAccess
(
getIntrospectionAccess
(
aObject
)
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xUnoAccess
->
queryAdapter
(
::
getCppuType
(
(
const
uno
::
Reference
<
beans
::
XPropertySet
>
*
)
0
)
),
uno
::
UNO_QUERY_THROW
);
xPropSet
->
setPropertyValue
(
aDfltPropName
,
aValue
);
}
}
uno
::
Any
SAL_CALL
ScVbaUserForm
::
getValue
(
const
::
rtl
::
OUString
&
aPropertyName
)
throw
(
beans
::
UnknownPropertyException
,
uno
::
RuntimeException
)
{
uno
::
Reference
<
awt
::
XControl
>
xDialogControl
(
m_xDialog
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
awt
::
XControlContainer
>
xContainer
(
m_xDialog
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
awt
::
XControl
>
xControl
=
xContainer
->
getControl
(
aPropertyName
);
ScVbaControlFactory
aFac
(
mxContext
,
xControl
,
m_xModel
);
uno
::
Reference
<
msforms
::
XControl
>
xVBAControl
(
aFac
.
createControl
(
xDialogControl
->
getModel
()
)
);
ScVbaControl
*
pControl
=
dynamic_cast
<
ScVbaControl
*
>
(
xVBAControl
.
get
()
);
pControl
->
setGeometryHelper
(
new
UserFormGeometryHelper
(
mxContext
,
xControl
)
);
return
uno
::
makeAny
(
xVBAControl
);
uno
::
Any
aResult
;
// in case the dialog is already closed the VBA implementation should not throw exceptions
if
(
m_xDialog
.
is
()
)
{
uno
::
Reference
<
awt
::
XControl
>
xDialogControl
(
m_xDialog
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
awt
::
XControlContainer
>
xContainer
(
m_xDialog
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
awt
::
XControl
>
xControl
=
xContainer
->
getControl
(
aPropertyName
);
ScVbaControlFactory
aFac
(
mxContext
,
xControl
,
m_xModel
);
uno
::
Reference
<
msforms
::
XControl
>
xVBAControl
(
aFac
.
createControl
(
xDialogControl
->
getModel
()
)
);
ScVbaControl
*
pControl
=
dynamic_cast
<
ScVbaControl
*
>
(
xVBAControl
.
get
()
);
pControl
->
setGeometryHelper
(
new
UserFormGeometryHelper
(
mxContext
,
xControl
)
);
aResult
=
uno
::
makeAny
(
xVBAControl
);
}
return
aResult
;
}
::
sal_Bool
SAL_CALL
...
...
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