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
6bda3610
Kaydet (Commit)
6bda3610
authored
Mar 23, 2011
tarafından
Katarina Machalkova
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed binary import/export of formulas
(related to row limit++ changes - bnc#504623, fdo#32106)
üst
6318254d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
xeformula.cxx
sc/source/filter/excel/xeformula.cxx
+12
-10
No files found.
sc/source/filter/excel/xeformula.cxx
Dosyayı görüntüle @
6bda3610
...
@@ -490,7 +490,7 @@ private:
...
@@ -490,7 +490,7 @@ private:
const
SCsCOL
mnMaxScCol
;
/// Maximum column index in Calc itself.
const
SCsCOL
mnMaxScCol
;
/// Maximum column index in Calc itself.
const
SCsROW
mnMaxScRow
;
/// Maximum row index in Calc itself.
const
SCsROW
mnMaxScRow
;
/// Maximum row index in Calc itself.
const
sal_uInt16
mnMaxColMask
;
/// Mask to delete invalid bits in column fields.
const
sal_uInt16
mnMaxColMask
;
/// Mask to delete invalid bits in column fields.
const
sal_uInt
16
mnMaxRowMask
;
/// Mask to delete invalid bits in row fields.
const
sal_uInt
32
mnMaxRowMask
;
/// Mask to delete invalid bits in row fields.
};
};
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
...
@@ -504,7 +504,7 @@ XclExpFmlaCompImpl::XclExpFmlaCompImpl( const XclExpRoot& rRoot ) :
...
@@ -504,7 +504,7 @@ XclExpFmlaCompImpl::XclExpFmlaCompImpl( const XclExpRoot& rRoot ) :
mnMaxScCol
(
static_cast
<
SCsCOL
>
(
rRoot
.
GetScMaxPos
().
Col
()
)
),
mnMaxScCol
(
static_cast
<
SCsCOL
>
(
rRoot
.
GetScMaxPos
().
Col
()
)
),
mnMaxScRow
(
static_cast
<
SCsROW
>
(
rRoot
.
GetScMaxPos
().
Row
()
)
),
mnMaxScRow
(
static_cast
<
SCsROW
>
(
rRoot
.
GetScMaxPos
().
Row
()
)
),
mnMaxColMask
(
static_cast
<
sal_uInt16
>
(
rRoot
.
GetXclMaxPos
().
Col
()
)
),
mnMaxColMask
(
static_cast
<
sal_uInt16
>
(
rRoot
.
GetXclMaxPos
().
Col
()
)
),
mnMaxRowMask
(
static_cast
<
sal_uInt
16
>
(
rRoot
.
GetXclMaxPos
().
Row
()
)
)
mnMaxRowMask
(
static_cast
<
sal_uInt
32
>
(
rRoot
.
GetXclMaxPos
().
Row
()
)
)
{
{
// build the configuration map
// build the configuration map
for
(
const
XclExpCompConfig
*
pEntry
=
spConfigTable
;
pEntry
!=
STATIC_TABLE_END
(
spConfigTable
);
++
pEntry
)
for
(
const
XclExpCompConfig
*
pEntry
=
spConfigTable
;
pEntry
!=
STATIC_TABLE_END
(
spConfigTable
);
++
pEntry
)
...
@@ -564,7 +564,8 @@ XclTokenArrayRef XclExpFmlaCompImpl::CreateSpecialRefFormula( sal_uInt8 nTokenId
...
@@ -564,7 +564,8 @@ XclTokenArrayRef XclExpFmlaCompImpl::CreateSpecialRefFormula( sal_uInt8 nTokenId
{
{
Init
(
EXC_FMLATYPE_NAME
);
Init
(
EXC_FMLATYPE_NAME
);
AppendOperandTokenId
(
nTokenId
);
AppendOperandTokenId
(
nTokenId
);
Append
(
rXclPos
.
mnRow
);
//Bubli's row limit
Append
(
static_cast
<
sal_uInt16
>
(
rXclPos
.
mnRow
)
);
Append
(
rXclPos
.
mnCol
);
// do not use AppendAddress(), we always need 16-bit column here
Append
(
rXclPos
.
mnCol
);
// do not use AppendAddress(), we always need 16-bit column here
return
CreateTokenArray
();
return
CreateTokenArray
();
}
}
...
@@ -1832,7 +1833,7 @@ void XclExpFmlaCompImpl::ConvertRefData(
...
@@ -1832,7 +1833,7 @@ void XclExpFmlaCompImpl::ConvertRefData(
rXclPos
.
mnCol
=
static_cast
<
sal_uInt16
>
(
nXclRelCol
)
&
mnMaxColMask
;
rXclPos
.
mnCol
=
static_cast
<
sal_uInt16
>
(
nXclRelCol
)
&
mnMaxColMask
;
// convert row index (2-step-cast ScsROW->sal_Int16->sal_uInt16 to get all bits correctly)
// convert row index (2-step-cast ScsROW->sal_Int16->sal_uInt16 to get all bits correctly)
sal_Int16
nXclRelRow
=
static_cast
<
sal_Int
16
>
(
rRefData
.
IsRowRel
()
?
rRefData
.
nRelRow
:
rRefData
.
nRow
);
sal_Int16
nXclRelRow
=
static_cast
<
sal_Int
32
>
(
rRefData
.
IsRowRel
()
?
rRefData
.
nRelRow
:
rRefData
.
nRow
);
rXclPos
.
mnRow
=
static_cast
<
sal_uInt32
>
(
nXclRelRow
)
&
mnMaxRowMask
;
rXclPos
.
mnRow
=
static_cast
<
sal_uInt32
>
(
nXclRelRow
)
&
mnMaxRowMask
;
// resolve relative tab index if possible
// resolve relative tab index if possible
...
@@ -1849,11 +1850,10 @@ void XclExpFmlaCompImpl::ConvertRefData(
...
@@ -1849,11 +1850,10 @@ void XclExpFmlaCompImpl::ConvertRefData(
}
}
else
else
{
{
#if 0 // FIXME : doesn't build in xlsx
//FIXME <=EXC_BIFF5
sal_uInt16& rnRelField =
(meBiff <= EXC_BIFF5) ? rXclPos.mnRow :
rXclPos.mnCol;
sal_uInt16
&
rnRelField
=
rXclPos
.
mnCol
;
::
set_flag
(
rnRelField
,
EXC_TOK_REF_COLREL
,
rRefData
.
IsColRel
()
);
::
set_flag
(
rnRelField
,
EXC_TOK_REF_COLREL
,
rRefData
.
IsColRel
()
);
::
set_flag
(
rnRelField
,
EXC_TOK_REF_ROWREL
,
rRefData
.
IsRowRel
()
);
::
set_flag
(
rnRelField
,
EXC_TOK_REF_ROWREL
,
rRefData
.
IsRowRel
()
);
#endif
}
}
}
}
...
@@ -2236,7 +2236,8 @@ void XclExpFmlaCompImpl::Append( const String& rString )
...
@@ -2236,7 +2236,8 @@ void XclExpFmlaCompImpl::Append( const String& rString )
void
XclExpFmlaCompImpl
::
AppendAddress
(
const
XclAddress
&
rXclPos
)
void
XclExpFmlaCompImpl
::
AppendAddress
(
const
XclAddress
&
rXclPos
)
{
{
Append
(
rXclPos
.
mnRow
);
//Bubli's row limit
Append
(
static_cast
<
sal_uInt16
>
(
rXclPos
.
mnRow
)
);
if
(
meBiff
<=
EXC_BIFF5
)
if
(
meBiff
<=
EXC_BIFF5
)
Append
(
static_cast
<
sal_uInt8
>
(
rXclPos
.
mnCol
)
);
Append
(
static_cast
<
sal_uInt8
>
(
rXclPos
.
mnCol
)
);
else
else
...
@@ -2245,8 +2246,9 @@ void XclExpFmlaCompImpl::AppendAddress( const XclAddress& rXclPos )
...
@@ -2245,8 +2246,9 @@ void XclExpFmlaCompImpl::AppendAddress( const XclAddress& rXclPos )
void
XclExpFmlaCompImpl
::
AppendRange
(
const
XclRange
&
rXclRange
)
void
XclExpFmlaCompImpl
::
AppendRange
(
const
XclRange
&
rXclRange
)
{
{
Append
(
rXclRange
.
maFirst
.
mnRow
);
//Bubli's row limit
Append
(
rXclRange
.
maLast
.
mnRow
);
Append
(
static_cast
<
sal_uInt16
>
(
rXclRange
.
maFirst
.
mnRow
)
);
Append
(
static_cast
<
sal_uInt16
>
(
rXclRange
.
maLast
.
mnRow
)
);
if
(
meBiff
<=
EXC_BIFF5
)
if
(
meBiff
<=
EXC_BIFF5
)
{
{
Append
(
static_cast
<
sal_uInt8
>
(
rXclRange
.
maFirst
.
mnCol
)
);
Append
(
static_cast
<
sal_uInt8
>
(
rXclRange
.
maFirst
.
mnCol
)
);
...
...
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