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
9ee481cc
Kaydet (Commit)
9ee481cc
authored
Haz 28, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
kill ugly GetDataSequence, now unused
Change-Id: Ib72d52c8641b9edfbc534a490fc27d20ff17f349
üst
91dd43a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
76 deletions
+0
-76
unotbl.hxx
sw/inc/unotbl.hxx
+0
-8
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+0
-68
No files found.
sw/inc/unotbl.hxx
Dosyayı görüntüle @
9ee481cc
...
@@ -543,14 +543,6 @@ public:
...
@@ -543,14 +543,6 @@ public:
sal_uInt16
getColumnCount
();
sal_uInt16
getColumnCount
();
const
SwUnoCrsr
*
GetTableCrsr
()
const
;
const
SwUnoCrsr
*
GetTableCrsr
()
const
;
// for SwChartDataSequence
void
GetDataSequence
(
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>
*
pAnySeq
,
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
*
pTextSeq
,
::
com
::
sun
::
star
::
uno
::
Sequence
<
double
>
*
pDblSeq
,
bool
bForceNumberResults
=
false
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
);
};
};
class
SwXTableRows
SAL_FINAL
:
public
cppu
::
WeakImplHelper
class
SwXTableRows
SAL_FINAL
:
public
cppu
::
WeakImplHelper
...
...
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
9ee481cc
...
@@ -3490,75 +3490,7 @@ void SwXCellRange::addVetoableChangeListener(const OUString& /*PropertyName*/, c
...
@@ -3490,75 +3490,7 @@ void SwXCellRange::addVetoableChangeListener(const OUString& /*PropertyName*/, c
void
SwXCellRange
::
removeVetoableChangeListener
(
const
OUString
&
/*PropertyName*/
,
const
uno
::
Reference
<
beans
::
XVetoableChangeListener
>
&
/*aListener*/
)
throw
(
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
,
std
::
exception
)
void
SwXCellRange
::
removeVetoableChangeListener
(
const
OUString
&
/*PropertyName*/
,
const
uno
::
Reference
<
beans
::
XVetoableChangeListener
>
&
/*aListener*/
)
throw
(
beans
::
UnknownPropertyException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
,
std
::
exception
)
{
throw
uno
::
RuntimeException
(
"Not implemented"
,
static_cast
<
cppu
::
OWeakObject
*>
(
this
));
}
{
throw
uno
::
RuntimeException
(
"Not implemented"
,
static_cast
<
cppu
::
OWeakObject
*>
(
this
));
}
void
SwXCellRange
::
GetDataSequence
(
uno
::
Sequence
<
uno
::
Any
>
*
pAnySeq
,
//-> first pointer != 0 is used
uno
::
Sequence
<
OUString
>
*
pTextSeq
,
//-> as output sequence
uno
::
Sequence
<
double
>
*
pDblSeq
,
//-> (previous data gets overwritten)
bool
bForceNumberResults
)
//-> when 'true' requires to make an
// extra effort to return a value different
// from 0 even if the cell is formatted to text
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
SolarMutexGuard
aGuard
;
// compare to SwXCellRange::getDataArray (note different return types though)
const
sal_Int32
nRowCount
=
getRowCount
();
const
sal_Int32
nColCount
=
getColumnCount
();
if
(
!
nRowCount
||
!
nColCount
)
{
uno
::
RuntimeException
aRuntime
;
aRuntime
.
Message
=
"Table too complex"
;
throw
aRuntime
;
}
const
size_t
nSize
=
static_cast
<
size_t
>
(
nRowCount
)
*
static_cast
<
size_t
>
(
nColCount
);
OUString
*
pTextData
(
nullptr
);
if
(
pAnySeq
||
pDblSeq
)
{
assert
(
false
);
}
else
if
(
pTextSeq
)
{
pTextSeq
->
realloc
(
nSize
);
pTextData
=
pTextSeq
->
getArray
();
}
else
{
OSL_FAIL
(
"argument missing"
);
return
;
}
size_t
nDtaCnt
=
0
;
SwFrameFormat
*
pFormat
=
GetFrameFormat
();
if
(
!
pFormat
)
return
;
double
fNan
;
::
rtl
::
math
::
setNan
(
&
fNan
);
uno
::
Reference
<
table
::
XCell
>
xCellRef
;
for
(
sal_Int32
nRow
=
0
;
nRow
<
nRowCount
;
++
nRow
)
{
for
(
sal_Int32
nCol
=
0
;
nCol
<
nColCount
;
++
nCol
)
{
SwXCell
*
pXCell
=
lcl_CreateXCell
(
pFormat
,
aRgDesc
.
nLeft
+
nCol
,
aRgDesc
.
nTop
+
nRow
);
//! keep (additional) reference to object to prevent implicit destruction
//! in following UNO calls (when object will get referenced)
xCellRef
=
pXCell
;
SwTableBox
*
pBox
=
pXCell
?
pXCell
->
GetTableBox
()
:
0
;
if
(
!
pBox
)
throw
uno
::
RuntimeException
();
pTextData
[
nDtaCnt
++
]
=
pXCell
->
getString
();
}
}
assert
(
nDtaCnt
==
nSize
);
}
///@see SwXCellRange::getData
///@see SwXCellRange::getData
///@see SwXCellRange::GetDataSequence
uno
::
Sequence
<
uno
::
Sequence
<
uno
::
Any
>
>
SAL_CALL
SwXCellRange
::
getDataArray
()
uno
::
Sequence
<
uno
::
Sequence
<
uno
::
Any
>
>
SAL_CALL
SwXCellRange
::
getDataArray
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
...
...
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