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
4d1e0ea9
Kaydet (Commit)
4d1e0ea9
authored
Nis 24, 2013
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
support UserForm.Visible attribute
Change-Id: I6e5a9d3e7908349a76a73a79b3b1319b44e1e3aa
üst
a7cc0fae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
vbauserform.cxx
vbahelper/source/msforms/vbauserform.cxx
+18
-0
vbauserform.hxx
vbahelper/source/msforms/vbauserform.hxx
+2
-0
No files found.
vbahelper/source/msforms/vbauserform.cxx
Dosyayı görüntüle @
4d1e0ea9
...
...
@@ -20,6 +20,7 @@
#include "vbauserform.hxx"
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/awt/XControlContainer.hpp>
#include <com/sun/star/awt/XWindow2.hpp>
#include <com/sun/star/awt/PosSize.hpp>
#include <com/sun/star/beans/PropertyConcept.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
...
...
@@ -112,6 +113,23 @@ ScVbaUserForm::setCaption( const OUString& _caption ) throw (uno::RuntimeExcepti
m_xProps
->
setPropertyValue
(
"Title"
,
uno
::
makeAny
(
_caption
)
);
}
sal_Bool
SAL_CALL
ScVbaUserForm
::
getVisible
()
throw
(
uno
::
RuntimeException
)
{
uno
::
Reference
<
awt
::
XControl
>
xControl
(
m_xDialog
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
awt
::
XWindow2
>
xControlWindow
(
xControl
->
getPeer
(),
uno
::
UNO_QUERY_THROW
);
return
xControlWindow
->
isVisible
();
}
void
SAL_CALL
ScVbaUserForm
::
setVisible
(
sal_Bool
bVis
)
throw
(
uno
::
RuntimeException
)
{
if
(
bVis
)
Show
();
else
Hide
();
}
double
SAL_CALL
ScVbaUserForm
::
getInnerWidth
()
throw
(
uno
::
RuntimeException
)
{
return
mpGeometryHelper
->
getInnerWidth
();
...
...
vbahelper/source/msforms/vbauserform.hxx
Dosyayı görüntüle @
4d1e0ea9
...
...
@@ -56,6 +56,8 @@ public:
virtual
void
SAL_CALL
Hide
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
UnloadObject
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
Controls
(
const
css
::
uno
::
Any
&
index
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getVisible
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setVisible
(
sal_Bool
bVis
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XIntrospection
virtual
css
::
uno
::
Reference
<
css
::
beans
::
XIntrospectionAccess
>
SAL_CALL
getIntrospection
(
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
invoke
(
const
OUString
&
aFunctionName
,
const
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
aParams
,
css
::
uno
::
Sequence
<
::
sal_Int16
>&
aOutParamIndex
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>&
aOutParam
)
throw
(
css
::
lang
::
IllegalArgumentException
,
css
::
script
::
CannotConvertException
,
css
::
reflection
::
InvocationTargetException
,
css
::
uno
::
RuntimeException
);
...
...
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