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
f2cf3f30
Kaydet (Commit)
f2cf3f30
authored
Nis 20, 2012
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vba api Application.DisplayScrollBars implementation bnc#757840
üst
4fa65f95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
XApplication.idl
oovbaapi/ooo/vba/excel/XApplication.idl
+1
-0
vbaapplication.cxx
sc/source/ui/vba/vbaapplication.cxx
+21
-0
vbaapplication.hxx
sc/source/ui/vba/vbaapplication.hxx
+2
-0
No files found.
oovbaapi/ooo/vba/excel/XApplication.idl
Dosyayı görüntüle @
f2cf3f30
...
...
@@ -75,6 +75,7 @@ interface XApplication
[
attribute
]
boolean
Iteration
;
[
attribute
]
long
EnableCancelKey
;
[
attribute
]
boolean
DisplayFullScreen
;
[
attribute
]
boolean
DisplayScrollBars
;
void
setDefaultFilePath
(
[
in
]
string
DefaultFilePath
)
raises
(
com
::
sun
::
star
::
script
::
BasicErrorException
)
;
...
...
sc/source/ui/vba/vbaapplication.cxx
Dosyayı görüntüle @
f2cf3f30
...
...
@@ -894,6 +894,27 @@ ScVbaApplication::setDisplayFullScreen( sal_Bool bSet ) throw (uno::RuntimeExce
dispatchRequests
(
getCurrentDocument
(),
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
".uno:FullScreen"
)
)
);
}
sal_Bool
SAL_CALL
ScVbaApplication
::
getDisplayScrollBars
()
throw
(
uno
::
RuntimeException
)
{
ScTabViewShell
*
pShell
=
excel
::
getCurrentBestViewShell
(
mxContext
);
if
(
pShell
)
{
return
(
pShell
->
GetViewData
()
->
IsHScrollMode
()
&&
pShell
->
GetViewData
()
->
IsVScrollMode
()
);
}
return
true
;
}
void
SAL_CALL
ScVbaApplication
::
setDisplayScrollBars
(
sal_Bool
bSet
)
throw
(
uno
::
RuntimeException
)
{
// use uno here as it does all he repainting etc. magic
uno
::
Reference
<
sheet
::
XSpreadsheetView
>
xView
(
getCurrentDocument
()
->
getCurrentController
(),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xProps
(
xView
,
uno
::
UNO_QUERY
);
xProps
->
setPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HasVerticalScrollBar"
)
),
uno
::
makeAny
(
bSet
)
);
xProps
->
setPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"HasHorizontalScrollBar"
)
),
uno
::
makeAny
(
bSet
)
);
}
sal_Bool
SAL_CALL
ScVbaApplication
::
getVisible
()
throw
(
uno
::
RuntimeException
)
{
...
...
sc/source/ui/vba/vbaapplication.hxx
Dosyayı görüntüle @
f2cf3f30
...
...
@@ -124,6 +124,8 @@ public:
virtual
sal_Bool
SAL_CALL
getDisplayFullScreen
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setDisplayFullScreen
(
sal_Bool
bSet
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getDisplayScrollBars
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setDisplayScrollBars
(
sal_Bool
bSet
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
Windows
(
const
css
::
uno
::
Any
&
aIndex
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
wait
(
double
time
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
Range
(
const
css
::
uno
::
Any
&
Cell1
,
const
css
::
uno
::
Any
&
Cell2
)
throw
(
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