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
a667ce82
Kaydet (Commit)
a667ce82
authored
May 03, 2013
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
stub implementation(s) for Application EnableCancelKey & International
Change-Id: I810897b3981390fc39e59d9c8a4c0095547a407a
üst
ea558e4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
XApplication.idl
oovbaapi/ooo/vba/excel/XApplication.idl
+2
-1
vbaapplication.cxx
sc/source/ui/vba/vbaapplication.cxx
+25
-1
vbaapplication.hxx
sc/source/ui/vba/vbaapplication.hxx
+3
-0
No files found.
oovbaapi/ooo/vba/excel/XApplication.idl
Dosyayı görüntüle @
a667ce82
...
...
@@ -56,6 +56,7 @@ interface XApplication
[
attribute
]
any
StatusBar
;
[
attribute
]
long
Cursor
;
[
attribute
]
boolean
EnableEvents
;
[
attribute
]
boolean
EnableCancelKey
;
[
attribute
]
boolean
DisplayFullScreen
;
[
attribute
]
boolean
DisplayScrollBars
;
[
attribute
]
boolean
DisplayExcel4Menus
;
...
...
@@ -70,7 +71,7 @@ interface XApplication
string
getDefaultFilePath
()
raises
(
com
::
sun
::
star
::
script
::
BasicErrorException
)
;
//
any
CommandBars
(
[
in
]
any
Index
)
;
any
International
(
[
in
]
long
Index
)
;
any
Workbooks
(
[
in
]
any
Index
)
;
any
Worksheets
(
[
in
]
any
Index
)
;
any
Windows
(
[
in
]
any
Index
)
;
...
...
sc/source/ui/vba/vbaapplication.cxx
Dosyayı görüntüle @
a667ce82
...
...
@@ -117,6 +117,7 @@ struct ScVbaAppSettings
sal_Bool
mbExcel4Menus
;
sal_Bool
mbDisplayNoteIndicator
;
sal_Bool
mbShowWindowsInTaskbar
;
sal_Bool
mbEnableCancelKey
;
explicit
ScVbaAppSettings
();
};
...
...
@@ -126,7 +127,8 @@ ScVbaAppSettings::ScVbaAppSettings() :
mbEnableEvents
(
sal_True
),
mbExcel4Menus
(
sal_False
),
mbDisplayNoteIndicator
(
sal_True
),
mbShowWindowsInTaskbar
(
sal_True
)
mbShowWindowsInTaskbar
(
sal_True
),
mbEnableCancelKey
(
sal_False
)
{
}
...
...
@@ -324,6 +326,15 @@ ScVbaApplication::getActiveCell() throw (uno::RuntimeException )
return
new
ScVbaRange
(
excel
::
getUnoSheetModuleObj
(
xRange
),
mxContext
,
xRange
->
getCellRangeByPosition
(
nCursorX
,
nCursorY
,
nCursorX
,
nCursorY
)
);
}
uno
::
Any
SAL_CALL
ScVbaApplication
::
International
(
sal_Int32
Index
)
throw
(
uno
::
RuntimeException
)
{
// complete stub for now
// #TODO flesh out some of the Indices we could handle
uno
::
Any
aRet
;
return
aRet
;
}
uno
::
Any
SAL_CALL
ScVbaApplication
::
Workbooks
(
const
uno
::
Any
&
aIndex
)
throw
(
uno
::
RuntimeException
)
{
...
...
@@ -742,6 +753,19 @@ ScVbaApplication::getEnableEvents() throw (uno::RuntimeException)
return
mrAppSettings
.
mbEnableEvents
;
}
void
SAL_CALL
ScVbaApplication
::
setEnableCancelKey
(
sal_Bool
bEnable
)
throw
(
uno
::
RuntimeException
)
{
// Stub, does nothing
mrAppSettings
.
mbEnableCancelKey
=
bEnable
;
}
sal_Bool
SAL_CALL
ScVbaApplication
::
getEnableCancelKey
()
throw
(
uno
::
RuntimeException
)
{
return
mrAppSettings
.
mbEnableCancelKey
;
}
sal_Bool
SAL_CALL
ScVbaApplication
::
getDisplayFullScreen
()
throw
(
uno
::
RuntimeException
)
{
...
...
sc/source/ui/vba/vbaapplication.hxx
Dosyayı görüntüle @
a667ce82
...
...
@@ -85,6 +85,7 @@ public:
virtual
css
::
uno
::
Reference
<
ov
::
XAssistant
>
SAL_CALL
getAssistant
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Reference
<
ov
::
excel
::
XWorkbook
>
SAL_CALL
getThisWorkbook
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
International
(
sal_Int32
Index
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
Workbooks
(
const
css
::
uno
::
Any
&
aIndex
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
Worksheets
(
const
css
::
uno
::
Any
&
aIndex
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
WorksheetFunction
(
)
throw
(
css
::
uno
::
RuntimeException
);
...
...
@@ -99,6 +100,8 @@ public:
virtual
void
SAL_CALL
OnKey
(
const
OUString
&
Key
,
const
css
::
uno
::
Any
&
Procedure
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getEnableEvents
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setEnableEvents
(
sal_Bool
bEnable
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getEnableCancelKey
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setEnableCancelKey
(
sal_Bool
bEnable
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
getDisplayFullScreen
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setDisplayFullScreen
(
sal_Bool
bSet
)
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