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
8302495a
Kaydet (Commit)
8302495a
authored
Ara 02, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
store internal CONVERT to .xlsx/.xls and distinguish from CONVERT_ADD
Change-Id: Ie9b5f6ade1c25618aa990ce17bd7b2a2b46a250a
üst
f8991401
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
core_resource.src
formula/source/core/resource/core_resource.src
+1
-1
xlformula.cxx
sc/source/filter/excel/xlformula.cxx
+14
-0
formulabase.cxx
sc/source/filter/oox/formulabase.cxx
+4
-2
No files found.
formula/source/core/resource/core_resource.src
Dosyayı görüntüle @
8302495a
...
...
@@ -739,7 +739,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML
String SC_OPCODE_DDE { Text = "DDE" ; };
String SC_OPCODE_BASE { Text = "_xlfn.BASE" ; };
String SC_OPCODE_DECIMAL { Text = "_xlfn.DECIMAL" ; };
String SC_OPCODE_CONVERT { Text = "CONVERT" ; };
String SC_OPCODE_CONVERT { Text = "
_xlfn.ORG.OPENOFFICE.
CONVERT" ; };
String SC_OPCODE_ROMAN { Text = "ROMAN" ; };
String SC_OPCODE_ARABIC { Text = "_xlfn.ARABIC" ; };
String SC_OPCODE_HYPERLINK { Text = "HYPERLINK" ; };
...
...
sc/source/filter/excel/xlformula.cxx
Dosyayı görüntüle @
8302495a
...
...
@@ -549,6 +549,19 @@ static const XclFunctionInfo saFuncTable_Odf[] =
#undef EXC_FUNCENTRY_ODF
#define EXC_FUNCENTRY_OOO( opcode, minparam, maxparam, flags, asciiname ) \
{ opcode, NOID, minparam, maxparam, V, { VR }, EXC_FUNCFLAG_IMPORTONLY|(flags), EXC_FUNCNAME( asciiname ) }, \
{ opcode, 255, (minparam)+1, (maxparam)+1, V, { RO_E, RO }, EXC_FUNCFLAG_EXPORTONLY|(flags), EXC_FUNCNAME( asciiname ) }
/** Functions defined by Calc, but not in OpenFormula nor supported by Excel. */
static
const
XclFunctionInfo
saFuncTable_OOoLO
[]
=
{
EXC_FUNCENTRY_OOO
(
ocConvert
,
3
,
3
,
0
,
"ORG.OPENOFFICE.CONVERT"
)
};
#undef EXC_FUNCENTRY_OOO
// ----------------------------------------------------------------------------
XclFunctionProvider
::
XclFunctionProvider
(
const
XclRoot
&
rRoot
)
...
...
@@ -574,6 +587,7 @@ XclFunctionProvider::XclFunctionProvider( const XclRoot& rRoot )
(
this
->*
pFillFunc
)(
saFuncTable_2010
,
STATIC_ARRAY_END
(
saFuncTable_2010
)
);
(
this
->*
pFillFunc
)(
saFuncTable_2013
,
STATIC_ARRAY_END
(
saFuncTable_2013
)
);
(
this
->*
pFillFunc
)(
saFuncTable_Odf
,
STATIC_ARRAY_END
(
saFuncTable_Odf
)
);
(
this
->*
pFillFunc
)(
saFuncTable_OOoLO
,
STATIC_ARRAY_END
(
saFuncTable_OOoLO
)
);
}
const
XclFunctionInfo
*
XclFunctionProvider
::
GetFuncInfoFromXclFunc
(
sal_uInt16
nXclFunc
)
const
...
...
sc/source/filter/oox/formulabase.cxx
Dosyayı görüntüle @
8302495a
...
...
@@ -198,7 +198,7 @@ const sal_uInt16 FUNCFLAG_VOLATILE = 0x0001; /// Result is volatile (
const
sal_uInt16
FUNCFLAG_IMPORTONLY
=
0x0002
;
/// Only used in import filter.
const
sal_uInt16
FUNCFLAG_EXPORTONLY
=
0x0004
;
/// Only used in export filter.
const
sal_uInt16
FUNCFLAG_MACROCALL
=
0x0008
;
/// Function is stored as macro call in Excel (_xlfn. prefix). OOXML name MUST exist.
const
sal_uInt16
FUNCFLAG_MACROCALLODF
=
0x0010
;
/// ODF-only function stored as macro call in Excel (_xlfnodf. prefix). ODF name MUST exist.
const
sal_uInt16
FUNCFLAG_MACROCALLODF
=
0x0010
;
/// ODF-only function stored as macro call in
BIFF
Excel (_xlfnodf. prefix). ODF name MUST exist.
const
sal_uInt16
FUNCFLAG_EXTERNAL
=
0x0020
;
/// Function is external in Calc.
const
sal_uInt16
FUNCFLAG_MACROFUNC
=
0x0040
;
/// Function is a macro-sheet function.
const
sal_uInt16
FUNCFLAG_MACROCMD
=
0x0080
;
/// Function is a macro-sheet command.
...
...
@@ -888,7 +888,9 @@ static const FunctionData saFuncTableOOoLO[] =
{
"ORG.OPENOFFICE.DAYSINMONTH"
,
"COM.SUN.STAR.SHEET.ADDIN.DATEFUNCTIONS.GETDAYSINMONTH"
,
NOID
,
NOID
,
1
,
1
,
V
,
{
VR
},
FUNCFLAG_IMPORTONLY
|
FUNCFLAG_EXTERNAL
},
{
"ORG.OPENOFFICE.DAYSINYEAR"
,
"COM.SUN.STAR.SHEET.ADDIN.DATEFUNCTIONS.GETDAYSINYEAR"
,
NOID
,
NOID
,
1
,
1
,
V
,
{
VR
},
FUNCFLAG_IMPORTONLY
|
FUNCFLAG_EXTERNAL
},
{
"ORG.OPENOFFICE.WEEKSINYEAR"
,
"COM.SUN.STAR.SHEET.ADDIN.DATEFUNCTIONS.GETWEEKSINYEAR"
,
NOID
,
NOID
,
1
,
1
,
V
,
{
VR
},
FUNCFLAG_IMPORTONLY
|
FUNCFLAG_EXTERNAL
},
{
"ORG.OPENOFFICE.ROT13"
,
"COM.SUN.STAR.SHEET.ADDIN.DATEFUNCTIONS.GETROT13"
,
NOID
,
NOID
,
1
,
1
,
V
,
{
VR
},
FUNCFLAG_IMPORTONLY
|
FUNCFLAG_EXTERNAL
}
{
"ORG.OPENOFFICE.ROT13"
,
"COM.SUN.STAR.SHEET.ADDIN.DATEFUNCTIONS.GETROT13"
,
NOID
,
NOID
,
1
,
1
,
V
,
{
VR
},
FUNCFLAG_IMPORTONLY
|
FUNCFLAG_EXTERNAL
},
// Other functions.
{
"ORG.OPENOFFICE.CONVERT"
,
"ORG.OPENOFFICE.CONVERT"
,
NOID
,
NOID
,
3
,
3
,
V
,
{
VR
},
FUNCFLAG_MACROCALL_NEW
}
};
// ----------------------------------------------------------------------------
...
...
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