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
ba897375
Kaydet (Commit)
ba897375
authored
Kas 23, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Let's throw out-of-bound exception on out-of-bound destination position.
üst
2ee55872
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
XSpreadsheets2.idl
offapi/com/sun/star/sheet/XSpreadsheets2.idl
+2
-2
docuno.hxx
sc/inc/docuno.hxx
+3
-1
docuno.cxx
sc/source/ui/unoobj/docuno.cxx
+4
-4
No files found.
offapi/com/sun/star/sheet/XSpreadsheets2.idl
Dosyayı görüntüle @
ba897375
...
...
@@ -27,7 +27,7 @@
#
include
<
com
/
sun
/
star
/
sheet
/
XSpreadsheets
.
idl>
#
include
<
com
/
sun
/
star
/
sheet
/
XSpreadsheetDocument
.
idl>
#
include
<
com
/
sun
/
star
/
lang
/
IllegalArgumentException
.
idl>
#
include
<
com
/
sun
/
star
/
uno
/
Runtime
Exception
.
idl>
#
include
<
com
/
sun
/
star
/
lang
/
IndexOutOfBounds
Exception
.
idl>
//=============================================================================
...
...
@@ -64,7 +64,7 @@ interface XSpreadsheets2: com::sun::star::sheet::XSpreadsheets
[
in
]
string
srcName
,
[
in
]
long
nDestPosition
)
raises
(
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
com
::
sun
::
star
::
uno
::
Runtime
Exception
)
;
com
::
sun
::
star
::
lang
::
IndexOutOfBounds
Exception
)
;
}
;
//=============================================================================
...
...
sc/inc/docuno.hxx
Dosyayı görüntüle @
ba897375
...
...
@@ -406,7 +406,9 @@ public:
::
com
::
sun
::
star
::
sheet
::
XSpreadsheetDocument
>
&
xDocSrc
,
const
rtl
::
OUString
&
srcName
,
const
sal_Int32
nDestPosition
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
IndexOutOfBoundsException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XCellRangesAccess
...
...
sc/source/ui/unoobj/docuno.cxx
Dosyayı görüntüle @
ba897375
...
...
@@ -2632,7 +2632,7 @@ void SAL_CALL ScTableSheetsObj::removeByName( const rtl::OUString& aName )
sal_Int32
ScTableSheetsObj
::
importSheet
(
const
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
&
xDocSrc
,
const
rtl
::
OUString
&
srcName
,
const
sal_Int32
nDestPosition
)
throw
(
lang
::
IllegalArgumentException
,
uno
::
RuntimeException
)
throw
(
lang
::
IllegalArgumentException
,
lang
::
IndexOutOfBoundsException
,
uno
::
RuntimeException
)
{
//pDocShell is the destination
ScDocument
*
pDocDest
=
pDocShell
->
GetDocument
();
...
...
@@ -2655,11 +2655,11 @@ sal_Int32 ScTableSheetsObj::importSheet(
SCTAB
nCount
=
pDocDest
->
GetTableCount
();
nIndexDest
=
static_cast
<
SCTAB
>
(
nDestPosition
);
if
(
nIndexDest
>
nCount
)
nIndexDest
=
nCount
;
throw
lang
::
IndexOutOfBoundsException
()
;
// control nDestPosition > 0
if
(
nIndexDest
<
0
)
nIndexDest
=
0
;
if
(
nIndexDest
<
0
)
throw
lang
::
IndexOutOfBoundsException
()
;
// Transfert Tab
bool
bInsertNew
=
true
;
...
...
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