[Libreoffice-commits] core.git: formula/source scaddins/source sc/qa sc/source

Eike Rathke erack at redhat.com
Wed Aug 3 15:09:33 UTC 2016


 formula/source/core/resource/core_resource.src |    8 ++++----
 sc/qa/unit/ucalc.cxx                           |    2 +-
 sc/source/core/tool/odffmap.cxx                |    2 +-
 scaddins/source/analysis/analysishelper.cxx    |    2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit dbbab7b1b0c2c1c43cc52b620212fb29c7b99bff
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Aug 3 17:08:13 2016 +0200

    UI rename DURATION to PDURATION, DURATION_ADD to DURATION, tdf#50488 related
    
    Change-Id: I7ba783b59a711fc9c9d6bbe68dcf8c3c1a0d409d

diff --git a/formula/source/core/resource/core_resource.src b/formula/source/core/resource/core_resource.src
index d8cd84f..d130204 100644
--- a/formula/source/core/resource/core_resource.src
+++ b/formula/source/core/resource/core_resource.src
@@ -1106,7 +1106,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_PODF
     String SC_OPCODE_DDB { Text = "DDB" ; };
     String SC_OPCODE_DB { Text = "DB" ; };
     String SC_OPCODE_VBD { Text = "VDB" ; };
-    String SC_OPCODE_PDURATION { Text = "DURATION" ; };
+    String SC_OPCODE_PDURATION { Text = "DURATION" ; };     // wrong but ODF1.1, keep it.
     String SC_OPCODE_SLN { Text = "SLN" ; };
     String SC_OPCODE_PMT { Text = "PMT" ; };
     String SC_OPCODE_COLUMNS { Text = "COLUMNS" ; };
@@ -1548,7 +1548,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_API
     String SC_OPCODE_DDB { Text = "DDB" ; };
     String SC_OPCODE_DB { Text = "DB" ; };
     String SC_OPCODE_VBD { Text = "VDB" ; };
-    String SC_OPCODE_PDURATION { Text = "DURATION" ; };
+    String SC_OPCODE_PDURATION { Text = "DURATION" ; };     /* TODO: wrong but API, change? */
     String SC_OPCODE_SLN { Text = "SLN" ; };
     String SC_OPCODE_PMT { Text = "PMT" ; };
     String SC_OPCODE_COLUMNS { Text = "COLUMNS" ; };
@@ -1989,7 +1989,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH
     String SC_OPCODE_DDB { Text = "DDB" ; };
     String SC_OPCODE_DB { Text = "DB" ; };
     String SC_OPCODE_VBD { Text = "VDB" ; };
-    String SC_OPCODE_PDURATION { Text = "DURATION" ; };
+    String SC_OPCODE_PDURATION { Text = "PDURATION" ; };
     String SC_OPCODE_SLN { Text = "SLN" ; };
     String SC_OPCODE_PMT { Text = "PMT" ; };
     String SC_OPCODE_COLUMNS { Text = "COLUMNS" ; };
@@ -2969,7 +2969,7 @@ Resource RID_STRLIST_FUNCTION_NAMES
     };
     String SC_OPCODE_PDURATION
     {
-        Text [ en-US ] = "DURATION" ;
+        Text [ en-US ] = "PDURATION" ;
     };
     String SC_OPCODE_SLN
     {
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 387914a..5d3d663 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -2125,7 +2125,6 @@ void Test::testFunctionLists()
         "CUMPRINC",
         "DB",
         "DDB",
-        "DURATION",
         "EFFECT",
         "FV",
         "IPMT",
@@ -2139,6 +2138,7 @@ void Test::testFunctionLists()
         "OPT_PROB_HIT",
         "OPT_PROB_INMONEY",
         "OPT_TOUCH",
+        "PDURATION",
         "PMT",
         "PPMT",
         "PV",
diff --git a/sc/source/core/tool/odffmap.cxx b/sc/source/core/tool/odffmap.cxx
index d0a62cd..3f66859 100644
--- a/sc/source/core/tool/odffmap.cxx
+++ b/sc/source/core/tool/odffmap.cxx
@@ -102,7 +102,7 @@ ScCompiler::AddInMap ScCompiler::maAddInMap[] =
     { "ACCRINTM", "ACCRINTM", "com.sun.star.sheet.addin.Analysis.getAccrintm", "COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETACCRINTM" },
     { "RECEIVED", "RECEIVED", "com.sun.star.sheet.addin.Analysis.getReceived", "COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETRECEIVED" },
     { "DISC", "DISC", "com.sun.star.sheet.addin.Analysis.getDisc", "COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETDISC" },
-    { "DURATION", "DURATION_ADD", "com.sun.star.sheet.addin.Analysis.getDuration", "COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETDURATION" },
+    { "DURATION", "DURATION", "com.sun.star.sheet.addin.Analysis.getDuration", "COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETDURATION" },
     { "EFFECT", "EFFECT_ADD", "com.sun.star.sheet.addin.Analysis.getEffect", "COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETEFFECT" },
     { "CUMPRINC", "CUMPRINC_ADD", "com.sun.star.sheet.addin.Analysis.getCumprinc", "COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETCUMPRINC" },
     { "CUMIPMT", "CUMIPMT_ADD", "com.sun.star.sheet.addin.Analysis.getCumipmt", "COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETCUMIPMT" },
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 992abfd..ea8da0c 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -120,7 +120,7 @@ const FuncDataBase pFuncDatas[] =
     FUNCDATA( Accrintm,         UNIQUE,     INTPAR,     5,          FDCat_Finance ),
     FUNCDATA( Received,         UNIQUE,     INTPAR,     5,          FDCat_Finance ),
     FUNCDATA( Disc,             UNIQUE,     INTPAR,     5,          FDCat_Finance ),
-    FUNCDATA( Duration,         DOUBLE,     INTPAR,     6,          FDCat_Finance ),
+    FUNCDATA( Duration,         UNIQUE,     INTPAR,     6,          FDCat_Finance ),
     FUNCDATA( Effect,           DOUBLE,     STDPAR,     2,          FDCat_Finance ),
     FUNCDATA( Cumprinc,         DOUBLE,     STDPAR,     6,          FDCat_Finance ),
     FUNCDATA( Cumipmt,          DOUBLE,     STDPAR,     6,          FDCat_Finance ),


More information about the Libreoffice-commits mailing list