[Libreoffice-commits] core.git: qadevOOo/objdsc sw/qa

2023-08-24 Thread anfanite396 (via logerrit)
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextField.csv |8 
 sw/qa/api/SwXTextField.cxx   |  114 ++-
 2 files changed, 64 insertions(+), 58 deletions(-)

New commits:
commit 4453918e67a137440432381ef3bb2d03841e55d5
Author: anfanite396 
AuthorDate: Thu Aug 24 16:16:38 2023 +0530
Commit: Tomaž Vajngerl 
CommitDate: Fri Aug 25 08:28:28 2023 +0200

tdf#45904: Move SwXTextField Java tests to C++

Change-Id: I11052e68289507778767df0d69cc8924f394b4f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156047
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextField.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextField.csv
index 647254ff5cbe..e9f43eda6983 100644
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextField.csv
+++ b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextField.csv
@@ -1,9 +1,3 @@
-"SwXTextField";"com::sun::star::lang::XComponent";"dispose()"
-"SwXTextField";"com::sun::star::lang::XComponent";"addEventListener()"
-"SwXTextField";"com::sun::star::lang::XComponent";"removeEventListener()"
-"SwXTextField";"com::sun::star::text::TextContent";"AnchorType#optional"
-"SwXTextField";"com::sun::star::text::TextContent";"AnchorTypes#optional"
-"SwXTextField";"com::sun::star::text::TextContent";"TextWrap#optional"
 "SwXTextField";"com::sun::star::text::XTextField";"getPresentation()"
 
"SwXTextField";"com::sun::star::beans::XPropertySet#optional";"getPropertySetInfo()"
 
"SwXTextField";"com::sun::star::beans::XPropertySet#optional";"setPropertyValue()"
@@ -12,5 +6,3 @@
 
"SwXTextField";"com::sun::star::beans::XPropertySet#optional";"removePropertyChangeListener()"
 
"SwXTextField";"com::sun::star::beans::XPropertySet#optional";"addVetoableChangeListener()"
 
"SwXTextField";"com::sun::star::beans::XPropertySet#optional";"removeVetoableChangeListener()"
-"SwXTextField";"com::sun::star::text::XTextContent";"attach()"
-"SwXTextField";"com::sun::star::text::XTextContent";"getAnchor()"
diff --git a/sw/qa/api/SwXTextField.cxx b/sw/qa/api/SwXTextField.cxx
index 5c8464233131..e22ab89e47b1 100644
--- a/sw/qa/api/SwXTextField.cxx
+++ b/sw/qa/api/SwXTextField.cxx
@@ -7,9 +7,12 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#include 
+#include 
+#include 
 #include 
-#include 
+#include 
+#include 
+#include 
 
 #include 
 
@@ -27,71 +30,82 @@
 
 using namespace css;
 using namespace css::uno;
-using namespace css::beans;
 
 namespace
 {
 /**
  * Initial tests for SwXTextField.
  */
-struct SwXTextField final : public test::BootstrapFixture,
-public unotest::MacrosTest,
-public apitest::XComponent
+struct SwXTextField final : public UnoApiTest,
+public apitest::XPropertySet,
+public apitest::XComponent,
+public apitest::TextContent,
+public apitest::XTextContent,
+public apitest::XTextField
 {
-virtual void setUp() override;
-void tearDown() override;
+SwXTextField()
+: UnoApiTest("")
+, TextContent(text::TextContentAnchorType_AS_CHARACTER,
+  text::TextContentAnchorType_AS_CHARACTER, 
text::WrapTextMode_NONE,
+  text::WrapTextMode_NONE)
+{
+}
+
+virtual void setUp() override
+{
+UnoApiTest::setUp();
+mxDesktop.set(frame::Desktop::create(mxComponentContext));
+mxComponent = loadFromDesktop("private:factory/swriter");
+CPPUNIT_ASSERT(mxComponent.is());
+}
+
+Reference init() override
+{
+Reference xTextDocument(mxComponent, 
UNO_QUERY_THROW);
+Reference xMSF(mxComponent, 
UNO_QUERY_THROW);
+
+Reference xFieldMaster(
+xMSF->createInstance("com.sun.star.text.FieldMaster.Database"), 
UNO_QUERY_THROW);
+
+xFieldMaster->setPropertyValue("DataBaseName", Any(OUString("Address 
Book File")));
+xFieldMaster->setPropertyValue("DataTableName", 
Any(OUString("address")));
+xFieldMaster->setPropertyValue("DataColumnName", 
Any(OUString("FIRSTNAME")));
+
+Reference xField(
+xMSF->createInstance("com.sun.star.text.TextField.Database"), 
UNO_QUERY_THROW);
+xField->attachTextFieldMaster(xFieldMaster);
+
+Reference xText = xTextDocument->getText();
+Reference xCursor = xText->createTextCursor();
+Reference xFieldAsContent(xField, UNO_QUERY_THROW);
+xText->insertTextContent(xCursor, xFieldAsContent, false);
+
+mxTextRange = Reference(xCursor, UNO_QUERY_THROW);
+mxTextContent = Reference(
+xMSF->createInstance("com.sun.star.text.TextField.DateTime"), 
UNO_QUERY_THROW);
+
+return Reference(xField, UNO_QUERY_THROW);
+}
 
-Reference init() override;
-void triggerDesktopTermi

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2020-02-27 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv |2 --
 sc/qa/extras/sctablesheetsobj.cxx|9 
+
 2 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit b9b553f17404ff24aae2be4cda65fa3c0f380985
Author: Jens Carl 
AuthorDate: Wed Feb 26 22:29:01 2020 -0800
Commit: Jens Carl 
CommitDate: Thu Feb 27 22:26:31 2020 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScTableSheetsObj.

Change-Id: Ibc9d7e164e82387159a51568157c1d3b0756bf05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89610
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
index f88b5527bbe4..18c378322001 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
@@ -1,4 +1,2 @@
 "ScTableSheetsObj";"com::sun::star::container::XNameContainer";"insertByName()"
 "ScTableSheetsObj";"com::sun::star::container::XNameContainer";"removeByName()"
-"ScTableSheetsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScTableSheetsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/sctablesheetsobj.cxx 
b/sc/qa/extras/sctablesheetsobj.cxx
index 8b61d3825639..b995a03a78ab 100644
--- a/sc/qa/extras/sctablesheetsobj.cxx
+++ b/sc/qa/extras/sctablesheetsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -15,7 +16,9 @@
 #include 
 #include 
 #include 
+#include 
 
+#include 
 #include 
 
 using namespace css;
@@ -23,6 +26,7 @@ using namespace css::uno;
 
 namespace sc_apitest {
 class ScTableSheetsObj : public CalcUnoApiTest,
+ public ::apitest::XElementAccess,
  public ::apitest::XEnumerationAccess,
  public ::apitest::XIndexAccess,
  public ::apitest::XNameAccess,
@@ -39,6 +43,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScTableSheetsObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
@@ -89,6 +97,7 @@ protected:
 
 ScTableSheetsObj::ScTableSheetsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, ::apitest::XElementAccess(cppu::UnoType::get())
 , ::apitest::XIndexAccess(3)
 , ::apitest::XNameAccess("Sheet1")
 , ::apitest::XNameContainer("Sheet2")
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2020-02-26 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv |2 --
 sc/qa/extras/sctablesheetsobj.cxx|7 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit c6aceaa407faf9950675411cc24d0c156fc7d972
Author: Jens Carl 
AuthorDate: Wed Feb 26 22:22:17 2020 -0800
Commit: Jens Carl 
CommitDate: Thu Feb 27 08:41:47 2020 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScTableSheetsObj.

Change-Id: Idb130a51dc024cebbbc739d15c767f99558a69b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89609
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
index e348d3613059..f88b5527bbe4 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
@@ -1,6 +1,4 @@
 "ScTableSheetsObj";"com::sun::star::container::XNameContainer";"insertByName()"
 "ScTableSheetsObj";"com::sun::star::container::XNameContainer";"removeByName()"
-"ScTableSheetsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScTableSheetsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScTableSheetsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScTableSheetsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/sctablesheetsobj.cxx 
b/sc/qa/extras/sctablesheetsobj.cxx
index 34b1e03cfa90..8b61d3825639 100644
--- a/sc/qa/extras/sctablesheetsobj.cxx
+++ b/sc/qa/extras/sctablesheetsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -23,6 +24,7 @@ using namespace css::uno;
 namespace sc_apitest {
 class ScTableSheetsObj : public CalcUnoApiTest,
  public ::apitest::XEnumerationAccess,
+ public ::apitest::XIndexAccess,
  public ::apitest::XNameAccess,
  public ::apitest::XNameContainer,
  public ::apitest::XNameReplace,
@@ -40,6 +42,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNameAccess
 CPPUNIT_TEST(testGetByName);
 CPPUNIT_TEST(testGetElementNames);
@@ -83,6 +89,7 @@ protected:
 
 ScTableSheetsObj::ScTableSheetsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, ::apitest::XIndexAccess(3)
 , ::apitest::XNameAccess("Sheet1")
 , ::apitest::XNameContainer("Sheet2")
 , ::apitest::XNameReplace("Sheet2")
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2020-02-25 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv |1 -
 sc/qa/extras/sctablesheetsobj.cxx|   10 
++
 sc/qa/unoapi/knownissues.xcl |3 ---
 3 files changed, 10 insertions(+), 4 deletions(-)

New commits:
commit 20747665a60b5c8782ab77962380ea34a30c20fa
Author: Jens Carl 
AuthorDate: Tue Feb 25 20:27:40 2020 -0800
Commit: Jens Carl 
CommitDate: Wed Feb 26 07:11:50 2020 +0100

tdf#45904 Move XNameReplace Java test to C++

Move XNameReplace Java test to C++ for ScTableSheetsObj.
Fixes i#23594 by creating a new "com.sun.star.sheet.Spreadsheet" rather
then using an existing one.

Change-Id: If7058647cc5d79d11e5542a82017d5bd02f7049e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89493
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
index 83fbb64ec41d..e348d3613059 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
@@ -1,4 +1,3 @@
-"ScTableSheetsObj";"com::sun::star::container::XNameReplace";"replaceByName()"
 "ScTableSheetsObj";"com::sun::star::container::XNameContainer";"insertByName()"
 "ScTableSheetsObj";"com::sun::star::container::XNameContainer";"removeByName()"
 "ScTableSheetsObj";"com::sun::star::container::XIndexAccess";"getCount()"
diff --git a/sc/qa/extras/sctablesheetsobj.cxx 
b/sc/qa/extras/sctablesheetsobj.cxx
index 82c74e832c7d..34b1e03cfa90 100644
--- a/sc/qa/extras/sctablesheetsobj.cxx
+++ b/sc/qa/extras/sctablesheetsobj.cxx
@@ -11,6 +11,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 
@@ -24,6 +25,7 @@ class ScTableSheetsObj : public CalcUnoApiTest,
  public ::apitest::XEnumerationAccess,
  public ::apitest::XNameAccess,
  public ::apitest::XNameContainer,
+ public ::apitest::XNameReplace,
  public ::apitest::XSpreadsheets,
  public ::apitest::XSpreadsheets2
 {
@@ -43,6 +45,9 @@ public:
 CPPUNIT_TEST(testGetElementNames);
 CPPUNIT_TEST(testHasByName);
 
+// XNameReplace
+CPPUNIT_TEST(testReplaceByName);
+
 // XSpreadsheets
 CPPUNIT_TEST(testInsertNewByName);
 CPPUNIT_TEST(testInsertNewByNameBadName);
@@ -80,6 +85,7 @@ ScTableSheetsObj::ScTableSheetsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , ::apitest::XNameAccess("Sheet1")
 , ::apitest::XNameContainer("Sheet2")
+, ::apitest::XNameReplace("Sheet2")
 {
 }
 
@@ -103,6 +109,10 @@ uno::Reference< uno::XInterface > ScTableSheetsObj::init()
 xDocument.set(mxComponent, UNO_QUERY_THROW);
 uno::Reference< uno::XInterface > xReturn( xDocument->getSheets(), 
UNO_QUERY_THROW);
 
+uno::Reference xMSF(mxComponent, 
uno::UNO_QUERY_THROW);
+// XNameReplace
+
setReplacementElement(uno::makeAny(xMSF->createInstance("com.sun.star.sheet.Spreadsheet")));
+
 return xReturn;
 }
 
diff --git a/sc/qa/unoapi/knownissues.xcl b/sc/qa/unoapi/knownissues.xcl
index 7da16e74cf43..999c7681d327 100644
--- a/sc/qa/unoapi/knownissues.xcl
+++ b/sc/qa/unoapi/knownissues.xcl
@@ -38,9 +38,6 @@ sc.ScTableSheetObj::com::sun::star::sheet::XCellRangeData
 ### i84669 ###
 sc.ScTabViewObj::com::sun::star::sheet::XRangeSelection
 
-### i23594 ###
-sc.ScTableSheetsObj::com::sun::star::container::XNameReplace
-
 ### i31378 ###
 sc.ScDocumentConfiguration::com::sun::star::document::Settings
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2020-02-25 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv |3 -
 sc/qa/extras/sctablesheetsobj.cxx|   24 
++
 2 files changed, 16 insertions(+), 11 deletions(-)

New commits:
commit 49eb4906de8f499ae14b789e90df9ba654895af5
Author: Jens Carl 
AuthorDate: Mon Feb 24 22:56:27 2020 -0800
Commit: Jens Carl 
CommitDate: Wed Feb 26 05:05:24 2020 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScTableSheetsObj.

Change-Id: I5fdaafe35852ea3c6e260d490200ce99e990c3b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89408
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
index 8eca36532a14..83fbb64ec41d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetsObj.csv
@@ -1,6 +1,3 @@
-"ScTableSheetsObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScTableSheetsObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScTableSheetsObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScTableSheetsObj";"com::sun::star::container::XNameReplace";"replaceByName()"
 "ScTableSheetsObj";"com::sun::star::container::XNameContainer";"insertByName()"
 "ScTableSheetsObj";"com::sun::star::container::XNameContainer";"removeByName()"
diff --git a/sc/qa/extras/sctablesheetsobj.cxx 
b/sc/qa/extras/sctablesheetsobj.cxx
index 99d55ea75a16..82c74e832c7d 100644
--- a/sc/qa/extras/sctablesheetsobj.cxx
+++ b/sc/qa/extras/sctablesheetsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -19,11 +20,12 @@ using namespace css;
 using namespace css::uno;
 
 namespace sc_apitest {
-
-class ScTableSheetsObj : public CalcUnoApiTest, public 
apitest::XEnumerationAccess,
-public 
::apitest::XSpreadsheets,
-public 
::apitest::XSpreadsheets2,
-public apitest::XNameContainer
+class ScTableSheetsObj : public CalcUnoApiTest,
+ public ::apitest::XEnumerationAccess,
+ public ::apitest::XNameAccess,
+ public ::apitest::XNameContainer,
+ public ::apitest::XSpreadsheets,
+ public ::apitest::XSpreadsheets2
 {
 public:
 ScTableSheetsObj();
@@ -36,6 +38,11 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XNameAccess
+CPPUNIT_TEST(testGetByName);
+CPPUNIT_TEST(testGetElementNames);
+CPPUNIT_TEST(testHasByName);
+
 // XSpreadsheets
 CPPUNIT_TEST(testInsertNewByName);
 CPPUNIT_TEST(testInsertNewByNameBadName);
@@ -69,9 +76,10 @@ protected:
 uno::Reference< lang::XComponent > mxComponent;
 };
 
-ScTableSheetsObj::ScTableSheetsObj():
-CalcUnoApiTest("/sc/qa/extras/testdocuments"),
-apitest::XNameContainer("Sheet2")
+ScTableSheetsObj::ScTableSheetsObj()
+: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, ::apitest::XNameAccess("Sheet1")
+, ::apitest::XNameContainer("Sheet2")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-10-27 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv |7 
 sc/qa/extras/scstyleobj.cxx|   19 -
 2 files changed, 18 insertions(+), 8 deletions(-)

New commits:
commit e6109939b448f070848bfcf11ac013e05f71767a
Author: Jens Carl 
AuthorDate: Sun Oct 27 10:53:45 2019 -0700
Commit: Jens Carl 
CommitDate: Sun Oct 27 22:04:11 2019 +0100

tdf#45904 Move XPropertySet Java tests to C++

Move XPropertySet Java tests to C++ for ScStyleObj.

Change-Id: Ic4f2d69d0b569de9fe99c8af41370b0699f2ab1b
Reviewed-on: https://gerrit.libreoffice.org/81556
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv
index fbcfe7e91ac5..30c529f00d97 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv
@@ -12,13 +12,6 @@
 "ScStyleObj";"com::sun::star::style::Style";"FollowStyle#optional"
 "ScStyleObj";"com::sun::star::style::Style";"DisplayName#optional"
 "ScStyleObj";"com::sun::star::style::Style";"IsAutoUpdate#optional"
-"ScStyleObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScStyleObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScStyleObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScStyleObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScStyleObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScStyleObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScStyleObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
 
"ScStyleObj";"com::sun::star::beans::XMultiPropertyStates#optional";"getPropertyStates()"
 
"ScStyleObj";"com::sun::star::beans::XMultiPropertyStates#optional";"setAllPropertiesToDefault()"
 
"ScStyleObj";"com::sun::star::beans::XMultiPropertyStates#optional";"setPropertiesToDefault()"
diff --git a/sc/qa/extras/scstyleobj.cxx b/sc/qa/extras/scstyleobj.cxx
index a29243882ffc..3ba41df3042f 100644
--- a/sc/qa/extras/scstyleobj.cxx
+++ b/sc/qa/extras/scstyleobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -30,7 +31,7 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScStyleObj : public CalcUnoApiTest, public apitest::XNamed
+class ScStyleObj : public CalcUnoApiTest, public apitest::XNamed, public 
apitest::XPropertySet
 {
 public:
 ScStyleObj();
@@ -46,6 +47,13 @@ public:
 CPPUNIT_TEST(testGetName);
 CPPUNIT_TEST(testSetName);
 
+// XPropertySet
+CPPUNIT_TEST(testGetPropertySetInfo);
+CPPUNIT_TEST(testGetPropertyValue);
+CPPUNIT_TEST(testSetPropertyValue);
+CPPUNIT_TEST(testPropertyChangeListener);
+CPPUNIT_TEST(testVetoableChangeListener);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -55,6 +63,15 @@ private:
 ScStyleObj::ScStyleObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , XNamed("ScStyleObj")
+, XPropertySet({
+  "BottomBorder",  "BottomBorder2", "CellProtection", 
"CharLocale",
+  "CharLocaleAsian",   "CharLocaleComplex", "CharPosture",
"CharPostureAsian",
+  "CharPostureComplex","DiagonalBLTR",  "DiagonalBLTR2",  
"DiagonalTLBR",
+  "DiagonalTLBR2", "HoriJustify",   "LeftBorder", 
"LeftBorder2",
+  "NumberFormat",  "Orientation",   "RightBorder",
"RightBorder2",
+  "ShadowFormat",  "TableBorder",   "TopBorder",  
"TopBorder2",
+  "UserDefinedAttributes",
+  })
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_styleobj.mk sc/Module_sc.mk sc/qa

2019-10-26 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv |2 
 sc/CppunitTest_sc_styleobj.mk  |   45 +
 sc/Module_sc.mk|1 
 sc/qa/extras/scstyleobj.cxx|  111 +
 4 files changed, 157 insertions(+), 2 deletions(-)

New commits:
commit b7735d9c705bdec53ddb0077b93ae70ce4c2df48
Author: Jens Carl 
AuthorDate: Sat Oct 26 21:54:16 2019 -0700
Commit: Jens Carl 
CommitDate: Sun Oct 27 06:49:18 2019 +0100

tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScStyleObj.

Change-Id: Idaff7307d15ca2665005e866dff36a033aa91354
Reviewed-on: https://gerrit.libreoffice.org/81553
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv
index cd24c8c8f6bc..fbcfe7e91ac5 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleObj.csv
@@ -12,8 +12,6 @@
 "ScStyleObj";"com::sun::star::style::Style";"FollowStyle#optional"
 "ScStyleObj";"com::sun::star::style::Style";"DisplayName#optional"
 "ScStyleObj";"com::sun::star::style::Style";"IsAutoUpdate#optional"
-"ScStyleObj";"com::sun::star::container::XNamed";"getName()"
-"ScStyleObj";"com::sun::star::container::XNamed";"setName()"
 "ScStyleObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
 "ScStyleObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
 "ScStyleObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/CppunitTest_sc_styleobj.mk b/sc/CppunitTest_sc_styleobj.mk
new file mode 100644
index ..59595a8f402b
--- /dev/null
+++ b/sc/CppunitTest_sc_styleobj.mk
@@ -0,0 +1,45 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_styleobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_styleobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_use_common_precompiled_header,sc_styleobj))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_styleobj, \
+   sc/qa/extras/scstyleobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_styleobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_styleobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_styleobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_styleobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_styleobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_styleobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_styleobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 1b2ca6bfc399..cbe32e32ebc2 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -191,6 +191,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_sortdescriptorbaseobj \
CppunitTest_sc_spreadsheetsettings \
CppunitTest_sc_spreadsheetsettingsobj \
+   CppunitTest_sc_styleobj \
CppunitTest_sc_stylefamiliesobj \
CppunitTest_sc_stylefamilyobj \
CppunitTest_sc_subtotaldescriptorbase \
diff --git a/sc/qa/extras/scstyleobj.cxx b/sc/qa/extras/scstyleobj.cxx
new file mode 100644
index ..a29243882ffc
--- /dev/null
+++ b/sc/qa/extras/scstyleobj.cxx
@@ -0,0 +1,111 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScStyleObj : public CalcUnoApiTest, public apitest::XNamed
+{
+public:
+ScStyleObj();
+
+virtual void setUp() override;
+virtual void tearDown() override;
+
+virtual uno::Reference init() override;
+
+CPPUNIT_TEST_SUITE(ScStyleObj);
+
+// XNamed
+CPPUNIT_TEST(testGetName);
+CPPUNIT_TEST(testSetName);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;
+};
+
+ScS

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-10-22 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv |5 
-
 sc/qa/extras/scannotationshapeobj.cxx|   10 
+-
 2 files changed, 9 insertions(+), 6 deletions(-)

New commits:
commit 7fe58f64cd8b58918cae92aed536d266f63b4c71
Author: Jens Carl 
AuthorDate: Mon Oct 21 21:39:30 2019 -0700
Commit: Jens Carl 
CommitDate: Wed Oct 23 03:36:53 2019 +0200

tdf#45904 Move XTextRange Java test to C++

Move XTextRange Java test to C++ for ScAnnotationShapeObj.

Change-Id: If280b4e621fedd1023457ff626c6db8ef9a9f7ad
Reviewed-on: https://gerrit.libreoffice.org/81295
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
index fa1477b94f04..16d4d6f432d7 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
@@ -152,11 +152,6 @@
 
"ScAnnotationShapeObj";"com::sun::star::drawing::ShadowProperties";"ShadowTransparence"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::ShadowProperties";"ShadowXDistance"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::ShadowProperties";"ShadowYDistance"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"getText()"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"getStart()"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"getEnd()"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"getString()"
-"ScAnnotationShapeObj";"com::sun::star::text::XTextRange";"setString()"
 
"ScAnnotationShapeObj";"com::sun::star::style::CharacterProperties";"CharFontName"
 
"ScAnnotationShapeObj";"com::sun::star::style::CharacterProperties";"CharFontStyleName"
 
"ScAnnotationShapeObj";"com::sun::star::style::CharacterProperties";"CharFontFamily"
diff --git a/sc/qa/extras/scannotationshapeobj.cxx 
b/sc/qa/extras/scannotationshapeobj.cxx
index 567a7a904d3e..5a7a7258e04a 100644
--- a/sc/qa/extras/scannotationshapeobj.cxx
+++ b/sc/qa/extras/scannotationshapeobj.cxx
@@ -14,6 +14,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -42,7 +43,8 @@ class ScAnnotationShapeObj : public CalcUnoApiTest,
  public apitest::XShape,
  public apitest::XShapeDescriptor,
  public apitest::XSimpleText,
- public apitest::XText
+ public apitest::XText,
+ public apitest::XTextRange
 {
 public:
 ScAnnotationShapeObj();
@@ -76,6 +78,12 @@ public:
 // XText
 CPPUNIT_TEST(testInsertRemoveTextContent);
 
+// XTextRange
+CPPUNIT_TEST(testGetEnd);
+CPPUNIT_TEST(testGetSetString);
+CPPUNIT_TEST(testGetStart);
+CPPUNIT_TEST(testGetText);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-10-20 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv |1 -
 sc/qa/extras/scannotationshapeobj.cxx|5 
+
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 3874ac30beeb65a7048ff31bf052ecc87c185b69
Author: Jens Carl 
AuthorDate: Sun Oct 20 01:47:24 2019 -0700
Commit: Jens Carl 
CommitDate: Mon Oct 21 01:34:05 2019 +0200

tdf#45904 Move XGluePointsSupplier Java test to C++

Move XGluePointsSupplier Java test to C++ for ScAnnotationShapeObj.

Change-Id: I573f28f1b1bdf8e8fa41ef14cfd3d8ea4deaf751
Reviewed-on: https://gerrit.libreoffice.org/81150
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
index c83b8f6f107f..fa1477b94f04 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
@@ -125,7 +125,6 @@
 
"ScAnnotationShapeObj";"com::sun::star::drawing::TextProperties";"TextAnimationStartInside"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::TextProperties";"TextAnimationStopInside"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::TextProperties";"TextWritingMode"
-"ScAnnotationShapeObj";"com::sun::star::drawing::XGluePointsSupplier#optional";"getGluePoints()"
 "ScAnnotationShapeObj";"com::sun::star::drawing::FillProperties";"FillStyle"
 "ScAnnotationShapeObj";"com::sun::star::drawing::FillProperties";"FillColor"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::FillProperties";"FillTransparence"
diff --git a/sc/qa/extras/scannotationshapeobj.cxx 
b/sc/qa/extras/scannotationshapeobj.cxx
index f8e0fa0d93d9..567a7a904d3e 100644
--- a/sc/qa/extras/scannotationshapeobj.cxx
+++ b/sc/qa/extras/scannotationshapeobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -37,6 +38,7 @@ namespace sc_apitest
 {
 class ScAnnotationShapeObj : public CalcUnoApiTest,
  public apitest::CaptionShape,
+ public apitest::XGluePointsSupplier,
  public apitest::XShape,
  public apitest::XShapeDescriptor,
  public apitest::XSimpleText,
@@ -55,6 +57,9 @@ public:
 // CaptionShape
 CPPUNIT_TEST(testCaptionShapeProperties);
 
+// XGluePointsSupplier
+CPPUNIT_TEST(testGetGluePoints);
+
 // XShape
 CPPUNIT_TEST(testGetSetSize);
 CPPUNIT_TEST(testGetSetPosition);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc

2019-09-15 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv |2 --
 1 file changed, 2 deletions(-)

New commits:
commit ba3147f09c8749dc1250e16d432beae6b9d5342b
Author: Jens Carl 
AuthorDate: Sat Sep 14 23:19:21 2019 -0700
Commit: Jens Carl 
CommitDate: Sun Sep 15 19:43:00 2019 +0200

tdf#45904 Remove/disable obsolete XText Java tests

The XText tests are already written and enabled in C++ since commit
7b773d9c25fbda03f6fd97503a4af6361a2a5e87.

Change-Id: Iad5e22251ad33cfb32c68e32770a1dbf294dd01a
Reviewed-on: https://gerrit.libreoffice.org/78927
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
index 76fb02c79042..c83b8f6f107f 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
@@ -216,8 +216,6 @@
 
"ScAnnotationShapeObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
 
"ScAnnotationShapeObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
 
"ScAnnotationShapeObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
-"ScAnnotationShapeObj";"com::sun::star::text::XText";"insertTextContent()"
-"ScAnnotationShapeObj";"com::sun::star::text::XText";"removeTextContent()"
 
"ScAnnotationShapeObj";"com::sun::star::style::ParagraphPropertiesAsian#optional";"ParaIsHangingPunctuation"
 
"ScAnnotationShapeObj";"com::sun::star::style::ParagraphPropertiesAsian#optional";"ParaIsCharacterDistance"
 
"ScAnnotationShapeObj";"com::sun::star::style::ParagraphPropertiesAsian#optional";"ParaIsForbiddenRules"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-09-15 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv |4 

 sc/qa/extras/scannotationshapeobj.cxx|8 

 2 files changed, 8 insertions(+), 4 deletions(-)

New commits:
commit b3e98730b324c6343a024e18075817241fe25437
Author: Jens Carl 
AuthorDate: Sat Sep 14 23:09:32 2019 -0700
Commit: Jens Carl 
CommitDate: Sun Sep 15 19:42:39 2019 +0200

tdf#45904 Move XSimpleText Java tests to C++

Move XSimpleText Java tests to C++ for ScAnnotationShapeObj.

Change-Id: Ib8d071dce2ee5906b85537b3fca7bcf7b238e735
Reviewed-on: https://gerrit.libreoffice.org/78926
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
index 3a76ca37b9f5..76fb02c79042 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
@@ -101,10 +101,6 @@
 
"ScAnnotationShapeObj";"com::sun::star::drawing::LineProperties";"LineStartWidth#optional"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::LineProperties";"LineEndCenter#optional"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::LineProperties";"LineEndWidth#optional"
-"ScAnnotationShapeObj";"com::sun::star::text::XSimpleText";"createTextCursor()"
-"ScAnnotationShapeObj";"com::sun::star::text::XSimpleText";"createTextCursorByRange()"
-"ScAnnotationShapeObj";"com::sun::star::text::XSimpleText";"insertString()"
-"ScAnnotationShapeObj";"com::sun::star::text::XSimpleText";"insertControlCharacter()"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::TextProperties";"IsNumbering#optional"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::TextProperties";"NumberingRules#optional"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::TextProperties";"TextAutoGrowHeight"
diff --git a/sc/qa/extras/scannotationshapeobj.cxx 
b/sc/qa/extras/scannotationshapeobj.cxx
index 48f97b1be887..f8e0fa0d93d9 100644
--- a/sc/qa/extras/scannotationshapeobj.cxx
+++ b/sc/qa/extras/scannotationshapeobj.cxx
@@ -11,6 +11,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -38,6 +39,7 @@ class ScAnnotationShapeObj : public CalcUnoApiTest,
  public apitest::CaptionShape,
  public apitest::XShape,
  public apitest::XShapeDescriptor,
+ public apitest::XSimpleText,
  public apitest::XText
 {
 public:
@@ -60,6 +62,12 @@ public:
 // XShapeDescriptor
 CPPUNIT_TEST(testGetShapeType);
 
+// XSimpleText
+CPPUNIT_TEST(testCreateTextCursor);
+CPPUNIT_TEST(testCreateTextCursorByRange);
+CPPUNIT_TEST(testInsertControlCharacter);
+CPPUNIT_TEST(testInsertString);
+
 // XText
 CPPUNIT_TEST(testInsertRemoveTextContent);
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-09-14 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv |1 -
 sc/qa/extras/scannotationshapeobj.cxx|6 
++
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit bda1d88f2bfa21202725ab9c567b3cccba3c1f0b
Author: Jens Carl 
AuthorDate: Sat Sep 14 17:37:01 2019 -0700
Commit: Jens Carl 
CommitDate: Sun Sep 15 04:49:05 2019 +0200

tdf#45904 Move XShapeDescriptor Java test to C++

Move XShapeDescriptor Java test to C++ for ScAnnotationShapeObj.

Change-Id: I21c51f6d557e877fed6319ed83f7951bdcb3f800
Reviewed-on: https://gerrit.libreoffice.org/78924
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
index c65940379cc2..3a76ca37b9f5 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
@@ -86,7 +86,6 @@
 
"ScAnnotationShapeObj";"com::sun::star::style::CharacterPropertiesComplex#optional";"CharFontPitchComplex"
 
"ScAnnotationShapeObj";"com::sun::star::style::CharacterPropertiesComplex#optional";"CharPostureComplex"
 
"ScAnnotationShapeObj";"com::sun::star::style::CharacterPropertiesComplex#optional";"CharLocaleComplex"
-"ScAnnotationShapeObj";"com::sun::star::drawing::XShapeDescriptor";"getShapeType()"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::RotationDescriptor";"RotateAngle"
 
"ScAnnotationShapeObj";"com::sun::star::drawing::RotationDescriptor";"ShearAngle#optional"
 "ScAnnotationShapeObj";"com::sun::star::drawing::LineProperties";"LineStyle"
diff --git a/sc/qa/extras/scannotationshapeobj.cxx 
b/sc/qa/extras/scannotationshapeobj.cxx
index 5cf3fc927464..48f97b1be887 100644
--- a/sc/qa/extras/scannotationshapeobj.cxx
+++ b/sc/qa/extras/scannotationshapeobj.cxx
@@ -10,6 +10,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -36,6 +37,7 @@ namespace sc_apitest
 class ScAnnotationShapeObj : public CalcUnoApiTest,
  public apitest::CaptionShape,
  public apitest::XShape,
+ public apitest::XShapeDescriptor,
  public apitest::XText
 {
 public:
@@ -55,6 +57,9 @@ public:
 CPPUNIT_TEST(testGetSetSize);
 CPPUNIT_TEST(testGetSetPosition);
 
+// XShapeDescriptor
+CPPUNIT_TEST(testGetShapeType);
+
 // XText
 CPPUNIT_TEST(testInsertRemoveTextContent);
 
@@ -69,6 +74,7 @@ uno::Reference 
ScAnnotationShapeObj::m_xField;
 
 ScAnnotationShapeObj::ScAnnotationShapeObj()
 : CalcUnoApiTest("sc/qa/extras/testdocuments")
+, XShapeDescriptor("com.sun.star.drawing.CaptionShape")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa solenv/clang-format

2019-09-13 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv |4 
 sc/qa/extras/scannotationshapeobj.cxx|   88 
++
 solenv/clang-format/blacklist|1 
 3 files changed, 54 insertions(+), 39 deletions(-)

New commits:
commit 0d0e8533afe565564835e6d51500e64066fd565b
Author: Jens Carl 
AuthorDate: Fri Sep 13 22:19:32 2019 -0700
Commit: Jens Carl 
CommitDate: Sat Sep 14 08:17:59 2019 +0200

tdf#45904 Move XShape Java tests to C++

Move XShape Java tests to C++ for ScAnnotationShapeObj.

Change-Id: I26658ea7b0b26f68659024100c4d3c40e383899e
Reviewed-on: https://gerrit.libreoffice.org/78898
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
index 8709cf403bc5..c65940379cc2 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationShapeObj.csv
@@ -221,10 +221,6 @@
 
"ScAnnotationShapeObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
 
"ScAnnotationShapeObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
 
"ScAnnotationShapeObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
-"ScAnnotationShapeObj";"com::sun::star::drawing::XShape";"getPosition()"
-"ScAnnotationShapeObj";"com::sun::star::drawing::XShape";"setPosition()"
-"ScAnnotationShapeObj";"com::sun::star::drawing::XShape";"getSize()"
-"ScAnnotationShapeObj";"com::sun::star::drawing::XShape";"setSize()"
 "ScAnnotationShapeObj";"com::sun::star::text::XText";"insertTextContent()"
 "ScAnnotationShapeObj";"com::sun::star::text::XText";"removeTextContent()"
 
"ScAnnotationShapeObj";"com::sun::star::style::ParagraphPropertiesAsian#optional";"ParaIsHangingPunctuation"
diff --git a/sc/qa/extras/scannotationshapeobj.cxx 
b/sc/qa/extras/scannotationshapeobj.cxx
index 77fce301ce1f..5cf3fc927464 100644
--- a/sc/qa/extras/scannotationshapeobj.cxx
+++ b/sc/qa/extras/scannotationshapeobj.cxx
@@ -1,4 +1,4 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
 /*
  * This file is part of the LibreOffice project.
  *
@@ -8,22 +8,35 @@
  */
 
 #include 
-#include 
 #include 
+#include 
+#include 
 
+#include 
+#include 
+#include 
+#include 
 #include 
-#include 
 #include 
-#include 
+#include 
+#include 
 #include 
+#include 
 #include 
+#include 
+#include 
+#include 
 
-using namespace css;
-using namespace css::uno;
+#include 
 
-namespace sc_apitest {
+using namespace css;
 
-class ScAnnotationShapeObj : public CalcUnoApiTest, public apitest::XText, 
public apitest::CaptionShape
+namespace sc_apitest
+{
+class ScAnnotationShapeObj : public CalcUnoApiTest,
+ public apitest::CaptionShape,
+ public apitest::XShape,
+ public apitest::XText
 {
 public:
 ScAnnotationShapeObj();
@@ -35,20 +48,24 @@ public:
 
 CPPUNIT_TEST_SUITE(ScAnnotationShapeObj);
 
-// XText
-CPPUNIT_TEST(testInsertRemoveTextContent);
-
 // CaptionShape
 CPPUNIT_TEST(testCaptionShapeProperties);
 
+// XShape
+CPPUNIT_TEST(testGetSetSize);
+CPPUNIT_TEST(testGetSetPosition);
+
+// XText
+CPPUNIT_TEST(testInsertRemoveTextContent);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
-uno::Reference mxComponent;
-static uno::Reference mxField;
+uno::Reference m_xComponent;
+static uno::Reference m_xField;
 };
 
-uno::Reference ScAnnotationShapeObj::mxField;
+uno::Reference ScAnnotationShapeObj::m_xField;
 
 ScAnnotationShapeObj::ScAnnotationShapeObj()
 : CalcUnoApiTest("sc/qa/extras/testdocuments")
@@ -58,58 +75,61 @@ ScAnnotationShapeObj::ScAnnotationShapeObj()
 void ScAnnotationShapeObj::setUp()
 {
 CalcUnoApiTest::setUp();
-mxComponent = loadFromDesktop("private:factory/scalc");
+m_xComponent = loadFromDesktop("private:factory/scalc");
 }
 
 void ScAnnotationShapeObj::tearDown()
 {
-mxField.clear();
-closeDocument(mxComponent);
+m_xField.clear();
+closeDocument(m_xComponent);
 
 CalcUnoApiTest::tearDown();
 }
 
 uno::Reference ScAnnotationShapeObj::init()
 {
-uno::Reference xDoc(mxComponent, 
UNO_QUERY_THROW);
+uno::Reference xDoc(m_xComponent, 
uno::UNO_QUERY_THROW);
 
-uno::Reference xIA(xDoc->getSheets(), 
UNO_QUERY_THROW);
-uno::Reference xSheet(xIA->getByIndex(0), 
UNO_QUERY_THROW);
+uno::Reference xIA(xDoc->getSheets(), 
uno::UNO_QUERY_THROW);
+uno::Reference xSheet(xIA->getByIndex(0), 
uno::UNO_QUERY_THROW);
 
 // Use cell A1 for this.
-
 table::CellAddress aNotePos(0, 0, 0);
-Reference xAnnosSupp(xSheet, 
UNO_QUERY_THROW);
-Reference xAn

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-06-26 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv |2 -
 sc/qa/extras/sctabviewobj.cxx|   16 ---
 2 files changed, 13 insertions(+), 5 deletions(-)

New commits:
commit d3b81a27e2bb7c8a3de8cd5fabe8d3734b5a3d3d
Author: Jens Carl 
AuthorDate: Wed Jun 26 20:39:49 2019 -0700
Commit: Jens Carl 
CommitDate: Thu Jun 27 06:30:28 2019 +0200

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScTabViewObj.

Change-Id: Iee151264033bee61a6a88ec0acb932ae069ede56
Reviewed-on: https://gerrit.libreoffice.org/74774
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
index ffd0cf5a2114..45986718864f 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
@@ -10,8 +10,6 @@
 
"ScTabViewObj";"com::sun::star::sheet::XEnhancedMouseClickBroadcaster#optional";"removeEnhancedMouseClickHandler()"
 
"ScTabViewObj";"com::sun::star::ui::XContextMenuInterception#optional";"registerContextMenuInterceptor()"
 
"ScTabViewObj";"com::sun::star::ui::XContextMenuInterception#optional";"releaseContextMenuInterceptor()"
-"ScTabViewObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScTabViewObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScTabViewObj";"com::sun::star::sheet::XRangeSelection";"startRangeSelection()"
 "ScTabViewObj";"com::sun::star::sheet::XRangeSelection";"abortRangeSelection()"
 
"ScTabViewObj";"com::sun::star::sheet::XRangeSelection";"addRangeSelectionListener()"
diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx
index fef454f8899a..b2002655610b 100644
--- a/sc/qa/extras/sctabviewobj.cxx
+++ b/sc/qa/extras/sctabviewobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -18,14 +19,17 @@
 #include 
 
 #include 
-#include 
 #include 
-#include 
+#include 
 #include 
-
+#include 
+#include 
 #include 
+
 #include 
 
+#include 
+
 using namespace css;
 using namespace css::uno;
 
@@ -35,6 +39,7 @@ class ScTabViewObj : public CalcUnoApiTest,
  public apitest::SpreadsheetViewSettings,
  public apitest::XActivationBroadcaster,
  public apitest::XCellRangeReferrer,
+ public apitest::XElementAccess,
  public apitest::XEnumerationAccess,
  public apitest::XIndexAccess,
  public apitest::XSpreadsheetView,
@@ -62,6 +67,10 @@ public:
 //Disabled till it's clear why it fails on some machines.
 //CPPUNIT_TEST(testGetReferredCells);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
@@ -86,6 +95,7 @@ private:
 
 ScTabViewObj::ScTabViewObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1)
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-06-22 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv |2 --
 sc/qa/extras/sctabviewobj.cxx|7 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 8567d3d2567e83d1a8769651295384cfe5d68ce1
Author: Jens Carl 
AuthorDate: Sat Jun 22 13:34:05 2019 -0700
Commit: Jens Carl 
CommitDate: Sun Jun 23 02:30:34 2019 +0200

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScTabViewObj.

Change-Id: Ic3364f405e4e4c42443a7f439a257ed6328f32a8
Reviewed-on: https://gerrit.libreoffice.org/74586
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
index eee960dcfa3e..ffd0cf5a2114 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
@@ -1,5 +1,3 @@
-"ScTabViewObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScTabViewObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScTabViewObj";"com::sun::star::lang::XComponent";"dispose()"
 "ScTabViewObj";"com::sun::star::lang::XComponent";"addEventListener()"
 "ScTabViewObj";"com::sun::star::lang::XComponent";"removeEventListener()"
diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx
index 14b46abc725e..fef454f8899a 100644
--- a/sc/qa/extras/sctabviewobj.cxx
+++ b/sc/qa/extras/sctabviewobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -35,6 +36,7 @@ class ScTabViewObj : public CalcUnoApiTest,
  public apitest::XActivationBroadcaster,
  public apitest::XCellRangeReferrer,
  public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
  public apitest::XSpreadsheetView,
  public apitest::XViewFreezable,
  public apitest::XViewSplitable
@@ -63,6 +65,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XSpreadsheetView
 CPPUNIT_TEST(testGetSetActiveSheet);
 
@@ -80,6 +86,7 @@ private:
 
 ScTabViewObj::ScTabViewObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(1)
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc

2019-06-22 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScShapeObj.csv |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f7a6b7a82469f2b4bd6cec3e7aa697aefd5775b7
Author: Jens Carl 
AuthorDate: Thu Jun 20 23:25:31 2019 -0700
Commit: Jens Carl 
CommitDate: Sat Jun 22 21:52:09 2019 +0200

tdf#45904 Correct mishap with removed converted tests

Deleted the wrong test and also forgot to remove a test with commit
0e73f9eb4157.

Change-Id: I31257908e935b2130c46436e8d5425bc058b21c5
Reviewed-on: https://gerrit.libreoffice.org/74484
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScShapeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScShapeObj.csv
index be9506938cdc..5c145a956d1b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScShapeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScShapeObj.csv
@@ -15,4 +15,4 @@
 
"ScShapeObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
 
"ScShapeObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
 
"ScShapeObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScShapeObj";"com::sun::star::drawing::XShape";"setSize()"
+"ScShapeObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_cellsearchobj.mk sc/Module_sc.mk sc/qa

2019-05-01 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv |7 
 sc/CppunitTest_sc_cellsearchobj.mk  |   43 +
 sc/Module_sc.mk |3 
 sc/qa/extras/sccellsearchobj.cxx|   86 
++
 4 files changed, 131 insertions(+), 8 deletions(-)

New commits:
commit 4931a1e5e365c018a271fcd94f0a743b4fc38c6c
Author: Jens Carl 
AuthorDate: Wed May 1 00:58:31 2019 +
Commit: Jens Carl 
CommitDate: Wed May 1 09:30:00 2019 +0200

tdf#45904 Move XPropertSet Java tests to C++

Move XPropertSet Java tests to C++ for ScCellSearchObj.

Change-Id: I46e55794fe0b205173c3b208ba84c90d70aa2de0
Reviewed-on: https://gerrit.libreoffice.org/71608
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv
index 3af1d2feb37e..8f8a0add5ae6 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellSearchObj.csv
@@ -12,10 +12,3 @@
 
"ScCellSearchObj";"com::sun::star::util::SearchDescriptor";"SearchSimilarityExchange"
 
"ScCellSearchObj";"com::sun::star::util::XReplaceDescriptor";"getReplaceString()"
 
"ScCellSearchObj";"com::sun::star::util::XReplaceDescriptor";"setReplaceString()"
-"ScCellSearchObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScCellSearchObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScCellSearchObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScCellSearchObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScCellSearchObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScCellSearchObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScCellSearchObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
diff --git a/sc/CppunitTest_sc_cellsearchobj.mk 
b/sc/CppunitTest_sc_cellsearchobj.mk
new file mode 100644
index ..a6bc54d1e9aa
--- /dev/null
+++ b/sc/CppunitTest_sc_cellsearchobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_cellsearchobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_cellsearchobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_cellsearchobj, \
+   sc/qa/extras/sccellsearchobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_cellsearchobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_cellsearchobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_cellsearchobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_cellsearchobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_cellsearchobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_cellsearchobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_cellsearchobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 633fa010982e..0b424cd0a381 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -114,10 +114,11 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_cellformatsenumeration \
CppunitTest_sc_cellformatsobj \
CppunitTest_sc_cellobj \
-   CppunitTest_sc_cellsobj \
CppunitTest_sc_cellrangeobj \
CppunitTest_sc_cellrangesobj \
+   CppunitTest_sc_cellsearchobj \
CppunitTest_sc_cellsenumeration \
+   CppunitTest_sc_cellsobj \
CppunitTest_sc_chart2dataprovider \
CppunitTest_sc_chartobj \
CppunitTest_sc_chartsobj \
diff --git a/sc/qa/extras/sccellsearchobj.cxx b/sc/qa/extras/sccellsearchobj.cxx
new file mode 100644
index ..21ece504221b
--- /dev/null
+++ b/sc/qa/extras/sccellsearchobj.cxx
@@ -0,0 +1,86 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+
+names

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-04-20 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv |2 --
 sc/qa/extras/sctablecolumnobj.cxx|9 
-
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit a7c72b3725f38bba8463ebf10958574a4334837e
Author: Jens Carl 
AuthorDate: Sun Apr 21 04:56:46 2019 +
Commit: Jens Carl 
CommitDate: Sun Apr 21 08:07:37 2019 +0200

tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScTableColumnObj.

Change-Id: I6037db86d917a5a64f19dc799d80e175e971b90d
Reviewed-on: https://gerrit.libreoffice.org/71033
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
index a20406eb6b9a..70a50be2c57c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
@@ -1,5 +1,3 @@
-"ScTableColumnObj";"com::sun::star::container::XNamed";"getName()"
-"ScTableColumnObj";"com::sun::star::container::XNamed";"setName()"
 "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
 "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
 "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/qa/extras/sctablecolumnobj.cxx 
b/sc/qa/extras/sctablecolumnobj.cxx
index 9a8b8c79e556..c65a8683b89c 100644
--- a/sc/qa/extras/sctablecolumnobj.cxx
+++ b/sc/qa/extras/sctablecolumnobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -25,7 +26,7 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange
+class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange, 
public apitest::XNamed
 {
 public:
 ScTableColumnObj();
@@ -41,6 +42,11 @@ public:
 CPPUNIT_TEST(testGetCellRangeByName);
 CPPUNIT_TEST(testGetCellRangeByPosition);
 
+// XNamed
+CPPUNIT_TEST(testGetName);
+// because TableColumnNames are fixed, test for an exception
+CPPUNIT_TEST(testSetNameThrowsException);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -50,6 +56,7 @@ private:
 ScTableColumnObj::ScTableColumnObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , XCellRange("K1:K1")
+, XNamed("K")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_tablecolumnobj.mk sc/Module_sc.mk sc/qa

2019-04-20 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv |3 
 sc/CppunitTest_sc_tablecolumnobj.mk  |   43 
 sc/Module_sc.mk  |1 
 sc/qa/extras/sctablecolumnobj.cxx|   90 
++
 4 files changed, 134 insertions(+), 3 deletions(-)

New commits:
commit 2b307927f028eeefcec41a8bc8daae392521f9df
Author: Jens Carl 
AuthorDate: Fri Apr 19 07:47:12 2019 +
Commit: Jens Carl 
CommitDate: Sat Apr 20 21:41:19 2019 +0200

tdf#45904 Move XCellRange Java test to C++

mOve XCellRange Java test to C++ for ScTableColumnObj.

Change-Id: I165e5752fb679be6790c305a99f35da644e17d56
Reviewed-on: https://gerrit.libreoffice.org/70968
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
index 72c9345a266b..a20406eb6b9a 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
@@ -1,6 +1,3 @@
-"ScTableColumnObj";"com::sun::star::table::XCellRange";"getCellByPosition()"
-"ScTableColumnObj";"com::sun::star::table::XCellRange";"getCellRangeByPosition()"
-"ScTableColumnObj";"com::sun::star::table::XCellRange";"getCellRangeByName()"
 "ScTableColumnObj";"com::sun::star::container::XNamed";"getName()"
 "ScTableColumnObj";"com::sun::star::container::XNamed";"setName()"
 "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
diff --git a/sc/CppunitTest_sc_tablecolumnobj.mk 
b/sc/CppunitTest_sc_tablecolumnobj.mk
new file mode 100644
index ..6f18e8070285
--- /dev/null
+++ b/sc/CppunitTest_sc_tablecolumnobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_tablecolumnobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_tablecolumnobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_tablecolumnobj, \
+   sc/qa/extras/sctablecolumnobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_tablecolumnobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_tablecolumnobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_tablecolumnobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_tablecolumnobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_tablecolumnobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_tablecolumnobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_tablecolumnobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 8a7484a824dd..633fa010982e 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -194,6 +194,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_stylefamilyobj \
CppunitTest_sc_subtotaldescriptorbase \
CppunitTest_sc_subtotalfieldobj \
+   CppunitTest_sc_tablecolumnobj \
CppunitTest_sc_tablecolumnsobj \
CppunitTest_sc_tableconditionalentryobj \
CppunitTest_sc_tableconditionalformat \
diff --git a/sc/qa/extras/sctablecolumnobj.cxx 
b/sc/qa/extras/sctablecolumnobj.cxx
new file mode 100644
index ..9a8b8c79e556
--- /dev/null
+++ b/sc/qa/extras/sctablecolumnobj.cxx
@@ -0,0 +1,90 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange
+{
+public:
+ScTableColumnObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScTableColumnObj);
+
+// XCellRange
+CPPUNIT_TEST(testGetCellByPosition);
+CPPUNIT_TEST(testGetCellRangeByName);
+CPPUNIT_TEST(testGetCellRangeByPosition);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Ref

[Libreoffice-commits] core.git: qadevOOo/objdsc

2019-04-18 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangeObj.csv |4 
 1 file changed, 4 deletions(-)

New commits:
commit 91ff3d136a9841607d815713081583b6a4e1da9d
Author: Jens Carl 
AuthorDate: Thu Apr 18 13:17:12 2019 -0700
Commit: Jens Carl 
CommitDate: Thu Apr 18 23:48:13 2019 +0200

tdf#45904 Remove already converted tests

Change-Id: I0f7ed57336a4cfa5f143b3c49626dfa8dd590905
Reviewed-on: https://gerrit.libreoffice.org/70953
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangeObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangeObj.csv
index 179c8841d4ae..3e2bbaf97550 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangeObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangeObj.csv
@@ -22,8 +22,6 @@
 
"ScCellRangeObj";"com::sun::star::table::CellProperties";"DiagonalBLTR#optional"
 "ScCellRangeObj";"com::sun::star::table::CellProperties";"ShrinkToFit#optional"
 "ScCellRangeObj";"com::sun::star::util::XSearchable";"createSearchDescriptor()"
-"ScCellRangeObj";"com::sun::star::util::XSearchable";"findAll()"
-"ScCellRangeObj";"com::sun::star::util::XSearchable";"findFirst()"
 "ScCellRangeObj";"com::sun::star::util::XSearchable";"findNext()"
 
"ScCellRangeObj";"com::sun::star::style::CharacterPropertiesAsian";"CharHeightAsian"
 
"ScCellRangeObj";"com::sun::star::style::CharacterPropertiesAsian";"CharWeightAsian"
@@ -37,8 +35,6 @@
 
"ScCellRangeObj";"com::sun::star::style::CharacterPropertiesAsian";"ParaIsCharacterDistance"
 
"ScCellRangeObj";"com::sun::star::style::CharacterPropertiesAsian";"ParaIsForbiddenRules"
 
"ScCellRangeObj";"com::sun::star::style::CharacterPropertiesAsian";"ParaIsHangingPunctuation"
-"ScCellRangeObj";"com::sun::star::util::XReplaceable";"createReplaceDescriptor()"
-"ScCellRangeObj";"com::sun::star::util::XReplaceable";"replaceAll()"
 
"ScCellRangeObj";"com::sun::star::chart::XChartData";"addChartDataChangeEventListener()"
 
"ScCellRangeObj";"com::sun::star::chart::XChartData";"removeChartDataChangeEventListener()"
 "ScCellRangeObj";"com::sun::star::chart::XChartData";"getNotANumber()"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc

2019-04-14 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldObj.csv |   12 
--
 1 file changed, 12 deletions(-)

New commits:
commit 4ce6590223ab9a615afcf55ebc0e9cdb3ff2a73a
Author: Jens Carl 
AuthorDate: Mon Apr 15 04:14:20 2019 +
Commit: Jens Carl 
CommitDate: Mon Apr 15 07:02:28 2019 +0200

tdf#45904 Remove obsolete tests for ScHeaderFieldObj

These tests are already ported to C++ in ScEditFieldObj_Header.

Change-Id: I548a50b6e717f706ff89dce530542a0a710185a7
Reviewed-on: https://gerrit.libreoffice.org/70754
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldObj.csv
index 3ae50e42ac18..343631dee5b6 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldObj.csv
@@ -1,16 +1,4 @@
 "ScHeaderFieldObj";"com::sun::star::lang::XComponent";"dispose()"
 "ScHeaderFieldObj";"com::sun::star::lang::XComponent";"addEventListener()"
 "ScHeaderFieldObj";"com::sun::star::lang::XComponent";"removeEventListener()"
-"ScHeaderFieldObj";"com::sun::star::text::TextContent";"AnchorType#optional"
-"ScHeaderFieldObj";"com::sun::star::text::TextContent";"AnchorTypes#optional"
-"ScHeaderFieldObj";"com::sun::star::text::TextContent";"TextWrap#optional"
 "ScHeaderFieldObj";"com::sun::star::text::XTextField";"getPresentation()"
-"ScHeaderFieldObj";"com::sun::star::beans::XPropertySet#optional";"getPropertySetInfo()"
-"ScHeaderFieldObj";"com::sun::star::beans::XPropertySet#optional";"setPropertyValue()"
-"ScHeaderFieldObj";"com::sun::star::beans::XPropertySet#optional";"getPropertyValue()"
-"ScHeaderFieldObj";"com::sun::star::beans::XPropertySet#optional";"addPropertyChangeListener()"
-"ScHeaderFieldObj";"com::sun::star::beans::XPropertySet#optional";"removePropertyChangeListener()"
-"ScHeaderFieldObj";"com::sun::star::beans::XPropertySet#optional";"addVetoableChangeListener()"
-"ScHeaderFieldObj";"com::sun::star::beans::XPropertySet#optional";"removeVetoableChangeListener()"
-"ScHeaderFieldObj";"com::sun::star::text::XTextContent";"attach()"
-"ScHeaderFieldObj";"com::sun::star::text::XTextContent";"getAnchor()"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-04-14 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScPageObj.csv |   11 ---
 sc/qa/unoapi/sc_1.sce |1 -
 2 files changed, 12 deletions(-)

New commits:
commit 527c400ef0654761ac1a3835dc06f2373523ef64
Author: Jens Carl 
AuthorDate: Mon Apr 15 03:31:41 2019 +
Commit: Jens Carl 
CommitDate: Mon Apr 15 06:41:52 2019 +0200

tdf#45904 Remove obsolete ScPageObj tests

As mentioned i#84653 ScPageObj and ScDrawPageObj are supporting the same
service and the later one was convert to C++ with commits
ed6a71eafa61bade50219d2ff6233a42ab6d1c17,
f897e80d063436be07356049f595efe5afb04859,
eb0653ee80ad7249fde9ff752b56316fb98c4592,
ee503c36199d225f4c906fe43c927f911c2097c7
and b99ea0ff33b78ba76d1ae436895efac490252e0f.

Change-Id: Icb05b2a03893f47e5f3816366cb9f3c94fd6faeb
Reviewed-on: https://gerrit.libreoffice.org/70751
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScPageObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScPageObj.csv
deleted file mode 100644
index 4a2f50a0b2f6..
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScPageObj.csv
+++ /dev/null
@@ -1,11 +0,0 @@
-"ScPageObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScPageObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScPageObj";"com::sun::star::lang::XServiceInfo";"getImplementationName()"
-"ScPageObj";"com::sun::star::lang::XServiceInfo";"supportsService()"
-"ScPageObj";"com::sun::star::lang::XServiceInfo";"getSupportedServiceNames()"
-"ScPageObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScPageObj";"com::sun::star::container::XElementAccess";"hasElements()"
-"ScPageObj";"com::sun::star::drawing::XShapes";"add()"
-"ScPageObj";"com::sun::star::drawing::XShapes";"remove()"
-"ScPageObj";"com::sun::star::drawing::XShapeGrouper";"group()"
-"ScPageObj";"com::sun::star::drawing::XShapeGrouper";"ungroup()"
diff --git a/sc/qa/unoapi/sc_1.sce b/sc/qa/unoapi/sc_1.sce
index d11354465534..1bc68eabbced 100644
--- a/sc/qa/unoapi/sc_1.sce
+++ b/sc/qa/unoapi/sc_1.sce
@@ -15,7 +15,6 @@
 #   except in compliance with the License. You may obtain a copy of
 #   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 #
-# i84653 -o sc.ScPageObj
 # i84554 -o sc.AccessibleEditableTextPara_PreviewNote
 # i88241 -o sc.AccessibleEditableTextPara_HeaderFooter
 -o sc.AccessibleEditableTextPara_PreviewCell
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-04-08 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv |4 
 sc/qa/extras/sceditfieldobj-cell.cxx   |   78 
+-
 sc/qa/extras/sceditfieldobj-header.cxx |   57 ---
 3 files changed, 79 insertions(+), 60 deletions(-)

New commits:
commit 6c50ee3377756ae7da1ae039da35775c0a97ef2f
Author: Jens Carl 
AuthorDate: Mon Apr 8 21:45:18 2019 +
Commit: Jens Carl 
CommitDate: Tue Apr 9 01:29:36 2019 +0200

tdf#45904 Move XPropertySet Java tests to C++

Move remaining XPropertySet Java tests to ScEditFieldObj_Cell and
ScEditFieldObj_Header.

Change-Id: I43640c6ea5a35fcc1aa8e15be17dae7611551776
Reviewed-on: https://gerrit.libreoffice.org/70434
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv
index 8ca686fff172..1912ae235b3b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv
@@ -4,7 +4,3 @@
 "ScCellFieldObj";"com::sun::star::text::TextContent";"AnchorType#optional"
 "ScCellFieldObj";"com::sun::star::text::TextContent";"AnchorTypes#optional"
 "ScCellFieldObj";"com::sun::star::text::TextContent";"TextWrap#optional"
-"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"addPropertyChangeListener()"
-"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"removePropertyChangeListener()"
-"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"addVetoableChangeListener()"
-"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"removeVetoableChangeListener()"
diff --git a/sc/qa/extras/sceditfieldobj-cell.cxx 
b/sc/qa/extras/sceditfieldobj-cell.cxx
index 7f39e88f1752..071be82489ff 100644
--- a/sc/qa/extras/sceditfieldobj-cell.cxx
+++ b/sc/qa/extras/sceditfieldobj-cell.cxx
@@ -13,19 +13,29 @@
 #include 
 
 #include 
+#include 
 #include 
+#include 
+#include 
+#include 
 #include 
+#include 
+#include 
 #include 
 #include 
-#include 
-#include 
+#include 
+#include 
 
-using namespace css;
-using namespace css::uno;
+#include 
 
-namespace sc_apitest {
+using namespace css;
 
-class ScEditFieldObj_Cell : public CalcUnoApiTest, public apitest::XTextField, 
public apitest::XTextContent, public apitest::XPropertySet
+namespace sc_apitest
+{
+class ScEditFieldObj_Cell : public CalcUnoApiTest,
+public apitest::XPropertySet,
+public apitest::XTextContent,
+public apitest::XTextField
 {
 public:
 ScEditFieldObj_Cell();
@@ -45,6 +55,8 @@ public:
 CPPUNIT_TEST(testGetPropertySetInfo);
 CPPUNIT_TEST(testGetPropertyValue);
 CPPUNIT_TEST(testSetPropertyValue);
+CPPUNIT_TEST(testPropertyChangeListener);
+CPPUNIT_TEST(testVetoableChangeListener);
 
 // XTextField
 CPPUNIT_TEST(testGetPresentation);
@@ -66,7 +78,7 @@ private:
 uno::Reference ScEditFieldObj_Cell::mxField;
 
 ScEditFieldObj_Cell::ScEditFieldObj_Cell()
- : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+: CalcUnoApiTest("/sc/qa/extras/testdocuments")
 {
 }
 
@@ -84,41 +96,41 @@ void ScEditFieldObj_Cell::tearDown()
 CalcUnoApiTest::tearDown();
 }
 
-namespace {
-
+namespace
+{
 uno::Reference getNewField(const 
uno::Reference& xSM)
 {
-uno::Reference xField(
-xSM->createInstance("com.sun.star.text.TextField.URL"), 
UNO_QUERY_THROW);
-uno::Reference xPropSet(xField, UNO_QUERY_THROW);
+uno::Reference 
xField(xSM->createInstance("com.sun.star.text.TextField.URL"),
+uno::UNO_QUERY_THROW);
+uno::Reference xPropSet(xField, uno::UNO_QUERY_THROW);
 xPropSet->setPropertyValue("Representation", 
uno::makeAny(OUString("LibreOffice")));
 xPropSet->setPropertyValue("URL", 
uno::makeAny(OUString("http://www.libreoffice.org/";)));
 return xField;
 }
 
-}
+} // namespace
 
 uno::Reference ScEditFieldObj_Cell::init()
 {
 // Return a field that's already in the cell.
 if (!mxField.is())
 {
-uno::Reference xSM(mxComponent, 
UNO_QUERY_THROW);
+uno::Reference xSM(mxComponent, 
uno::UNO_QUERY_THROW);
 
 // Create a new URL field object, and populate it with name and URL.
 mxField = getNewField(xSM);
 
 // Insert this field into a cell.
-uno::Reference xDoc(mxComponent, 
UNO_QUERY_THROW);
-uno::Reference xIA(xDoc->getSheets(), 
UNO_QUERY_THROW);
-uno::Reference xSheet(xIA->getByIndex(0), 
UNO_QUERY_THROW);
+uno::Reference xDoc(mxComponent, 
uno::UNO_QUERY_THROW);
+uno::Reference xIA(xDoc->getSheets(), 
uno::UNO_QUERY_THROW);
+uno::Reference xSheet(xIA->getByIndex(0), 
uno::UNO_QUERY_THROW);
 // Use cell A1 for this.
 uno::Reference xCell = xSheet->getCellByPosition(0, 0);
-uno::Reference xText(xCel

[Libreoffice-commits] core.git: qadevOOo/objdsc

2019-04-08 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv |6 --
 1 file changed, 6 deletions(-)

New commits:
commit a496096b4ecc4ffb45bc7dc25753c970bf5ca487
Author: Jens Carl 
AuthorDate: Mon Apr 8 21:25:48 2019 +
Commit: Jens Carl 
CommitDate: Tue Apr 9 01:29:06 2019 +0200

tdf#45904 Remove obsolete/disabled tests

The some of the ScCellFieldObj tests are already written in C++
since commit d0af33e87db753d6d171548f75c2e242cde00497.

Change-Id: I91dd688452d9374810096a89ed3ddf148df0b996
Reviewed-on: https://gerrit.libreoffice.org/70432
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv
index bcb16d0a0c59..8ca686fff172 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldObj.csv
@@ -4,13 +4,7 @@
 "ScCellFieldObj";"com::sun::star::text::TextContent";"AnchorType#optional"
 "ScCellFieldObj";"com::sun::star::text::TextContent";"AnchorTypes#optional"
 "ScCellFieldObj";"com::sun::star::text::TextContent";"TextWrap#optional"
-"ScCellFieldObj";"com::sun::star::text::XTextField";"getPresentation()"
-"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"getPropertySetInfo()"
-"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"setPropertyValue()"
-"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"getPropertyValue()"
 
"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"addPropertyChangeListener()"
 
"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"removePropertyChangeListener()"
 
"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"addVetoableChangeListener()"
 
"ScCellFieldObj";"com::sun::star::beans::XPropertySet#optional";"removeVetoableChangeListener()"
-"ScCellFieldObj";"com::sun::star::text::XTextContent";"attach()"
-"ScCellFieldObj";"com::sun::star::text::XTextContent";"getAnchor()"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_tablerowobj.mk sc/Module_sc.mk sc/qa

2019-04-02 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv |7 
 sc/CppunitTest_sc_tablerowobj.mk  |   43 +++
 sc/Module_sc.mk   |1 
 sc/qa/extras/sctablerowobj.cxx|  124 ++
 4 files changed, 168 insertions(+), 7 deletions(-)

New commits:
commit ee268253163c4f9f00fd5182c97d9d488c637dfc
Author: Jens Carl 
AuthorDate: Tue Apr 2 20:50:56 2019 +
Commit: Jens Carl 
CommitDate: Tue Apr 2 23:53:32 2019 +0200

tdf#45904 Move XPropertySet Java tests to C++

Move XPropertySet Java tests to C++ for ScTableRowObj.

Change-Id: Ib448d6440cd6a285cd55297669bb19bd8aec6b07
Reviewed-on: https://gerrit.libreoffice.org/70156
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv
index 23e159b4768a..59f7efd6554a 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowObj.csv
@@ -5,10 +5,3 @@
 "ScTableRowObj";"com::sun::star::table::XCellRange";"getCellByPosition()"
 "ScTableRowObj";"com::sun::star::table::XCellRange";"getCellRangeByPosition()"
 "ScTableRowObj";"com::sun::star::table::XCellRange";"getCellRangeByName()"
-"ScTableRowObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScTableRowObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScTableRowObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScTableRowObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScTableRowObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScTableRowObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScTableRowObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
diff --git a/sc/CppunitTest_sc_tablerowobj.mk b/sc/CppunitTest_sc_tablerowobj.mk
new file mode 100644
index ..861f6fd5ce3f
--- /dev/null
+++ b/sc/CppunitTest_sc_tablerowobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_tablerowobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_tablerowobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_tablerowobj, \
+   sc/qa/extras/sctablerowobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_tablerowobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_tablerowobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_tablerowobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_tablerowobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_tablerowobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_tablerowobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_tablerowobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index b56484c798a5..8a7484a824dd 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -197,6 +197,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_tablecolumnsobj \
CppunitTest_sc_tableconditionalentryobj \
CppunitTest_sc_tableconditionalformat \
+   CppunitTest_sc_tablerowobj \
CppunitTest_sc_tablerowsobj \
CppunitTest_sc_tablesheetobj \
CppunitTest_sc_tablesheetsobj \
diff --git a/sc/qa/extras/sctablerowobj.cxx b/sc/qa/extras/sctablerowobj.cxx
new file mode 100644
index ..381c4dc3a78c
--- /dev/null
+++ b/sc/qa/extras/sctablerowobj.cxx
@@ -0,0 +1,124 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScTableRowObj : public CalcUnoApiTest, public apitest::XPropertySet
+{
+public:
+ScTableRowObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-04-01 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv |2 --
 sc/qa/extras/scautoformatobj.cxx|9 
-
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 8f29f31b41136acbea8ca21525f9623948a1a4b8
Author: Jens Carl 
AuthorDate: Tue Apr 2 00:12:28 2019 +
Commit: Jens Carl 
CommitDate: Tue Apr 2 03:09:35 2019 +0200

tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScAutoFormatObj.

Change-Id: I9ef1ec50c7decbc610a60cdc487b11cad2791b1b
Reviewed-on: https://gerrit.libreoffice.org/70096
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv
index ac08c66f293c..96344c70f53d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv
@@ -1,5 +1,3 @@
-"ScAutoFormatObj";"com::sun::star::container::XNamed";"getName()"
-"ScAutoFormatObj";"com::sun::star::container::XNamed";"setName()"
 "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
 "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
 "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx
index 1f64c0b9c295..525160e86ffc 100644
--- a/sc/qa/extras/scautoformatobj.cxx
+++ b/sc/qa/extras/scautoformatobj.cxx
@@ -11,6 +11,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 
@@ -31,7 +32,8 @@ class ScAutoFormatObj : public CalcUnoApiTest,
 public apitest::TableAutoFormat,
 public apitest::XElementAccess,
 public apitest::XEnumerationAccess,
-public apitest::XIndexAccess
+public apitest::XIndexAccess,
+public apitest::XNamed
 {
 public:
 ScAutoFormatObj();
@@ -56,6 +58,10 @@ public:
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
 
+// XNamed
+CPPUNIT_TEST(testGetName);
+CPPUNIT_TEST(testSetName);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -66,6 +72,7 @@ ScAutoFormatObj::ScAutoFormatObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , XElementAccess(cppu::UnoType::get())
 , XIndexAccess(16)
+, XNamed("Default")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-04-01 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv |
2 --
 sc/qa/extras/scsubtotaldescriptorbase.cxx|
9 +
 2 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit 5e67b38309b4c9c925530cafa6b9476f9839a48e
Author: Jens Carl 
AuthorDate: Mon Apr 1 06:20:03 2019 +
Commit: Jens Carl 
CommitDate: Mon Apr 1 09:27:55 2019 +0200

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScSubTotalDescriptorBase.

Change-Id: I49a599b3670e709ee3170fd62c4c06295645b278
Reviewed-on: https://gerrit.libreoffice.org/70040
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv
index a001e7a8497c..1bcb85bf438f 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv
@@ -1,5 +1,3 @@
-"ScSubTotalDescriptorBase";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScSubTotalDescriptorBase";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
 
"ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
 
"ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/qa/extras/scsubtotaldescriptorbase.cxx 
b/sc/qa/extras/scsubtotaldescriptorbase.cxx
index 93ff4de17081..54176abd6ea1 100644
--- a/sc/qa/extras/scsubtotaldescriptorbase.cxx
+++ b/sc/qa/extras/scsubtotaldescriptorbase.cxx
@@ -8,10 +8,12 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -22,6 +24,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -33,6 +36,7 @@ namespace sc_apitest
 {
 class ScSubTotalDescriptorBase : public CalcUnoApiTest,
  public apitest::SubTotalDescriptor,
+ public apitest::XElementAccess,
  public apitest::XEnumerationAccess,
  public apitest::XIndexAccess,
  public apitest::XSubTotalDescriptor
@@ -49,6 +53,10 @@ public:
 // SubTotalDescriptor
 CPPUNIT_TEST(testSubTotalDescriptorProperties);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
@@ -68,6 +76,7 @@ private:
 
 ScSubTotalDescriptorBase::ScSubTotalDescriptorBase()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1)
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-31 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv |
2 --
 sc/qa/extras/scsubtotaldescriptorbase.cxx|
7 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit ae75372dbdb74eaf959b566f1d9c2b77043e736a
Author: Jens Carl 
AuthorDate: Mon Apr 1 05:28:57 2019 +
Commit: Jens Carl 
CommitDate: Mon Apr 1 08:19:21 2019 +0200

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScSubTotalDescriptorBase.

Change-Id: I86f39c2ef5559f8b5ac4d45daeb6bcad1ab01c8c
Reviewed-on: https://gerrit.libreoffice.org/70039
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv
index 2ba64e29988c..a001e7a8497c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv
@@ -1,5 +1,3 @@
-"ScSubTotalDescriptorBase";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScSubTotalDescriptorBase";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScSubTotalDescriptorBase";"com::sun::star::container::XElementAccess";"getElementType()"
 
"ScSubTotalDescriptorBase";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
diff --git a/sc/qa/extras/scsubtotaldescriptorbase.cxx 
b/sc/qa/extras/scsubtotaldescriptorbase.cxx
index 5d77331f3801..93ff4de17081 100644
--- a/sc/qa/extras/scsubtotaldescriptorbase.cxx
+++ b/sc/qa/extras/scsubtotaldescriptorbase.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 
@@ -33,6 +34,7 @@ namespace sc_apitest
 class ScSubTotalDescriptorBase : public CalcUnoApiTest,
  public apitest::SubTotalDescriptor,
  public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
  public apitest::XSubTotalDescriptor
 {
 public:
@@ -50,6 +52,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XSubTotalDescriptor
 CPPUNIT_TEST(testAddNew);
 CPPUNIT_TEST(testClear);
@@ -62,6 +68,7 @@ private:
 
 ScSubTotalDescriptorBase::ScSubTotalDescriptorBase()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(1)
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-28 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv |3 -
 sc/qa/extras/scsheetlinkobj.cxx|   30 
+-
 sc/qa/extras/testdocuments/ScSheetLinkObj.ods  |binary
 3 files changed, 17 insertions(+), 16 deletions(-)

New commits:
commit 8d45d5ee399d0148672e79c379f5d29e1c8ba6f3
Author: Jens Carl 
AuthorDate: Thu Mar 28 22:21:59 2019 +
Commit: Jens Carl 
CommitDate: Fri Mar 29 01:36:42 2019 +0100

tdf#45904 Move XRefreshable Java tests to C++

Move XRefreshable Java tests to C++ for ScSheetLinkObj.

Change-Id: I8225a3eb8be903ebcf51950431a5f6810a5aaa4f
Reviewed-on: https://gerrit.libreoffice.org/69906
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv
index fb11276d69cb..2d72f6819568 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv
@@ -1,6 +1,3 @@
-"ScSheetLinkObj";"com::sun::star::util::XRefreshable";"refresh()"
-"ScSheetLinkObj";"com::sun::star::util::XRefreshable";"addRefreshListener()"
-"ScSheetLinkObj";"com::sun::star::util::XRefreshable";"removeRefreshListener()"
 "ScSheetLinkObj";"com::sun::star::container::XNamed";"getName()"
 "ScSheetLinkObj";"com::sun::star::container::XNamed";"setName()"
 "ScSheetLinkObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
diff --git a/sc/qa/extras/scsheetlinkobj.cxx b/sc/qa/extras/scsheetlinkobj.cxx
index fbad33a9f18c..2819c915b6f0 100644
--- a/sc/qa/extras/scsheetlinkobj.cxx
+++ b/sc/qa/extras/scsheetlinkobj.cxx
@@ -9,6 +9,8 @@
 
 #include 
 #include 
+#include 
+#include 
 
 #include 
 #include 
@@ -24,12 +26,12 @@
 #include 
 
 using namespace css;
-using namespace css::uno;
-using namespace com::sun::star;
 
 namespace sc_apitest
 {
-class ScSheetLinkObj : public CalcUnoApiTest, public apitest::SheetLink
+class ScSheetLinkObj : public CalcUnoApiTest,
+   public apitest::SheetLink,
+   public apitest::XRefreshable
 {
 public:
 ScSheetLinkObj();
@@ -44,6 +46,9 @@ public:
 // SheetLink
 CPPUNIT_TEST(testSheetLinkProperties);
 
+// XRefreshable
+CPPUNIT_TEST(testRefreshListener);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -57,18 +62,17 @@ ScSheetLinkObj::ScSheetLinkObj()
 
 uno::Reference ScSheetLinkObj::init()
 {
-uno::Reference xDoc(mxComponent, 
UNO_QUERY_THROW);
+uno::Reference xDoc(mxComponent, 
uno::UNO_QUERY_THROW);
 
-uno::Reference xSheets(xDoc->getSheets(), 
UNO_QUERY_THROW);
-uno::Reference xIA(xSheets, UNO_QUERY_THROW);
-uno::Reference xSheet(xIA->getByIndex(0), 
UNO_QUERY_THROW);
+uno::Reference xSheets(xDoc->getSheets(), 
uno::UNO_QUERY_THROW);
+uno::Reference xIA(xSheets, uno::UNO_QUERY_THROW);
+uno::Reference xSheet(xIA->getByIndex(0), 
uno::UNO_QUERY_THROW);
 
-uno::Reference xSL(xSheet, UNO_QUERY_THROW);
-OUString aFileURL;
-createFileURL("ScSheetLinkObj.ods", aFileURL);
-xSL->link(aFileURL, "Sheet1", "", "", sheet::SheetLinkMode_VALUE);
+uno::Reference xSL(xSheet, uno::UNO_QUERY_THROW);
+
xSL->link(m_directories.getURLFromSrc("/sc/qa/extras/testdocuments/ScSheetLinkObj.ods"),
+  "Sheet1", "", "", sheet::SheetLinkMode_VALUE);
 
-uno::Reference xPropSet(xDoc, UNO_QUERY_THROW);
+uno::Reference xPropSet(xDoc, uno::UNO_QUERY_THROW);
 uno::Reference sheetLinks;
 CPPUNIT_ASSERT(xPropSet->getPropertyValue("SheetLinks") >>= sheetLinks);
 CPPUNIT_ASSERT(sheetLinks.is());
@@ -94,7 +98,7 @@ void ScSheetLinkObj::tearDown()
 
 CPPUNIT_TEST_SUITE_REGISTRATION(ScSheetLinkObj);
 
-} // end namespace
+} // namespace sc_apitest
 
 CPPUNIT_PLUGIN_IMPLEMENT();
 
diff --git a/sc/qa/extras/testdocuments/ScSheetLinkObj.ods 
b/sc/qa/extras/testdocuments/ScSheetLinkObj.ods
new file mode 100644
index ..7f09e0d978eb
Binary files /dev/null and b/sc/qa/extras/testdocuments/ScSheetLinkObj.ods 
differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-27 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv |2 -
 sc/qa/extras/scdrawpageobj.cxx|   11 +-
 2 files changed, 10 insertions(+), 3 deletions(-)

New commits:
commit f897e80d063436be07356049f595efe5afb04859
Author: Jens Carl 
AuthorDate: Wed Mar 27 23:14:48 2019 +
Commit: Jens Carl 
CommitDate: Thu Mar 28 06:27:15 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScDrawPageObj.

Change-Id: I3a51c77f524311416ac054005c0632e5127efb79
Reviewed-on: https://gerrit.libreoffice.org/69871
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
index 11bfae0d02d9..7273ff229a1d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
@@ -1,8 +1,6 @@
 "ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getImplementationName()"
 "ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"supportsService()"
 
"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getSupportedServiceNames()"
-"ScDrawPageObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDrawPageObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapes";"add()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapes";"remove()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapeGrouper";"group()"
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx
index 77beb3629528..9f8e9194598d 100644
--- a/sc/qa/extras/scdrawpageobj.cxx
+++ b/sc/qa/extras/scdrawpageobj.cxx
@@ -9,7 +9,9 @@
 
 #include 
 #include 
+#include 
 #include 
+#include 
 
 #include 
 #include 
@@ -26,7 +28,9 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScDrawPageObj : public CalcUnoApiTest, public apitest::XIndexAccess
+class ScDrawPageObj : public CalcUnoApiTest,
+  public apitest::XElementAccess,
+  public apitest::XIndexAccess
 {
 public:
 ScDrawPageObj();
@@ -37,6 +41,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDrawPageObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XIndexAccess
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
@@ -49,6 +57,7 @@ private:
 
 ScDrawPageObj::ScDrawPageObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(2)
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-27 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv |3 ---
 sc/qa/extras/scdrawpageobj.cxx|   10 +-
 2 files changed, 9 insertions(+), 4 deletions(-)

New commits:
commit eb0653ee80ad7249fde9ff752b56316fb98c4592
Author: Jens Carl 
AuthorDate: Wed Mar 27 23:25:38 2019 +
Commit: Jens Carl 
CommitDate: Thu Mar 28 06:27:41 2019 +0100

tdf#45904 Move XServiceInfo Java tests to C++

Move XServiceInfo Java tests to C++ for ScDrawPageObj.

Change-Id: Icc2c97296f549763068475be18c00a23b7cd73dc
Reviewed-on: https://gerrit.libreoffice.org/69872
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
index 7273ff229a1d..c742ce529e4f 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
@@ -1,6 +1,3 @@
-"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getImplementationName()"
-"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"supportsService()"
-"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getSupportedServiceNames()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapes";"add()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapes";"remove()"
 "ScDrawPageObj";"com::sun::star::drawing::XShapeGrouper";"group()"
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx
index 9f8e9194598d..de8d8baa4e9c 100644
--- a/sc/qa/extras/scdrawpageobj.cxx
+++ b/sc/qa/extras/scdrawpageobj.cxx
@@ -11,6 +11,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -30,7 +31,8 @@ namespace sc_apitest
 {
 class ScDrawPageObj : public CalcUnoApiTest,
   public apitest::XElementAccess,
-  public apitest::XIndexAccess
+  public apitest::XIndexAccess,
+  public apitest::XServiceInfo
 {
 public:
 ScDrawPageObj();
@@ -49,6 +51,11 @@ public:
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
 
+// XServiceInfo
+CPPUNIT_TEST(testGetImplementationName);
+CPPUNIT_TEST(testGetSupportedServiceNames);
+CPPUNIT_TEST(testSupportsService);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -59,6 +66,7 @@ ScDrawPageObj::ScDrawPageObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , XElementAccess(cppu::UnoType::get())
 , XIndexAccess(2)
+, XServiceInfo("ScPageObj", "com.sun.star.sheet.SpreadsheetDrawPage")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_drawpageobj.mk sc/Module_sc.mk sc/qa

2019-03-27 Thread Jens Carl (via logerrit)
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv |2 
 sc/CppunitTest_sc_drawpageobj.mk  |   43 
 sc/Module_sc.mk   |1 
 sc/qa/extras/scdrawpageobj.cxx|   98 ++
 4 files changed, 142 insertions(+), 2 deletions(-)

New commits:
commit ed6a71eafa61bade50219d2ff6233a42ab6d1c17
Author: Jens Carl 
AuthorDate: Wed Mar 27 18:43:29 2019 +
Commit: Jens Carl 
CommitDate: Wed Mar 27 23:53:32 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScDrawPageObj.

Change-Id: I8b0c80b9213130870ce5445bcf52705df367cb0e
Reviewed-on: https://gerrit.libreoffice.org/69864
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
index a5afd6833915..11bfae0d02d9 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
@@ -1,5 +1,3 @@
-"ScDrawPageObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDrawPageObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getImplementationName()"
 "ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"supportsService()"
 
"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getSupportedServiceNames()"
diff --git a/sc/CppunitTest_sc_drawpageobj.mk b/sc/CppunitTest_sc_drawpageobj.mk
new file mode 100644
index ..05bbaef9eb37
--- /dev/null
+++ b/sc/CppunitTest_sc_drawpageobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_drawpageobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_drawpageobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_drawpageobj, \
+   sc/qa/extras/scdrawpageobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_drawpageobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_drawpageobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_drawpageobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_drawpageobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_drawpageobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_drawpageobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_drawpageobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index e5975b78352e..7e014431f6a5 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -140,6 +140,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_ddelinkobj \
CppunitTest_sc_ddelinksobj \
CppunitTest_sc_documentconfigurationobj \
+   CppunitTest_sc_drawpageobj \
CppunitTest_sc_drawpagesobj \
CppunitTest_sc_editfieldobj_cell \
CppunitTest_sc_editfieldobj_header \
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx
new file mode 100644
index ..77beb3629528
--- /dev/null
+++ b/sc/qa/extras/scdrawpageobj.cxx
@@ -0,0 +1,98 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScDrawPageObj : public CalcUnoApiTest, public apitest::XIndexAccess
+{
+public:
+ScDrawPageObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScDrawPageObj);
+
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;
+};
+
+ScDrawPageObj::ScDrawPageObj()
+: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(2)
+{
+}
+
+uno::Reference ScDrawPageObj::init()
+{
+uno::Reference xDoc(m_xComponent, 
uno::

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-16 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv |2 -
 sc/qa/extras/scautoformatsobj.cxx|   12 
++
 2 files changed, 12 insertions(+), 2 deletions(-)

New commits:
commit b8e7f938e4abbe39623d307ed7fe27a2916e260c
Author: Jens Carl 
AuthorDate: Sat Mar 16 19:23:41 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 17 02:41:07 2019 +0100

tdf#45904 Move XNameContainer Java tests to C++

Move XNameContainer Java tests to C++ for ScAutoFormatsObj.

Change-Id: I5b5a25a1774e5fbd212c6c7edf65a1464eb0356c
Reviewed-on: https://gerrit.libreoffice.org/69347
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
index 1e3f8d0e8359..f8e15e5ca39b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
@@ -1,5 +1,3 @@
-"ScAutoFormatsObj";"com::sun::star::container::XNameContainer";"insertByName()"
-"ScAutoFormatsObj";"com::sun::star::container::XNameContainer";"removeByName()"
 "ScAutoFormatsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScAutoFormatsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScAutoFormatsObj";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/qa/extras/scautoformatsobj.cxx 
b/sc/qa/extras/scautoformatsobj.cxx
index f9dece97320b..6613b93ead88 100644
--- a/sc/qa/extras/scautoformatsobj.cxx
+++ b/sc/qa/extras/scautoformatsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -25,6 +26,7 @@ namespace sc_apitest
 {
 class ScAutoFormatsObj : public CalcUnoApiTest,
  public apitest::XNameAccess,
+ public apitest::XNameContainer,
  public apitest::XNameReplace
 {
 public:
@@ -41,6 +43,13 @@ public:
 CPPUNIT_TEST(testGetElementNames);
 CPPUNIT_TEST(testHasByName);
 
+// XNameContainer
+CPPUNIT_TEST(testInsertByName);
+CPPUNIT_TEST(testInsertByNameEmptyName);
+CPPUNIT_TEST(testInsertByNameDuplicate);
+CPPUNIT_TEST(testRemoveByName);
+CPPUNIT_TEST(testRemoveByNameNoneExistingElement);
+
 // XNameReplace
 CPPUNIT_TEST(testReplaceByName);
 
@@ -53,6 +62,7 @@ private:
 ScAutoFormatsObj::ScAutoFormatsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , XNameAccess("Default")
+, XNameContainer("ScAutoFormatsObj")
 , XNameReplace("ScAutoFormatsObj")
 {
 }
@@ -69,6 +79,8 @@ uno::Reference ScAutoFormatsObj::init()
 xNC->insertByName("ScAutoFormatsObj",
   
uno::makeAny(xMSF->createInstance("com.sun.star.sheet.TableAutoFormat")));
 }
+// XNameContainer
+
setElement(uno::makeAny(xMSF->createInstance("com.sun.star.sheet.TableAutoFormat")));
 // XNameReplace
 
setReplacementElement(uno::makeAny(xMSF->createInstance("com.sun.star.sheet.TableAutoFormat")));
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-16 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv |1 
 sc/qa/extras/scautoformatsobj.cxx|   20 
+-
 2 files changed, 19 insertions(+), 2 deletions(-)

New commits:
commit bb9728bbf9bb29ef2b6ca582a382f66e9adf2623
Author: Jens Carl 
AuthorDate: Sat Mar 16 17:37:41 2019 +
Commit: Jens Carl 
CommitDate: Sat Mar 16 20:14:47 2019 +0100

tdf#45904 Move XNameReplace Java test to C++

Move XNameReplace Java test to C++ for ScAutoFormatsObj.

Change-Id: Iadde8031d9efbec12de76f889175029be448df13
Reviewed-on: https://gerrit.libreoffice.org/69342
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
index c96b965eebdb..1e3f8d0e8359 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
@@ -1,4 +1,3 @@
-"ScAutoFormatsObj";"com::sun::star::container::XNameReplace";"replaceByName()"
 "ScAutoFormatsObj";"com::sun::star::container::XNameContainer";"insertByName()"
 "ScAutoFormatsObj";"com::sun::star::container::XNameContainer";"removeByName()"
 "ScAutoFormatsObj";"com::sun::star::container::XIndexAccess";"getCount()"
diff --git a/sc/qa/extras/scautoformatsobj.cxx 
b/sc/qa/extras/scautoformatsobj.cxx
index 7ee677a51351..c3c1f30b0468 100644
--- a/sc/qa/extras/scautoformatsobj.cxx
+++ b/sc/qa/extras/scautoformatsobj.cxx
@@ -9,18 +9,23 @@
 
 #include 
 #include 
+#include 
 
+#include 
 #include 
 #include 
 #include 
 
+#include 
 #include 
 
 using namespace css;
 
 namespace sc_apitest
 {
-class ScAutoFormatsObj : public CalcUnoApiTest, public apitest::XNameAccess
+class ScAutoFormatsObj : public CalcUnoApiTest,
+ public apitest::XNameAccess,
+ public apitest::XNameReplace
 {
 public:
 ScAutoFormatsObj();
@@ -36,6 +41,9 @@ public:
 CPPUNIT_TEST(testGetElementNames);
 CPPUNIT_TEST(testHasByName);
 
+// XNameReplace
+CPPUNIT_TEST(testReplaceByName);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -45,6 +53,7 @@ private:
 ScAutoFormatsObj::ScAutoFormatsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , XNameAccess("Default")
+, XNameReplace("ScAutoFormatsObj")
 {
 }
 
@@ -54,6 +63,15 @@ uno::Reference ScAutoFormatsObj::init()
 uno::Reference xTAF(
 xMSF->createInstance("com.sun.star.sheet.TableAutoFormats"), 
uno::UNO_QUERY_THROW);
 
+uno::Reference xNC(xTAF, uno::UNO_QUERY_THROW);
+if (!xNC->hasByName("ScAutoFormatsObj"))
+{
+xNC->insertByName("ScAutoFormatsObj",
+  
uno::makeAny(xMSF->createInstance("com.sun.star.sheet.TableAutoFormat")));
+}
+// XNameReplace
+
setReplacmentElement(uno::makeAny(xMSF->createInstance("com.sun.star.sheet.TableAutoFormat")));
+
 return xTAF;
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_autoformatsobj.mk sc/Module_sc.mk sc/qa

2019-03-16 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv |3 
 sc/CppunitTest_sc_autoformatsobj.mk  |   43 +
 sc/Module_sc.mk  |1 
 sc/qa/extras/scautoformatsobj.cxx|   79 
++
 4 files changed, 123 insertions(+), 3 deletions(-)

New commits:
commit ad04121efa8dd513bc0564515b5f305bb1549109
Author: Jens Carl 
AuthorDate: Fri Mar 15 20:32:15 2019 +
Commit: Jens Carl 
CommitDate: Sat Mar 16 17:15:00 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScAutoFormatsObj.

Change-Id: If0ce836f2d0628fa3e4a19f6a1789b74018e0229
Reviewed-on: https://gerrit.libreoffice.org/69329
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
index 048a06f520c2..c96b965eebdb 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatsObj.csv
@@ -1,6 +1,3 @@
-"ScAutoFormatsObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScAutoFormatsObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScAutoFormatsObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScAutoFormatsObj";"com::sun::star::container::XNameReplace";"replaceByName()"
 "ScAutoFormatsObj";"com::sun::star::container::XNameContainer";"insertByName()"
 "ScAutoFormatsObj";"com::sun::star::container::XNameContainer";"removeByName()"
diff --git a/sc/CppunitTest_sc_autoformatsobj.mk 
b/sc/CppunitTest_sc_autoformatsobj.mk
new file mode 100644
index ..d0bc00b3e478
--- /dev/null
+++ b/sc/CppunitTest_sc_autoformatsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_autoformatsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_autoformatsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_autoformatsobj, \
+sc/qa/extras/scautoformatsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_autoformatsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_autoformatsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_autoformatsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_autoformatsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_autoformatsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_autoformatsobj,\
+$(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_autoformatsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 3718ad342d5b..2b89b70f5922 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -107,6 +107,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_arealinkobj \
CppunitTest_sc_arealinksobj \
CppunitTest_sc_autoformatobj \
+   CppunitTest_sc_autoformatsobj \
CppunitTest_sc_cellcursorobj \
CppunitTest_sc_cellfieldsobj \
CppunitTest_sc_cellformatsenumeration \
diff --git a/sc/qa/extras/scautoformatsobj.cxx 
b/sc/qa/extras/scautoformatsobj.cxx
new file mode 100644
index ..7ee677a51351
--- /dev/null
+++ b/sc/qa/extras/scautoformatsobj.cxx
@@ -0,0 +1,79 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScAutoFormatsObj : public CalcUnoApiTest, public apitest::XNameAccess
+{
+public:
+ScAutoFormatsObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScAutoFormatsObj);
+
+// XNameAccess
+CPPUNIT_TEST(testGetByName);
+CPPUNIT_TEST(testGetElementNames);
+CPPUNIT_TEST(testHasByName);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;
+};
+
+ScAutoFormatsObj::ScAutoFormatsObj()
+: CalcUnoApiTest("/sc

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-12 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv |1 -
 sc/qa/extras/sctablecolumnsobj.cxx|5 +
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 78971bf2793e8f79b54e220305fe7d44760385bf
Author: Jens Carl 
AuthorDate: Tue Mar 12 23:48:22 2019 +
Commit: Jens Carl 
CommitDate: Wed Mar 13 06:40:35 2019 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScTableColumnsObj.

Change-Id: Icb2b61a323e69bfc5d7cef1f574bac79eaa2b220
Reviewed-on: https://gerrit.libreoffice.org/69147
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
index babe63642aba..43c4b321bc7d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
@@ -1,3 +1,2 @@
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"insertByIndex()"
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"removeByIndex()"
-"ScTableColumnsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/sctablecolumnsobj.cxx 
b/sc/qa/extras/sctablecolumnsobj.cxx
index aa361640e45d..92b7e790f087 100644
--- a/sc/qa/extras/sctablecolumnsobj.cxx
+++ b/sc/qa/extras/sctablecolumnsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -31,6 +32,7 @@ namespace sc_apitest
 {
 class ScTableColumnsObj : public CalcUnoApiTest,
   public apitest::XElementAccess,
+  public apitest::XEnumerationAccess,
   public apitest::XIndexAccess,
   public apitest::XNameAccess
 {
@@ -47,6 +49,9 @@ public:
 CPPUNIT_TEST(testGetElementType);
 CPPUNIT_TEST(testHasElements);
 
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
 // XIndexAccess
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-12 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv |2 --
 sc/qa/extras/sctablecolumnsobj.cxx|8 

 2 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 847dfdecb5fc5e86364563315a4488616e491c4c
Author: Jens Carl 
AuthorDate: Tue Mar 12 23:44:55 2019 +
Commit: Jens Carl 
CommitDate: Wed Mar 13 06:40:06 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScTableColumnsObj.

Change-Id: Id7128fbf5fe885045173d62eb954959e1f8aca44
Reviewed-on: https://gerrit.libreoffice.org/69146
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
index 18217a81947b..babe63642aba 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
@@ -1,5 +1,3 @@
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"insertByIndex()"
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"removeByIndex()"
-"ScTableColumnsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScTableColumnsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScTableColumnsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/sctablecolumnsobj.cxx 
b/sc/qa/extras/sctablecolumnsobj.cxx
index 5e493bfc4f14..aa361640e45d 100644
--- a/sc/qa/extras/sctablecolumnsobj.cxx
+++ b/sc/qa/extras/sctablecolumnsobj.cxx
@@ -8,8 +8,10 @@
  */
 
 #include 
+#include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -28,6 +30,7 @@ using namespace css;
 namespace sc_apitest
 {
 class ScTableColumnsObj : public CalcUnoApiTest,
+  public apitest::XElementAccess,
   public apitest::XIndexAccess,
   public apitest::XNameAccess
 {
@@ -40,6 +43,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScTableColumnsObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XIndexAccess
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
@@ -57,6 +64,7 @@ private:
 
 ScTableColumnsObj::ScTableColumnsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1024)
 , XNameAccess("ABC")
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-12 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv |2 --
 sc/qa/extras/sctablecolumnsobj.cxx|   10 
+-
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 11234dde180f8449f07b4777b51f1fc6d713ffd6
Author: Jens Carl 
AuthorDate: Tue Mar 12 23:38:40 2019 +
Commit: Jens Carl 
CommitDate: Wed Mar 13 06:39:42 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScTableColumnsObj.

Change-Id: Id5b6296e405c108129df0bce4ed4204ede320f3c
Reviewed-on: https://gerrit.libreoffice.org/69144
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
index 7a331333c7f9..18217a81947b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
@@ -1,5 +1,3 @@
-"ScTableColumnsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScTableColumnsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"insertByIndex()"
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"removeByIndex()"
 
"ScTableColumnsObj";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/qa/extras/sctablecolumnsobj.cxx 
b/sc/qa/extras/sctablecolumnsobj.cxx
index ebf72f45ae10..5e493bfc4f14 100644
--- a/sc/qa/extras/sctablecolumnsobj.cxx
+++ b/sc/qa/extras/sctablecolumnsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -26,7 +27,9 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScTableColumnsObj : public CalcUnoApiTest, public apitest::XNameAccess
+class ScTableColumnsObj : public CalcUnoApiTest,
+  public apitest::XIndexAccess,
+  public apitest::XNameAccess
 {
 public:
 ScTableColumnsObj();
@@ -37,6 +40,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScTableColumnsObj);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNameAccess
 CPPUNIT_TEST(testGetByName);
 CPPUNIT_TEST(testGetElementNames);
@@ -50,6 +57,7 @@ private:
 
 ScTableColumnsObj::ScTableColumnsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(1024)
 , XNameAccess("ABC")
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_tablecolumnsobj.mk sc/Module_sc.mk sc/qa

2019-03-12 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv |3 
 sc/CppunitTest_sc_tablecolumnsobj.mk  |   43 
 sc/Module_sc.mk   |1 
 sc/qa/extras/sctablecolumnsobj.cxx|   89 
++
 4 files changed, 133 insertions(+), 3 deletions(-)

New commits:
commit 3407fef63579d804f093fea674d1e0319809e4bc
Author: Jens Carl 
AuthorDate: Tue Mar 12 23:33:42 2019 +
Commit: Jens Carl 
CommitDate: Wed Mar 13 06:39:12 2019 +0100

tdf#45904 Move XNameAccess Java test to C++

Move XNameAccess Java test to C++ for ScTableColumnsObj.

Change-Id: I3c9acde1b9e390c6a088bde567996728db855c2e
Reviewed-on: https://gerrit.libreoffice.org/69143
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
index f050ff0b7be5..7a331333c7f9 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnsObj.csv
@@ -1,6 +1,3 @@
-"ScTableColumnsObj";"com::sun::star::container::XNameAccess#optional";"getByName()"
-"ScTableColumnsObj";"com::sun::star::container::XNameAccess#optional";"getElementNames()"
-"ScTableColumnsObj";"com::sun::star::container::XNameAccess#optional";"hasByName()"
 "ScTableColumnsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScTableColumnsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScTableColumnsObj";"com::sun::star::table::XTableColumns";"insertByIndex()"
diff --git a/sc/CppunitTest_sc_tablecolumnsobj.mk 
b/sc/CppunitTest_sc_tablecolumnsobj.mk
new file mode 100644
index ..e5f13366438b
--- /dev/null
+++ b/sc/CppunitTest_sc_tablecolumnsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_tablecolumnsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_tablecolumnsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_tablecolumnsobj, \
+   sc/qa/extras/sctablecolumnsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_tablecolumnsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_tablecolumnsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_tablecolumnsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_tablecolumnsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_tablecolumnsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_tablecolumnsobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_tablecolumnsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 58705a4cd32c..3718ad342d5b 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -191,6 +191,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_stylefamilyobj \
CppunitTest_sc_subtotaldescriptorbaseobj \
CppunitTest_sc_subtotalfieldobj \
+   CppunitTest_sc_tablecolumnsobj \
CppunitTest_sc_tableconditionalentryobj \
CppunitTest_sc_tableconditionalformat \
CppunitTest_sc_tablerowsobj \
diff --git a/sc/qa/extras/sctablecolumnsobj.cxx 
b/sc/qa/extras/sctablecolumnsobj.cxx
new file mode 100644
index ..ebf72f45ae10
--- /dev/null
+++ b/sc/qa/extras/sctablecolumnsobj.cxx
@@ -0,0 +1,89 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScTableColumnsObj : public CalcUnoApiTest, public apitest::XNameAccess
+{
+public:
+ScTableColumnsObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScTableColumnsObj);
+
+// XNameAccess
+CPPUNIT_TEST(testGetByName);
+CPPUNIT_TEST(testGetElementNames);
+CPPUNIT_TEST(testHasByName);
+

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa test/source

2019-03-10 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv |2 
 sc/qa/extras/scstylefamilyobj.cxx|   14 +
 test/source/container/xnamecontainer.cxx |   25 
+++---
 3 files changed, 31 insertions(+), 10 deletions(-)

New commits:
commit dc28443e1ae7d160127e0ccbc7362b9756660152
Author: Jens Carl 
AuthorDate: Mon Mar 11 04:34:16 2019 +
Commit: Jens Carl 
CommitDate: Mon Mar 11 06:44:13 2019 +0100

tdf#45904 Move XNameContainer Java tests to C++

Move XNameContainer Java tests to C++ for ScStyleFamilyObj.

Change-Id: I8ff465262258ef5277d470369cc05f48bba25ce4
Reviewed-on: https://gerrit.libreoffice.org/69029
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
index 4c5519b5b7f8..10e3d65acd85 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
@@ -1,3 +1 @@
 
"ScStyleFamilyObj";"com::sun::star::container::XNameReplace#optional";"replaceByName()"
-"ScStyleFamilyObj";"com::sun::star::container::XNameContainer#optional";"insertByName()"
-"ScStyleFamilyObj";"com::sun::star::container::XNameContainer#optional";"removeByName()"
diff --git a/sc/qa/extras/scstylefamilyobj.cxx 
b/sc/qa/extras/scstylefamilyobj.cxx
index c9df85f5cc92..2ca381c92d33 100644
--- a/sc/qa/extras/scstylefamilyobj.cxx
+++ b/sc/qa/extras/scstylefamilyobj.cxx
@@ -11,6 +11,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -32,7 +33,8 @@ namespace sc_apitest
 class ScStyleFamilyObj : public CalcUnoApiTest,
  public apitest::XElementAccess,
  public apitest::XIndexAccess,
- public apitest::XNameAccess
+ public apitest::XNameAccess,
+ public apitest::XNameContainer
 {
 public:
 ScStyleFamilyObj();
@@ -56,6 +58,13 @@ public:
 CPPUNIT_TEST(testGetElementNames);
 CPPUNIT_TEST(testHasByName);
 
+// XNameContainer
+CPPUNIT_TEST(testInsertByName);
+CPPUNIT_TEST(testInsertByNameDuplicate);
+CPPUNIT_TEST(testInsertByNameEmptyName);
+CPPUNIT_TEST(testRemoveByName);
+CPPUNIT_TEST(testRemoveByNameNoneExistingElement);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -67,6 +76,7 @@ ScStyleFamilyObj::ScStyleFamilyObj()
 , XElementAccess(cppu::UnoType::get())
 , XIndexAccess(19)
 , XNameAccess("Default")
+, XNameContainer("Default")
 {
 }
 
@@ -82,6 +92,8 @@ uno::Reference ScStyleFamilyObj::init()
 uno::Reference xMSF(m_xComponent, 
uno::UNO_QUERY_THROW);
 uno::Reference 
xCS(xMSF->createInstance("com.sun.star.style.CellStyle"),
 uno::UNO_QUERY_THROW);
+// XNameContainer
+
setElement(uno::makeAny(xMSF->createInstance("com.sun.star.style.CellStyle")));
 
 uno::Reference xNC(xNA_SF, 
uno::UNO_QUERY_THROW);
 xNC->insertByName("ScStyleFamilyObj", uno::makeAny(xCS));
diff --git a/test/source/container/xnamecontainer.cxx 
b/test/source/container/xnamecontainer.cxx
index c871debaecce..e5e8d8dead8e 100644
--- a/test/source/container/xnamecontainer.cxx
+++ b/test/source/container/xnamecontainer.cxx
@@ -56,13 +56,24 @@ void XNameContainer::testInsertByNameDuplicate()
 {
 uno::Reference xNameContainer(init(), 
uno::UNO_QUERY_THROW);
 
-uno::Any aAny;
-CPPUNIT_ASSERT(!xNameContainer->hasByName(m_aName));
-xNameContainer->insertByName(m_aName, aAny);
-CPPUNIT_ASSERT(xNameContainer->hasByName(m_aName));
-
-CPPUNIT_ASSERT_THROW(xNameContainer->insertByName(m_aName, aAny),
- container::ElementExistException);
+CPPUNIT_ASSERT(!xNameContainer->hasByName(m_aName + "Duplicate"));
+xNameContainer->insertByName(m_aName + "Duplicate", m_aElement);
+CPPUNIT_ASSERT(xNameContainer->hasByName(m_aName + "Duplicate"));
+
+bool bExceptionThrown = false;
+try
+{
+xNameContainer->insertByName(m_aName + "Duplicate", m_aElement);
+}
+catch (const container::ElementExistException&)
+{
+bExceptionThrown = true;
+}
+catch (const lang::IllegalArgumentException&)
+{
+bExceptionThrown = true;
+}
+CPPUNIT_ASSERT(bExceptionThrown);
 }
 
 void XNameContainer::testRemoveByName()
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_stylefamilyobj.mk sc/Module_sc.mk sc/qa

2019-03-10 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv |3 
 sc/CppunitTest_sc_stylefamilyobj.mk  |   43 
 sc/Module_sc.mk  |1 
 sc/qa/extras/scstylefamilyobj.cxx|   94 
++
 4 files changed, 138 insertions(+), 3 deletions(-)

New commits:
commit bb0948797d42cea9541651e0f90c2990ec5229b6
Author: Jens Carl 
AuthorDate: Sun Mar 10 20:39:04 2019 +
Commit: Jens Carl 
CommitDate: Mon Mar 11 02:01:49 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScStyleFamilyObj.

Change-Id: Ib1e0481b4ea6fe63cb073948a444ddcc7f2eaa65
Reviewed-on: https://gerrit.libreoffice.org/69018
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
index d6178b16aa55..9e6efecdd398 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
@@ -1,6 +1,3 @@
-"ScStyleFamilyObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScStyleFamilyObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScStyleFamilyObj";"com::sun::star::container::XNameAccess";"hasByName()"
 
"ScStyleFamilyObj";"com::sun::star::container::XNameReplace#optional";"replaceByName()"
 
"ScStyleFamilyObj";"com::sun::star::container::XNameContainer#optional";"insertByName()"
 
"ScStyleFamilyObj";"com::sun::star::container::XNameContainer#optional";"removeByName()"
diff --git a/sc/CppunitTest_sc_stylefamilyobj.mk 
b/sc/CppunitTest_sc_stylefamilyobj.mk
new file mode 100644
index ..99c49f9416ca
--- /dev/null
+++ b/sc/CppunitTest_sc_stylefamilyobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_stylefamilyobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_stylefamilyobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_stylefamilyobj, \
+   sc/qa/extras/scstylefamilyobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_stylefamilyobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_stylefamilyobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_stylefamilyobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_stylefamilyobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_stylefamilyobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_stylefamilyobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_stylefamilyobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 7d52583f95e4..58705a4cd32c 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -188,6 +188,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_spreadsheetsettings \
CppunitTest_sc_spreadsheetsettingsobj \
CppunitTest_sc_stylefamiliesobj \
+   CppunitTest_sc_stylefamilyobj \
CppunitTest_sc_subtotaldescriptorbaseobj \
CppunitTest_sc_subtotalfieldobj \
CppunitTest_sc_tableconditionalentryobj \
diff --git a/sc/qa/extras/scstylefamilyobj.cxx 
b/sc/qa/extras/scstylefamilyobj.cxx
new file mode 100644
index ..561d492abebf
--- /dev/null
+++ b/sc/qa/extras/scstylefamilyobj.cxx
@@ -0,0 +1,94 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScStyleFamilyObj : public CalcUnoApiTest, public apitest::XNameAccess
+{
+public:
+ScStyleFamilyObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScStyleFamilyObj);
+
+// XNameAccess
+CPPUNIT_TEST(testGetByName);
+CPPUNIT_TEST(testGetElementNames);
+CPPUNIT_TEST(testHasByName);
+
+CPPUNIT_TEST_S

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-10 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv |
2 --
 sc/qa/extras/scdatapilotfieldgroupobj.cxx|
7 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 11ea5fe055ed345154138c814e38e54c6624ee89
Author: Jens Carl 
AuthorDate: Sun Mar 10 06:30:26 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 10 17:17:08 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScDataPilotFieldGroupObj.

Change-Id: I8908ede3a83ed9427ea364705020314f42a4fba0
Reviewed-on: https://gerrit.libreoffice.org/68997
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
index 84b7d4d3399f..30984b4a5986 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
@@ -1,5 +1,3 @@
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNameAccess";"getByName()"
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 41e2639be372..27de6ec202b8 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -10,6 +10,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -42,6 +43,7 @@ namespace sc_apitest
 class ScDataPilotFieldGroupObj : public CalcUnoApiTest,
  public apitest::XElementAccess,
  public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
  public apitest::XNamed
 {
 public:
@@ -60,6 +62,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNamed
 CPPUNIT_TEST(testGetName);
 CPPUNIT_TEST(testSetName);
@@ -74,6 +80,7 @@ private:
 ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , XElementAccess(cppu::UnoType::get())
+, XIndexAccess(2)
 , XNamed("Group1")
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-10 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv |
2 --
 sc/qa/extras/scdatapilotfieldgroupobj.cxx|
7 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit f59942a9c784a12fc2087b17b31a68cc0031c20c
Author: Jens Carl 
AuthorDate: Sun Mar 10 06:26:20 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 10 17:16:42 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScDataPilotFieldGroupObj.

Change-Id: Ib96439216c67d66151ceb986c9b4520226437ab8
Reviewed-on: https://gerrit.libreoffice.org/68996
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
index ffd0e8e5550c..84b7d4d3399f 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
@@ -3,5 +3,3 @@
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNameAccess";"hasByName()"
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getCount()"
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 3d0a61e72349..41e2639be372 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -39,6 +40,7 @@ using namespace css;
 namespace sc_apitest
 {
 class ScDataPilotFieldGroupObj : public CalcUnoApiTest,
+ public apitest::XElementAccess,
  public apitest::XEnumerationAccess,
  public apitest::XNamed
 {
@@ -51,6 +53,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDataPilotFieldGroupObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
@@ -67,6 +73,7 @@ private:
 
 ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XNamed("Group1")
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_datapilotfieldgroupobj.mk sc/Module_sc.mk sc/qa

2019-03-10 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv |
1 
 sc/CppunitTest_sc_datapilotfieldgroupobj.mk  |   
47 ++
 sc/Module_sc.mk  |
1 
 sc/qa/extras/scdatapilotfieldgroupobj.cxx|  
187 ++
 4 files changed, 235 insertions(+), 1 deletion(-)

New commits:
commit fda94f9e52ce6930b5fbde94411a1860c73a39ba
Author: Jens Carl 
AuthorDate: Sun Mar 10 06:13:10 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 10 17:15:53 2019 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScDataPilotFieldGroupObj.

Change-Id: I2ff5807dcf10c4a72074d528dd3275786e8ed80d
Reviewed-on: https://gerrit.libreoffice.org/68994
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
index 13fc711cf91d..789e9a09e0b8 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
@@ -7,4 +7,3 @@
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScDataPilotFieldGroupObj";"com::sun::star::container::XNamed";"getName()"
 "ScDataPilotFieldGroupObj";"com::sun::star::container::XNamed";"setName()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/CppunitTest_sc_datapilotfieldgroupobj.mk 
b/sc/CppunitTest_sc_datapilotfieldgroupobj.mk
new file mode 100644
index ..bf6002e37adc
--- /dev/null
+++ b/sc/CppunitTest_sc_datapilotfieldgroupobj.mk
@@ -0,0 +1,47 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_datapilotfieldgroupobj))
+
+$(eval $(call 
gb_CppunitTest_use_external,sc_datapilotfieldgroupobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_datapilotfieldgroupobj, \
+   sc/qa/extras/scdatapilotfieldgroupobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_datapilotfieldgroupobj, \
+   comphelper \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_datapilotfieldgroupobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_api,sc_datapilotfieldgroupobj,\
+   offapi \
+   udkapi \
+))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_datapilotfieldgroupobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_datapilotfieldgroupobj))
+
+$(eval $(call gb_CppunitTest_use_rdb,sc_datapilotfieldgroupobj,services))
+
+$(eval $(call gb_CppunitTest_use_components,sc_datapilotfieldgroupobj))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_datapilotfieldgroupobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 5927865aca8a..7d52583f95e4 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -127,6 +127,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_databaserangeobj) \
CppunitTest_sc_databaserangesobj \
CppunitTest_sc_datapilotfieldgroupitemobj \
+   CppunitTest_sc_datapilotfieldgroupobj \
CppunitTest_sc_datapilotfieldgroupsobj \
CppunitTest_sc_datapilotfieldobj \
CppunitTest_sc_datapilotfieldsobj \
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
new file mode 100644
index ..57ef2d13fdc5
--- /dev/null
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -0,0 +1,187 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScDataPilotFieldGroupObj : public CalcUnoApiTest, public 
apitest::XEnumerationAccess
+{
+public:
+ScDataPilotFieldGroupObj();
+
+ 

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-10 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv |
2 --
 sc/qa/extras/scdatapilotfieldgroupobj.cxx|   
10 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 9e04b1011ce975d9cae3909fbbf781765cf98d65
Author: Jens Carl 
AuthorDate: Sun Mar 10 06:22:48 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 10 17:16:18 2019 +0100

tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScDataPilotFieldGroupObj.

Change-Id: I93be09ab557ac221c146be0a4bb0290688fac4fe
Reviewed-on: https://gerrit.libreoffice.org/68995
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
index 789e9a09e0b8..ffd0e8e5550c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
@@ -5,5 +5,3 @@
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"getElementType()"
 
"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"hasElements()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XNamed";"getName()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XNamed";"setName()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 57ef2d13fdc5..3d0a61e72349 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 
@@ -37,7 +38,9 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScDataPilotFieldGroupObj : public CalcUnoApiTest, public 
apitest::XEnumerationAccess
+class ScDataPilotFieldGroupObj : public CalcUnoApiTest,
+ public apitest::XEnumerationAccess,
+ public apitest::XNamed
 {
 public:
 ScDataPilotFieldGroupObj();
@@ -51,6 +54,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XNamed
+CPPUNIT_TEST(testGetName);
+CPPUNIT_TEST(testSetName);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -60,6 +67,7 @@ private:
 
 ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XNamed("Group1")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_chartsobj.mk sc/Module_sc.mk sc/qa

2019-03-09 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv |1 
 sc/CppunitTest_sc_chartsobj.mk  |   44 +++
 sc/Module_sc.mk |1 
 sc/qa/extras/scchartsobj.cxx|  159 
 4 files changed, 204 insertions(+), 1 deletion(-)

New commits:
commit 12fb6e9e1a0ccdab412832a9e9a7e0cdd7c312be
Author: Jens Carl 
AuthorDate: Sat Mar 9 02:58:56 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 10 00:23:09 2019 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScChartsObj.

Change-Id: Ia9afb9fcaa5b81b140f47f309166f09af779ca52
Reviewed-on: https://gerrit.libreoffice.org/68953
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
index 62d4817cdf9b..7376ac76cbf7 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
@@ -7,4 +7,3 @@
 "ScChartsObj";"com::sun::star::table::XTableCharts";"removeByName()"
 "ScChartsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScChartsObj";"com::sun::star::container::XElementAccess";"hasElements()"
-"ScChartsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/CppunitTest_sc_chartsobj.mk b/sc/CppunitTest_sc_chartsobj.mk
new file mode 100644
index ..6459a2fe985b
--- /dev/null
+++ b/sc/CppunitTest_sc_chartsobj.mk
@@ -0,0 +1,44 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+$(eval $(call gb_CppunitTest_CppunitTest,sc_chartsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_chartsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_chartsobj, \
+   sc/qa/extras/scchartsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_chartsobj, \
+   comphelper \
+   cppu \
+   cppuhelper \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_chartsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_chartsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_chartsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_chartsobj))
+
+$(eval $(call gb_CppunitTest_use_rdb,sc_chartsobj,services))
+
+$(eval $(call gb_CppunitTest_use_components,sc_chartsobj))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_chartsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index eebd6340e8b8..5927865aca8a 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -118,6 +118,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_cellsenumeration \
CppunitTest_sc_chart2dataprovider \
CppunitTest_sc_chartobj \
+   CppunitTest_sc_chartsobj \
CppunitTest_sc_check_data_pilot_field \
CppunitTest_sc_check_data_pilot_table \
CppunitTest_sc_check_xcell_ranges_query \
diff --git a/sc/qa/extras/scchartsobj.cxx b/sc/qa/extras/scchartsobj.cxx
new file mode 100644
index ..ae7426cb965d
--- /dev/null
+++ b/sc/qa/extras/scchartsobj.cxx
@@ -0,0 +1,159 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScChartsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess
+{
+public:
+ScChartsObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScChartsObj);
+
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;
+};
+
+ScChartsObj::ScChartsObj()
+: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+{
+}
+
+uno::Reference ScChartsObj::init()
+{
+uno::Reference xDoc(m_xComponent, 
uno::UNO_QUERY_THROW);
+uno::Reference 

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-09 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv |2 --
 sc/qa/extras/scchartsobj.cxx|   12 +++-
 2 files changed, 11 insertions(+), 3 deletions(-)

New commits:
commit ff86acccbf1e52eaab73dd0857eb90593cfe401b
Author: Jens Carl 
AuthorDate: Sat Mar 9 03:07:28 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 10 00:23:29 2019 +0100

tdf#45905 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScChartsObj.

modified:   sc/qa/extras/scchartsobj.cxx

Change-Id: I8577af7eb9d29d3877e5d515bad121d3fd844716
Reviewed-on: https://gerrit.libreoffice.org/68954
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
index 7376ac76cbf7..149d92e110da 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
@@ -5,5 +5,3 @@
 "ScChartsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScChartsObj";"com::sun::star::table::XTableCharts";"addNewByName()"
 "ScChartsObj";"com::sun::star::table::XTableCharts";"removeByName()"
-"ScChartsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScChartsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scchartsobj.cxx b/sc/qa/extras/scchartsobj.cxx
index ae7426cb965d..df40621aa6a2 100644
--- a/sc/qa/extras/scchartsobj.cxx
+++ b/sc/qa/extras/scchartsobj.cxx
@@ -8,7 +8,9 @@
  */
 
 #include 
+#include 
 #include 
+#include 
 
 #include 
 #include 
@@ -20,6 +22,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -31,7 +34,9 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScChartsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess
+class ScChartsObj : public CalcUnoApiTest,
+public apitest::XEnumerationAccess,
+public apitest::XElementAccess
 {
 public:
 ScChartsObj();
@@ -45,6 +50,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -53,6 +62,7 @@ private:
 
 ScChartsObj::ScChartsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-08 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinkObj.csv |7 -
 sc/qa/extras/scarealinkobj.cxx|   43 ++
 2 files changed, 26 insertions(+), 24 deletions(-)

New commits:
commit 0ee02fdadaf43ac1522fe49118d015d5fa6aaed5
Author: Jens Carl 
AuthorDate: Fri Mar 8 21:53:45 2019 +
Commit: Jens Carl 
CommitDate: Fri Mar 8 23:48:53 2019 +0100

tdf#45904 Move XPropertySet Java tests to C++

Move XPropertySet Java tests to C++ for ScAreaLinkObj.

Change-Id: I4b0ef0870d2ac3aac474df2e8c7114470e0128e8
Reviewed-on: https://gerrit.libreoffice.org/68948
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinkObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinkObj.csv
index 258ab7268840..d5d82c8483f0 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinkObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinkObj.csv
@@ -1,10 +1,3 @@
 "ScAreaLinkObj";"com::sun::star::util::XRefreshable";"refresh()"
 "ScAreaLinkObj";"com::sun::star::util::XRefreshable";"addRefreshListener()"
 "ScAreaLinkObj";"com::sun::star::util::XRefreshable";"removeRefreshListener()"
-"ScAreaLinkObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
-"ScAreaLinkObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
-"ScAreaLinkObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
-"ScAreaLinkObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
-"ScAreaLinkObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
-"ScAreaLinkObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
-"ScAreaLinkObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
diff --git a/sc/qa/extras/scarealinkobj.cxx b/sc/qa/extras/scarealinkobj.cxx
index 0183515071c9..5584747b1242 100644
--- a/sc/qa/extras/scarealinkobj.cxx
+++ b/sc/qa/extras/scarealinkobj.cxx
@@ -8,7 +8,7 @@
  */
 
 #include 
-
+#include 
 #include 
 #include 
 
@@ -18,21 +18,23 @@
 #include 
 #include 
 #include 
-
 #include 
+
 #include 
 
 using namespace css;
-using namespace css::uno;
-
-namespace sc_apitest {
 
-class ScAreaLinkObj : public CalcUnoApiTest, public apitest::CellAreaLink, 
public apitest::XAreaLink
+namespace sc_apitest
+{
+class ScAreaLinkObj : public CalcUnoApiTest,
+  public apitest::CellAreaLink,
+  public apitest::XAreaLink,
+  public apitest::XPropertySet
 {
 public:
 ScAreaLinkObj();
 
-virtual uno::Reference< uno::XInterface > init() override;
+virtual uno::Reference init() override;
 virtual void setUp() override;
 virtual void tearDown() override;
 
@@ -51,11 +53,17 @@ public:
 CPPUNIT_TEST(testSetSourceArea);
 CPPUNIT_TEST(testSetDestArea);
 
+// XPropertySet
+CPPUNIT_TEST(testGetPropertySetInfo);
+CPPUNIT_TEST(testGetPropertyValue);
+CPPUNIT_TEST(testSetPropertyValue);
+CPPUNIT_TEST(testPropertyChangeListener);
+CPPUNIT_TEST(testVetoableChangeListener);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
-uno::Reference< lang::XComponent > mxComponent;
-
+uno::Reference m_xComponent;
 };
 
 ScAreaLinkObj::ScAreaLinkObj()
@@ -63,35 +71,36 @@ ScAreaLinkObj::ScAreaLinkObj()
 {
 }
 
-uno::Reference< uno::XInterface > ScAreaLinkObj::init()
+uno::Reference ScAreaLinkObj::init()
 {
-uno::Reference< sheet::XSpreadsheetDocument > xDoc(mxComponent, 
uno::UNO_QUERY_THROW);
+uno::Reference xDoc(m_xComponent, 
uno::UNO_QUERY_THROW);
 
-uno::Reference< beans::XPropertySet > xPropSet(xDoc, uno::UNO_QUERY_THROW);
-uno::Reference< sheet::XAreaLinks > 
xLinks(xPropSet->getPropertyValue("AreaLinks"), uno::UNO_QUERY_THROW);
+uno::Reference xPropSet(xDoc, uno::UNO_QUERY_THROW);
+uno::Reference 
xLinks(xPropSet->getPropertyValue("AreaLinks"),
+ uno::UNO_QUERY_THROW);
 
 table::CellAddress aCellAddress(1, 2, 3);
 xLinks->insertAtPosition(aCellAddress, "", "a1:c1", "", "");
 
-uno::Reference< sheet::XAreaLink > xLink( xLinks->getByIndex(0), 
uno::UNO_QUERY_THROW);
+uno::Reference xLink(xLinks->getByIndex(0), 
uno::UNO_QUERY_THROW);
 return xLink;
 }
 
 void ScAreaLinkObj::setUp()
 {
 CalcUnoApiTest::setUp();
-mxComponent = loadFromDesktop("private:factory/scalc");
+m_xComponent = loadFromDesktop("private:factory/scalc");
 }
 
 void ScAreaLinkObj::tearDown()
 {
-closeDocument(mxComponent);
+closeDocument(m_xComponent);
 CalcUnoApiTest::tearDown();
 }
 
 CPPUNIT_TEST_SUITE_REGISTRATION(ScAreaLinkObj);
 
-} // end namespace
+} // namespace sc_apitest
 
 CPPUNIT_PLUGIN_IMPLEMENT();
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-07 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemObj.csv |2 --
 sc/qa/extras/scdatapilotitemobj.cxx|9 
-
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 4a7771ffa8d98d08dffbba90fd42d1ab75e056fe
Author: Jens Carl 
AuthorDate: Thu Mar 7 22:28:10 2019 +
Commit: Jens Carl 
CommitDate: Fri Mar 8 01:57:07 2019 +0100

tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScDataPilotItemObj.

Change-Id: I2fcffbd7e7329357ac30fa14716bf2bcf49c5666
Reviewed-on: https://gerrit.libreoffice.org/68891
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemObj.csv
index 5723342b487d..ca518a782d29 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemObj.csv
@@ -1,5 +1,3 @@
-"ScDataPilotItemObj";"com::sun::star::container::XNamed";"getName()"
-"ScDataPilotItemObj";"com::sun::star::container::XNamed";"setName()"
 
"ScDataPilotItemObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
 "ScDataPilotItemObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
 "ScDataPilotItemObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/qa/extras/scdatapilotitemobj.cxx 
b/sc/qa/extras/scdatapilotitemobj.cxx
index b13c3b8b9dae..da2ccb9d0e51 100644
--- a/sc/qa/extras/scdatapilotitemobj.cxx
+++ b/sc/qa/extras/scdatapilotitemobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 
@@ -31,7 +32,9 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScDataPilotItemObj : public CalcUnoApiTest, public apitest::DataPilotItem
+class ScDataPilotItemObj : public CalcUnoApiTest,
+   public apitest::DataPilotItem,
+   public apitest::XNamed
 {
 public:
 virtual void setUp() override;
@@ -45,6 +48,9 @@ public:
 // DataPilotItem
 CPPUNIT_TEST(testProperties);
 
+// XNamed
+CPPUNIT_TEST(testGetName);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -54,6 +60,7 @@ private:
 
 ScDataPilotItemObj::ScDataPilotItemObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XNamed("2")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-05 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv |2 --
 sc/qa/extras/scdatapilotfieldobj.cxx|9 
-
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 04f4cbd0b3e949c28382359f722872d380d98900
Author: Jens Carl 
AuthorDate: Tue Mar 5 21:20:03 2019 +
Commit: Jens Carl 
CommitDate: Wed Mar 6 03:04:36 2019 +0100

tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScDataPilotFieldObj.

Change-Id: Ieecd8799f56dcfa9279d4d523d470a62d9aed203
Reviewed-on: https://gerrit.libreoffice.org/68781
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv
index de2cb74f71ba..17d800db4639 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv
@@ -1,5 +1,3 @@
-"ScDataPilotFieldObj";"com::sun::star::container::XNamed";"getName()"
-"ScDataPilotFieldObj";"com::sun::star::container::XNamed";"setName()"
 
"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
 
"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
 
"ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/qa/extras/scdatapilotfieldobj.cxx 
b/sc/qa/extras/scdatapilotfieldobj.cxx
index 61a3d45c8008..46cd9a703b76 100644
--- a/sc/qa/extras/scdatapilotfieldobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -29,7 +30,8 @@ namespace sc_apitest
 class ScDataPilotFieldObj : public CalcUnoApiTest,
 public apitest::DataPilotField,
 public apitest::XDataPilotField,
-public apitest::XDataPilotFieldGrouping
+public apitest::XDataPilotFieldGrouping,
+public apitest::XNamed
 {
 public:
 virtual void setUp() override;
@@ -55,6 +57,10 @@ public:
 // see fdo#
 //CPPUNIT_TEST(testCreateDateGroup);
 
+// XNamed
+CPPUNIT_TEST(testGetName);
+CPPUNIT_TEST(testSetName);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -63,6 +69,7 @@ private:
 
 ScDataPilotFieldObj::ScDataPilotFieldObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XNamed("Col1")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-03 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv |4 
 sc/qa/extras/scannotationobj.cxx|   67 
+-
 2 files changed, 39 insertions(+), 32 deletions(-)

New commits:
commit 33048db2b4f7fd6bc7055effe11ee37cf7045c46
Author: Jens Carl 
AuthorDate: Sun Mar 3 03:53:09 2019 +
Commit: Jens Carl 
CommitDate: Sun Mar 3 19:45:50 2019 +0100

tdf#45904 Move XSimpleText Java tests to C++

Move XSimpleText Java tests to C++ for ScAnnotationObj
(this also fixes i109517).

Change-Id: Ieed0c94ed7a426c921c099a1edb520cbfd830656
Reviewed-on: https://gerrit.libreoffice.org/68632
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv
index fe1b71e1b4fb..324d74dc0ac1 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationObj.csv
@@ -1,7 +1,3 @@
-"ScAnnotationObj";"com::sun::star::text::XSimpleText";"createTextCursor()"
-"ScAnnotationObj";"com::sun::star::text::XSimpleText";"createTextCursorByRange()"
-"ScAnnotationObj";"com::sun::star::text::XSimpleText";"insertString()"
-"ScAnnotationObj";"com::sun::star::text::XSimpleText";"insertControlCharacter()"
 "ScAnnotationObj";"com::sun::star::text::XTextRange";"getText()"
 "ScAnnotationObj";"com::sun::star::text::XTextRange";"getStart()"
 "ScAnnotationObj";"com::sun::star::text::XTextRange";"getEnd()"
diff --git a/sc/qa/extras/scannotationobj.cxx b/sc/qa/extras/scannotationobj.cxx
index bbd0f60493fb..0af244cb0165 100644
--- a/sc/qa/extras/scannotationobj.cxx
+++ b/sc/qa/extras/scannotationobj.cxx
@@ -1,4 +1,4 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
 /*
  * This file is part of the LibreOffice project.
  *
@@ -11,25 +11,27 @@
 #include 
 #include 
 #include 
+#include 
 
-#include 
-#include 
-#include 
+#include 
+#include 
 #include 
-
+#include 
 #include 
 #include 
+#include 
 
-#include 
+#include 
 
 using namespace css;
-using namespace css::uno;
-
-namespace sc_apitest {
 
-class ScAnnontationObj : public CalcUnoApiTest, public 
apitest::XSheetAnnotation,
-public 
apitest::XSheetAnnotationShapeSupplier,
-public apitest::XChild
+namespace sc_apitest
+{
+class ScAnnontationObj : public CalcUnoApiTest,
+ public apitest::XChild,
+ public apitest::XSheetAnnotation,
+ public apitest::XSheetAnnotationShapeSupplier,
+ public apitest::XSimpleText
 {
 public:
 ScAnnontationObj();
@@ -37,8 +39,8 @@ public:
 virtual void setUp() override;
 virtual void tearDown() override;
 
-virtual uno::Reference< uno::XInterface > init() override;
-virtual uno::Reference< sheet::XSheetAnnotation> 
getAnnotation(table::CellAddress&) override;
+virtual uno::Reference init() override;
+virtual uno::Reference 
getAnnotation(table::CellAddress&) override;
 
 CPPUNIT_TEST_SUITE(ScAnnontationObj);
 
@@ -55,36 +57,45 @@ public:
 // XSheetAnnotationShapeSupplier
 CPPUNIT_TEST(testGetAnnotationShape);
 
+// XSimpleText
+CPPUNIT_TEST(testCreateTextCursor);
+CPPUNIT_TEST(testCreateTextCursorByRange);
+CPPUNIT_TEST(testInsertString);
+CPPUNIT_TEST(testInsertControlCharacter);
+
 CPPUNIT_TEST_SUITE_END();
-private:
 
-uno::Reference< lang::XComponent > mxComponent;
+private:
+uno::Reference mxComponent;
 };
 
-
 ScAnnontationObj::ScAnnontationObj()
-   : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+: CalcUnoApiTest("/sc/qa/extras/testdocuments")
 {
 }
 
-uno::Reference< sheet::XSheetAnnotation> 
ScAnnontationObj::getAnnotation(table::CellAddress& xCellAddress)
+uno::Reference
+ScAnnontationObj::getAnnotation(table::CellAddress& xCellAddress)
 {
 // get the sheet
-uno::Reference< sheet::XSpreadsheetDocument > xDoc(mxComponent, 
UNO_QUERY_THROW);
-uno::Reference< container::XIndexAccess > xIndex (xDoc->getSheets(), 
UNO_QUERY_THROW);
-uno::Reference< sheet::XSpreadsheet > xSheet( 
xIndex->getByIndex(xCellAddress.Sheet), UNO_QUERY_THROW);
+uno::Reference xDoc(mxComponent, 
uno::UNO_QUERY_THROW);
+uno::Reference xIndex(xDoc->getSheets(), 
uno::UNO_QUERY_THROW);
+uno::Reference 
xSheet(xIndex->getByIndex(xCellAddress.Sheet),
+   uno::UNO_QUERY_THROW);
 
 // get the cell
-uno::Reference< table::XCell > xCell( 
xSheet->getCellByPosition(xCellAddress.Column, xCellAddress.Row), 
UNO_QUERY_THROW);
+uno::Reference xCell(
+xSheet->getCellByPosition(xCellAddress.Column, xCellAddress.Row), 
uno::UNO_QUERY_THROW);

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-01 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv |1 -
 sc/qa/extras/scdatapilotitemsobj.cxx|5 
+
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 350294ccc4af923b8f849913f232bcd4f3c6d189
Author: Jens Carl 
AuthorDate: Sat Mar 2 01:28:34 2019 +
Commit: Jens Carl 
CommitDate: Sat Mar 2 06:56:26 2019 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScDataPilotItemsObj.

Change-Id: I6123692aee130f4c5bf326676ace2a6e7ac09405
Reviewed-on: https://gerrit.libreoffice.org/68609
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
index 5cdd8d3401cf..002f0b5ba1dc 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
@@ -3,4 +3,3 @@
 "ScDataPilotItemsObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScDataPilotItemsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScDataPilotItemsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScDataPilotItemsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotitemsobj.cxx 
b/sc/qa/extras/scdatapilotitemsobj.cxx
index 1fd705cdc8f1..cb97648e796f 100644
--- a/sc/qa/extras/scdatapilotitemsobj.cxx
+++ b/sc/qa/extras/scdatapilotitemsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -41,6 +42,7 @@ const auto nMaxFieldIndex = 6;
 
 class ScDataPilotItemsObj : public CalcUnoApiTest,
 public apitest::XElementAccess,
+public apitest::XEnumerationAccess,
 public apitest::XServiceInfo
 {
 public:
@@ -56,6 +58,9 @@ public:
 CPPUNIT_TEST(testGetElementType);
 CPPUNIT_TEST(testHasElements);
 
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
 // XServiceInfo
 CPPUNIT_TEST(testGetImplementationName);
 CPPUNIT_TEST(testGetSupportedServiceNames);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-03-01 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv |2 --
 sc/qa/extras/scdatapilotitemsobj.cxx|   10 
+-
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit ef8c413a08d6dc254b2fc243bba6bc5c09aa646b
Author: Jens Carl 
AuthorDate: Sat Mar 2 01:24:36 2019 +
Commit: Jens Carl 
CommitDate: Sat Mar 2 04:33:31 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScDataPilotItemsObj.

Change-Id: Ideb56b3f24d9b6045f68d7e5e84ee9858b6df7bf
Reviewed-on: https://gerrit.libreoffice.org/68608
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
index 6b5fa0c41ec7..5cdd8d3401cf 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
@@ -3,6 +3,4 @@
 "ScDataPilotItemsObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScDataPilotItemsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScDataPilotItemsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScDataPilotItemsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDataPilotItemsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScDataPilotItemsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotitemsobj.cxx 
b/sc/qa/extras/scdatapilotitemsobj.cxx
index 578668424302..1fd705cdc8f1 100644
--- a/sc/qa/extras/scdatapilotitemsobj.cxx
+++ b/sc/qa/extras/scdatapilotitemsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -38,7 +39,9 @@ namespace sc_apitest
 {
 const auto nMaxFieldIndex = 6;
 
-class ScDataPilotItemsObj : public CalcUnoApiTest, public apitest::XServiceInfo
+class ScDataPilotItemsObj : public CalcUnoApiTest,
+public apitest::XElementAccess,
+public apitest::XServiceInfo
 {
 public:
 ScDataPilotItemsObj();
@@ -49,6 +52,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDataPilotItemsObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XServiceInfo
 CPPUNIT_TEST(testGetImplementationName);
 CPPUNIT_TEST(testGetSupportedServiceNames);
@@ -62,6 +69,7 @@ private:
 
 ScDataPilotItemsObj::ScDataPilotItemsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XServiceInfo("ScDataPilotItemsObj", "com.sun.star.sheet.DataPilotItems")
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-02-11 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv |
2 --
 sc/qa/extras/scdatapilotfieldgroupsobj.cxx|
8 
 2 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit c9fa173e96190259e7a8747d769232a4c9b842dc
Author: Jens Carl 
AuthorDate: Tue Feb 12 00:55:16 2019 +
Commit: Jens Carl 
CommitDate: Tue Feb 12 07:12:22 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScDataPilotFieldGroupsObj.

Change-Id: Ib43c37dd78fa6b4da87a8c0ccd987bf4ee6879de
Reviewed-on: https://gerrit.libreoffice.org/67705
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
index 9ed530a0ed9c..d41a5dd13226 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
@@ -1,3 +1 @@
-"ScDataPilotFieldGroupsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDataPilotFieldGroupsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScDataPilotFieldGroupsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
index 4459db967dc1..0f69233617e5 100644
--- a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 
@@ -16,6 +17,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -42,6 +44,7 @@ namespace sc_apitest
 const auto nMaxFieldIndex = 6;
 
 class ScDataPilotFieldGroupItemObj : public CalcUnoApiTest,
+ public apitest::XElementAccess,
  public apitest::XIndexAccess,
  public apitest::XNameAccess
 {
@@ -54,6 +57,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDataPilotFieldGroupItemObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XIndexAccess
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
@@ -71,6 +78,7 @@ private:
 
 ScDataPilotFieldGroupItemObj::ScDataPilotFieldGroupItemObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1)
 , XNameAccess("Group1")
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-02-11 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv |
2 -
 sc/qa/extras/scdatapilotfieldgroupsobj.cxx|   
12 --
 2 files changed, 10 insertions(+), 4 deletions(-)

New commits:
commit e0745a11597e5d57eb8001a295314e86810a6027
Author: Jens Carl 
AuthorDate: Tue Feb 12 00:50:01 2019 +
Commit: Jens Carl 
CommitDate: Tue Feb 12 02:43:48 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScDataPilotFieldGroupsObj.

Change-Id: I8bd601c2bb8f2c6fa8fe197f31f8df5878aa6b71
Reviewed-on: https://gerrit.libreoffice.org/67704
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
index 2305453ed41e..9ed530a0ed9c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
@@ -1,5 +1,3 @@
-"ScDataPilotFieldGroupsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDataPilotFieldGroupsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScDataPilotFieldGroupsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 
"ScDataPilotFieldGroupsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScDataPilotFieldGroupsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
index 3b504ab85bdd..4459db967dc1 100644
--- a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -40,7 +41,9 @@ namespace sc_apitest
 {
 const auto nMaxFieldIndex = 6;
 
-class ScDataPilotFieldGroupItemObj : public CalcUnoApiTest, public 
apitest::XNameAccess
+class ScDataPilotFieldGroupItemObj : public CalcUnoApiTest,
+ public apitest::XIndexAccess,
+ public apitest::XNameAccess
 {
 public:
 ScDataPilotFieldGroupItemObj();
@@ -51,6 +54,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDataPilotFieldGroupItemObj);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNameAccess
 CPPUNIT_TEST(testGetByName);
 CPPUNIT_TEST(testGetElementNames);
@@ -64,7 +71,8 @@ private:
 
 ScDataPilotFieldGroupItemObj::ScDataPilotFieldGroupItemObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
-, apitest::XNameAccess("Group1")
+, XIndexAccess(1)
+, XNameAccess("Group1")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_datapilotfieldgroupsobj.mk sc/Module_sc.mk sc/qa

2019-02-11 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv |
3 
 sc/CppunitTest_sc_datapilotfieldgroupsobj.mk  |   
47 ++
 sc/Module_sc.mk   |
1 
 sc/qa/extras/scdatapilotfieldgroupsobj.cxx|  
189 ++
 4 files changed, 237 insertions(+), 3 deletions(-)

New commits:
commit 7ae358f33f849bf51e810fa8739301307c98bc67
Author: Jens Carl 
AuthorDate: Tue Feb 12 00:43:39 2019 +
Commit: Jens Carl 
CommitDate: Tue Feb 12 02:30:35 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScDataPilotFieldGroupsObj.

Change-Id: Ifa926bd64ac7fc7cd7df080e400ab36e084f1708
Reviewed-on: https://gerrit.libreoffice.org/67703
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
index feccada1783b..2305453ed41e 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupsObj.csv
@@ -1,6 +1,3 @@
-"ScDataPilotFieldGroupsObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScDataPilotFieldGroupsObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScDataPilotFieldGroupsObj";"com::sun::star::container::XNameAccess";"hasByName()"
 
"ScDataPilotFieldGroupsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 
"ScDataPilotFieldGroupsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScDataPilotFieldGroupsObj";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/CppunitTest_sc_datapilotfieldgroupsobj.mk 
b/sc/CppunitTest_sc_datapilotfieldgroupsobj.mk
new file mode 100644
index ..2a539defd0f5
--- /dev/null
+++ b/sc/CppunitTest_sc_datapilotfieldgroupsobj.mk
@@ -0,0 +1,47 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_datapilotfieldgroupsobj))
+
+$(eval $(call 
gb_CppunitTest_use_external,sc_datapilotfieldgroupsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_datapilotfieldgroupsobj, 
\
+sc/qa/extras/scdatapilotfieldgroupsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_datapilotfieldgroupsobj, \
+   comphelper \
+cppu \
+sal \
+subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_datapilotfieldgroupsobj,\
+$$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_api,sc_datapilotfieldgroupsobj,\
+offapi \
+udkapi \
+))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_datapilotfieldgroupsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_datapilotfieldgroupsobj))
+
+$(eval $(call gb_CppunitTest_use_rdb,sc_datapilotfieldgroupsobj,services))
+
+$(eval $(call gb_CppunitTest_use_components,sc_datapilotfieldgroupsobj))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_datapilotfieldgroupsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index dab7c9f5a81f..15455b6fe7da 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -125,6 +125,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
$(if $(filter-out $(OS),iOS), \
CppunitTest_sc_databaserangeobj) \
CppunitTest_sc_databaserangesobj \
+   CppunitTest_sc_datapilotfieldgroupsobj \
CppunitTest_sc_datapilotfieldobj \
CppunitTest_sc_datapilotfieldsobj \
CppunitTest_sc_datapilotitemobj \
diff --git a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx 
b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
new file mode 100644
index ..3b504ab85bdd
--- /dev/null
+++ b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
@@ -0,0 +1,189 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+using namespace css;
+
+namespace sc_apitest

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-02-01 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv |2 --
 sc/qa/extras/scdatapilotfieldsobj.cxx|   10 
++
 2 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 466f1236ac0034918ed07ac3cd37607383dff40f
Author: Jens Carl 
AuthorDate: Sat Feb 2 00:03:19 2019 +
Commit: Jens Carl 
CommitDate: Sat Feb 2 02:39:49 2019 +0100

tdf#45904 Move XElementAccess Java tests for C++

Move XElementAccess Java tests for C++ for ScDataPilotFieldsObj.

Change-Id: Iac23860a9194f45be6cda8f4546605ae69729693
Reviewed-on: https://gerrit.libreoffice.org/67268
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
index 4af41c784e15..7d42ccda9aa6 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
@@ -1,3 +1 @@
-"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScDataPilotFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx 
b/sc/qa/extras/scdatapilotfieldsobj.cxx
index 20b2c5359d6c..89b07762e638 100644
--- a/sc/qa/extras/scdatapilotfieldsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldsobj.cxx
@@ -8,9 +8,13 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 
+#include 
+
+#include 
 #include 
 #include 
 #include 
@@ -28,6 +32,7 @@ using namespace css;
 namespace sc_apitest
 {
 class ScDataPilotFieldsObj : public CalcUnoApiTest,
+ public apitest::XElementAccess,
  public apitest::XIndexAccess,
  public apitest::XNameAccess
 {
@@ -39,6 +44,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDataPilotFieldsObj);
 
+// XElementAccess
+CPPUNIT_TEST(testHasElements);
+CPPUNIT_TEST(testGetElementType);
+
 // XIndexAccess
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
@@ -56,6 +65,7 @@ private:
 
 ScDataPilotFieldsObj::ScDataPilotFieldsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(6)
 , XNameAccess("")
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-02-01 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv |2 --
 sc/qa/extras/scdatapilotfieldsobj.cxx|   10 
+-
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 070967b25978c388e33860d69a8bf56b46b18f13
Author: Jens Carl 
AuthorDate: Fri Feb 1 23:57:24 2019 +
Commit: Jens Carl 
CommitDate: Sat Feb 2 02:39:23 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScDataPilotFieldsObj.

Change-Id: I277192a4e43a7ec45d27d93d32cad6b59534be46
Reviewed-on: https://gerrit.libreoffice.org/67267
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
index 8b5162f84c3b..4af41c784e15 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
@@ -1,5 +1,3 @@
-"ScDataPilotFieldsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDataPilotFieldsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 
"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScDataPilotFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx 
b/sc/qa/extras/scdatapilotfieldsobj.cxx
index 363724380b56..20b2c5359d6c 100644
--- a/sc/qa/extras/scdatapilotfieldsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -26,7 +27,9 @@
 using namespace css;
 namespace sc_apitest
 {
-class ScDataPilotFieldsObj : public CalcUnoApiTest, public apitest::XNameAccess
+class ScDataPilotFieldsObj : public CalcUnoApiTest,
+ public apitest::XIndexAccess,
+ public apitest::XNameAccess
 {
 public:
 ScDataPilotFieldsObj();
@@ -36,6 +39,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDataPilotFieldsObj);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNameAccess
 CPPUNIT_TEST(testGetByName);
 CPPUNIT_TEST(testGetElementNames);
@@ -49,6 +56,7 @@ private:
 
 ScDataPilotFieldsObj::ScDataPilotFieldsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(6)
 , XNameAccess("")
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_datapilotfieldsobj.mk sc/Module_sc.mk sc/qa

2019-02-01 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv |3 
 sc/CppunitTest_sc_datapilotfieldsobj.mk  |   43 +++
 sc/Module_sc.mk  |1 
 sc/qa/extras/scdatapilotfieldsobj.cxx|  108 
++
 4 files changed, 152 insertions(+), 3 deletions(-)

New commits:
commit 3b79e1e35e527b6973bce9c76d2d036f4300ce49
Author: Jens Carl 
AuthorDate: Fri Feb 1 23:50:32 2019 +
Commit: Jens Carl 
CommitDate: Sat Feb 2 02:38:50 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScDataPilotFieldsObj.

Change-Id: I29625dcf6aa97e2781752c27e3eedba3ca479501
Reviewed-on: https://gerrit.libreoffice.org/67266
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
index 10e5650ed423..8b5162f84c3b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
@@ -1,6 +1,3 @@
-"ScDataPilotFieldsObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScDataPilotFieldsObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScDataPilotFieldsObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScDataPilotFieldsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScDataPilotFieldsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/CppunitTest_sc_datapilotfieldsobj.mk 
b/sc/CppunitTest_sc_datapilotfieldsobj.mk
new file mode 100644
index ..03dc63afed97
--- /dev/null
+++ b/sc/CppunitTest_sc_datapilotfieldsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_datapilotfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_datapilotfieldsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_datapilotfieldsobj, \
+   sc/qa/extras/scdatapilotfieldsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_datapilotfieldsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_datapilotfieldsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_datapilotfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_datapilotfieldsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_datapilotfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_datapilotfieldsobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_datapilotfieldsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index dd41344970f5..dab7c9f5a81f 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -126,6 +126,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_databaserangeobj) \
CppunitTest_sc_databaserangesobj \
CppunitTest_sc_datapilotfieldobj \
+   CppunitTest_sc_datapilotfieldsobj \
CppunitTest_sc_datapilotitemobj \
CppunitTest_sc_datapilottableobj \
CppunitTest_sc_datapilottablesobj \
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx 
b/sc/qa/extras/scdatapilotfieldsobj.cxx
new file mode 100644
index ..363724380b56
--- /dev/null
+++ b/sc/qa/extras/scdatapilotfieldsobj.cxx
@@ -0,0 +1,108 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+namespace sc_apitest
+{
+class ScDataPilotFieldsObj : public CalcUnoApiTest, public apitest::XNameAccess
+{
+public:
+ScDataPilotFieldsObj();
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScDataPilotFieldsObj);
+
+// XNameAccess
+CPPUNIT_TES

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_chartobj.mk sc/Module_sc.mk sc/qa

2019-01-24 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartObj.csv |2 
 sc/CppunitTest_sc_chartobj.mk  |   44 +++
 sc/Module_sc.mk|1 
 sc/qa/extras/scchartobj.cxx|  165 +
 4 files changed, 210 insertions(+), 2 deletions(-)

New commits:
commit 03c62c4db748ea214fd7bcef07052d90acc865ea
Author: Jens Carl 
AuthorDate: Thu Jan 24 08:01:28 2019 +
Commit: Jens Carl 
CommitDate: Thu Jan 24 18:41:53 2019 +0100

tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScChartObj.

Change-Id: I65c9a8f73844e98c60b705c956118359804c6c43
Reviewed-on: https://gerrit.libreoffice.org/66837
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartObj.csv
index 8b0e4c91405c..6cc64619217c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartObj.csv
@@ -5,5 +5,3 @@
 "ScChartObj";"com::sun::star::table::XTableChart";"getRanges()"
 "ScChartObj";"com::sun::star::table::XTableChart";"setRanges()"
 
"ScChartObj";"com::sun::star::document::XEmbeddedObjectSupplier";"getEmbeddedObject()"
-"ScChartObj";"com::sun::star::container::XNamed";"getName()"
-"ScChartObj";"com::sun::star::container::XNamed";"setName()"
diff --git a/sc/CppunitTest_sc_chartobj.mk b/sc/CppunitTest_sc_chartobj.mk
new file mode 100644
index ..84a78eed88a6
--- /dev/null
+++ b/sc/CppunitTest_sc_chartobj.mk
@@ -0,0 +1,44 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+$(eval $(call gb_CppunitTest_CppunitTest,sc_chartobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_chartobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_chartobj, \
+   sc/qa/extras/scchartobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_chartobj, \
+   comphelper \
+   cppu \
+   cppuhelper \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_chartobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_chartobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_chartobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_chartobj))
+
+$(eval $(call gb_CppunitTest_use_rdb,sc_chartobj,services))
+
+$(eval $(call gb_CppunitTest_use_components,sc_chartobj))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_chartobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index ddb29c745cc6..75b10a4de667 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -117,6 +117,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_cellrangesobj \
CppunitTest_sc_cellsenumeration \
CppunitTest_sc_chart2dataprovider \
+   CppunitTest_sc_chartobj \
CppunitTest_sc_check_data_pilot_field \
CppunitTest_sc_check_data_pilot_table \
CppunitTest_sc_check_xcell_ranges_query \
diff --git a/sc/qa/extras/scchartobj.cxx b/sc/qa/extras/scchartobj.cxx
new file mode 100644
index ..c6ead1372d67
--- /dev/null
+++ b/sc/qa/extras/scchartobj.cxx
@@ -0,0 +1,165 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScChartObj : public CalcUnoApiTest, public apitest::XNamed
+{
+public:
+ScChartObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScChartObj);
+
+// XNamed
+CPPUNIT_TEST(testGetName);
+CPPUNIT_TEST(testSetNameThrowsException);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;
+};
+
+ScChartObj::ScChartObj()
+: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XNamed("ScChartObj")
+{
+}
+
+uno::Reference ScChartObj::init()
+{
+uno::Reference xDoc(m_xCompo

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-23 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv |2 -
 sc/qa/extras/scsheetlinksobj.cxx|   11 
+-
 2 files changed, 10 insertions(+), 3 deletions(-)

New commits:
commit ce218f3064f58a836be6f0fba75576bfbe031404
Author: Jens Carl 
AuthorDate: Wed Jan 23 18:58:30 2019 +
Commit: Jens Carl 
CommitDate: Wed Jan 23 23:24:35 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScSheetLinksObj.

Change-Id: I8265bb9234c93e8a6e64b55522e7f0543b3af7a9
Reviewed-on: https://gerrit.libreoffice.org/66815
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
index d6a8db0b257b..6a9e3218d0bb 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
@@ -3,5 +3,3 @@
 "ScSheetLinksObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScSheetLinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScSheetLinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
index 2d3b0d714732..2ec4ccf0be6e 100644
--- a/sc/qa/extras/scsheetlinksobj.cxx
+++ b/sc/qa/extras/scsheetlinksobj.cxx
@@ -8,8 +8,10 @@
  */
 
 #include 
+#include 
 #include 
 
+#include 
 #include 
 
 #include 
@@ -28,7 +30,9 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScSheetLinksObj : public CalcUnoApiTest, public 
apitest::XEnumerationAccess
+class ScSheetLinksObj : public CalcUnoApiTest,
+public apitest::XElementAccess,
+public apitest::XEnumerationAccess
 {
 public:
 ScSheetLinksObj();
@@ -39,6 +43,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScSheetLinksObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
@@ -50,6 +58,7 @@ private:
 
 ScSheetLinksObj::ScSheetLinksObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-23 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv |2 --
 sc/qa/extras/scsheetlinksobj.cxx|9 
-
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit be3dce73f9ad16145b5f898058bab416504bc9c3
Author: Jens Carl 
AuthorDate: Wed Jan 23 19:02:58 2019 +
Commit: Jens Carl 
CommitDate: Wed Jan 23 23:24:59 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScSheetLinksObj.

Change-Id: I1662766ab9026da7c8ce97953e4f690d94c2d479
Reviewed-on: https://gerrit.libreoffice.org/66816
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
index 6a9e3218d0bb..9903e39826f0 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
@@ -1,5 +1,3 @@
 "ScSheetLinksObj";"com::sun::star::container::XNameAccess";"getByName()"
 "ScSheetLinksObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScSheetLinksObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
index 2ec4ccf0be6e..350924dcdd70 100644
--- a/sc/qa/extras/scsheetlinksobj.cxx
+++ b/sc/qa/extras/scsheetlinksobj.cxx
@@ -10,6 +10,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -32,7 +33,8 @@ namespace sc_apitest
 {
 class ScSheetLinksObj : public CalcUnoApiTest,
 public apitest::XElementAccess,
-public apitest::XEnumerationAccess
+public apitest::XEnumerationAccess,
+public apitest::XIndexAccess
 {
 public:
 ScSheetLinksObj();
@@ -50,6 +52,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -59,6 +65,7 @@ private:
 ScSheetLinksObj::ScSheetLinksObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
 , XElementAccess(cppu::UnoType::get())
+, XIndexAccess(1)
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_sheetlinksobj.mk sc/Module_sc.mk sc/qa

2019-01-23 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv |1 
 sc/CppunitTest_sc_sheetlinksobj.mk  |   43 
 sc/Module_sc.mk |1 
 sc/qa/extras/scsheetlinksobj.cxx|   94 
++
 4 files changed, 138 insertions(+), 1 deletion(-)

New commits:
commit cae2d0cda5d462889274a6ea0be30b8c0e9f8c6e
Author: Jens Carl 
AuthorDate: Wed Jan 23 18:52:20 2019 +
Commit: Jens Carl 
CommitDate: Wed Jan 23 23:24:05 2019 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScSheetLinksObj.

Change-Id: I68013a9717ab8da1dd4b15f489fc394c101cc016
Reviewed-on: https://gerrit.libreoffice.org/66814
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
index e8e7b8abb039..d6a8db0b257b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
@@ -5,4 +5,3 @@
 "ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScSheetLinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScSheetLinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
-"ScSheetLinksObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/CppunitTest_sc_sheetlinksobj.mk 
b/sc/CppunitTest_sc_sheetlinksobj.mk
new file mode 100644
index ..15a80fe23658
--- /dev/null
+++ b/sc/CppunitTest_sc_sheetlinksobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_sheetlinksobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_sheetlinksobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_sheetlinksobj, \
+   sc/qa/extras/scsheetlinksobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_sheetlinksobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_sheetlinksobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_sheetlinksobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_sheetlinksobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_sheetlinksobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_sheetlinksobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_sheetlinksobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 8d7d327b0d1d..ddb29c745cc6 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -176,6 +176,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_scenariosobj \
CppunitTest_sc_shapeobj \
CppunitTest_sc_sheetlinkobj \
+   CppunitTest_sc_sheetlinksobj \
CppunitTest_sc_sortdescriptorbaseobj \
CppunitTest_sc_spreadsheetsettings \
CppunitTest_sc_spreadsheetsettingsobj \
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
new file mode 100644
index ..2d3b0d714732
--- /dev/null
+++ b/sc/qa/extras/scsheetlinksobj.cxx
@@ -0,0 +1,94 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+
+namespace sc_apitest
+{
+class ScSheetLinksObj : public CalcUnoApiTest, public 
apitest::XEnumerationAccess
+{
+public:
+ScSheetLinksObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScSheetLinksObj);
+
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;
+};
+
+ScSheetLinksObj::ScSheetLinksObj()
+: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+{
+}
+
+uno::Reference ScSheetLinksObj::init()
+{
+uno::Reference xDoc(m_xComponent, 
uno::UN

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-17 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv |2 --
 sc/qa/extras/scddelinksobj.cxx|9 +
 2 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit a3fee0ee2633d6c1bbae4305c47fc66f3ed789d8
Author: Jens Carl 
AuthorDate: Thu Jan 17 22:54:19 2019 +
Commit: Jens Carl 
CommitDate: Fri Jan 18 00:51:58 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScDDELinksObj.

Change-Id: I627a9f54257b9283aadcf7b6b0fbb403b69b4354
Reviewed-on: https://gerrit.libreoffice.org/66558
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
index 9c8e18f4bc68..ce5281f4c2ea 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
@@ -1,3 +1 @@
-"ScDDELinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDDELinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScDDELinksObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scddelinksobj.cxx b/sc/qa/extras/scddelinksobj.cxx
index 9b3ae802a07c..095882cb5ba1 100644
--- a/sc/qa/extras/scddelinksobj.cxx
+++ b/sc/qa/extras/scddelinksobj.cxx
@@ -8,9 +8,11 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 
+#include 
 #include 
 #include 
 
@@ -18,6 +20,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -33,6 +36,7 @@ using namespace com::sun::star;
 namespace sc_apitest
 {
 class ScDDELinksObj : public CalcUnoApiTest,
+  public apitest::XElementAccess,
   public apitest::XIndexAccess,
   public apitest::XNameAccess
 {
@@ -45,6 +49,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDDELinksObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XIndexAccess
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
@@ -62,6 +70,7 @@ private:
 
 ScDDELinksObj::ScDDELinksObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1)
 , XNameAccess("soffice|"
   + 
m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods")
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-17 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv |2 --
 sc/qa/extras/scddelinksobj.cxx|   10 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 6e07cec370fe73d3bf1ca7432eab442f3de38bf9
Author: Jens Carl 
AuthorDate: Thu Jan 17 22:50:00 2019 +
Commit: Jens Carl 
CommitDate: Fri Jan 18 00:47:07 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScDDELinksObj.

Change-Id: Ic67c2078b0e439d7209d142c7461a2f858e04ad3
Reviewed-on: https://gerrit.libreoffice.org/66557
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
index 60819c0d0117..9c8e18f4bc68 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
@@ -1,5 +1,3 @@
-"ScDDELinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDDELinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScDDELinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScDDELinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScDDELinksObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scddelinksobj.cxx b/sc/qa/extras/scddelinksobj.cxx
index d6f9c8bd462c..9b3ae802a07c 100644
--- a/sc/qa/extras/scddelinksobj.cxx
+++ b/sc/qa/extras/scddelinksobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -31,7 +32,9 @@ using namespace com::sun::star;
 
 namespace sc_apitest
 {
-class ScDDELinksObj : public CalcUnoApiTest, public apitest::XNameAccess
+class ScDDELinksObj : public CalcUnoApiTest,
+  public apitest::XIndexAccess,
+  public apitest::XNameAccess
 {
 public:
 ScDDELinksObj();
@@ -42,6 +45,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScDDELinksObj);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNameAccess
 CPPUNIT_TEST(testGetByName);
 CPPUNIT_TEST(testGetElementNames);
@@ -55,6 +62,7 @@ private:
 
 ScDDELinksObj::ScDDELinksObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(1)
 , XNameAccess("soffice|"
   + 
m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods")
   + "!Sheet1.A1")
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_ddelinksobj.mk sc/Module_sc.mk sc/qa

2019-01-17 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv |3 
 sc/CppunitTest_sc_ddelinksobj.mk  |   44 
 sc/Module_sc.mk   |1 
 sc/qa/extras/scddelinksobj.cxx|  109 ++
 4 files changed, 154 insertions(+), 3 deletions(-)

New commits:
commit 0ea7692d02518561b6bc07bb920ae619678f020f
Author: Jens Carl 
AuthorDate: Thu Jan 17 22:46:38 2019 +
Commit: Jens Carl 
CommitDate: Fri Jan 18 00:46:23 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScDDELinksObj.

Change-Id: Ic36e78920b0a6649b2fc5a9298cea51615c5d5c6
Reviewed-on: https://gerrit.libreoffice.org/66556
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
index 078a30a93b0e..60819c0d0117 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDDELinksObj.csv
@@ -1,6 +1,3 @@
-"ScDDELinksObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScDDELinksObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScDDELinksObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScDDELinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScDDELinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScDDELinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/CppunitTest_sc_ddelinksobj.mk b/sc/CppunitTest_sc_ddelinksobj.mk
new file mode 100644
index ..73fd02a9147a
--- /dev/null
+++ b/sc/CppunitTest_sc_ddelinksobj.mk
@@ -0,0 +1,44 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_ddelinksobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_ddelinksobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_ddelinksobj, \
+   sc/qa/extras/scddelinksobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_ddelinksobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+   vcl \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_ddelinksobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_ddelinksobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_ddelinksobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_ddelinksobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_ddelinksobj,\
+$(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_ddelinksobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 761511caca05..53c729e5ce78 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -129,6 +129,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_datapilottableobj \
CppunitTest_sc_datapilottablesobj \
CppunitTest_sc_ddelinkobj \
+   CppunitTest_sc_ddelinksobj \
CppunitTest_sc_documentconfigurationobj \
CppunitTest_sc_editfieldobj_cell \
CppunitTest_sc_editfieldobj_header \
diff --git a/sc/qa/extras/scddelinksobj.cxx b/sc/qa/extras/scddelinksobj.cxx
new file mode 100644
index ..d6f9c8bd462c
--- /dev/null
+++ b/sc/qa/extras/scddelinksobj.cxx
@@ -0,0 +1,109 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+using namespace css::uno;
+using namespace com::sun::star;
+
+namespace sc_apitest
+{
+class ScDDELinksObj : public CalcUnoApiTest, public apitest::XNameAccess
+{
+public:
+ScDDELinksObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScDDELinksObj);
+
+// XNameAccess
+CPPUNIT_TEST(testGetByName);
+CPPUNIT_TEST(testGetElementNames);
+CPPUNIT_TEST(testHasByName);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-16 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv |
2 --
 sc/qa/extras/sctableconditionalformat.cxx|
7 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 0b521ddd8396490939f1a2ee7dde8effbde6d82d
Author: Jens Carl 
AuthorDate: Wed Jan 16 21:12:17 2019 +
Commit: Jens Carl 
CommitDate: Thu Jan 17 01:42:32 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScTableConditionalFormat.

Change-Id: I4eb40fb4c44967f6d6dba7ea093818adfc4aacfb
Reviewed-on: https://gerrit.libreoffice.org/66486
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
index 7f6fbb59c56e..3c950b80fa3c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
@@ -1,4 +1,2 @@
-"ScTableConditionalFormat";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScTableConditionalFormat";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"getElementType()"
 
"ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/sctableconditionalformat.cxx 
b/sc/qa/extras/sctableconditionalformat.cxx
index 75ebd3adb399..5209dd5ed882 100644
--- a/sc/qa/extras/sctableconditionalformat.cxx
+++ b/sc/qa/extras/sctableconditionalformat.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 
@@ -38,6 +39,7 @@ namespace sc_apitest
 {
 class ScTableConditionalFormat : public CalcUnoApiTest,
  public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
  public apitest::XNameAccess,
  public apitest::XSheetConditionalEntries
 {
@@ -54,6 +56,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNameAccess
 CPPUNIT_TEST(testGetByName);
 CPPUNIT_TEST(testGetElementNames);
@@ -72,6 +78,7 @@ private:
 
 ScTableConditionalFormat::ScTableConditionalFormat()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(2)
 , XNameAccess("Entry1")
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-16 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv |
3 ---
 sc/qa/extras/sctableconditionalformat.cxx|   
10 +-
 2 files changed, 9 insertions(+), 4 deletions(-)

New commits:
commit b69b90bbeac795b15418b884ac4b26e35ceb08db
Author: Jens Carl 
AuthorDate: Wed Jan 16 21:08:22 2019 +
Commit: Jens Carl 
CommitDate: Thu Jan 17 01:41:00 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScTableConditionalFormat.

Change-Id: I675d5d5aea24f76c19507d2a4181715ab70dd48d
Reviewed-on: https://gerrit.libreoffice.org/66485
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
index acfc8dac9c8e..7f6fbb59c56e 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableConditionalFormat.csv
@@ -1,6 +1,3 @@
-"ScTableConditionalFormat";"com::sun::star::container::XNameAccess";"getByName()"
-"ScTableConditionalFormat";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScTableConditionalFormat";"com::sun::star::container::XNameAccess";"hasByName()"
 
"ScTableConditionalFormat";"com::sun::star::container::XIndexAccess";"getCount()"
 
"ScTableConditionalFormat";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/qa/extras/sctableconditionalformat.cxx 
b/sc/qa/extras/sctableconditionalformat.cxx
index d19ceccce756..75ebd3adb399 100644
--- a/sc/qa/extras/sctableconditionalformat.cxx
+++ b/sc/qa/extras/sctableconditionalformat.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -22,12 +23,12 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 
 #include 
 #include 
-#include 
 
 using namespace css;
 using namespace css::uno;
@@ -37,6 +38,7 @@ namespace sc_apitest
 {
 class ScTableConditionalFormat : public CalcUnoApiTest,
  public apitest::XEnumerationAccess,
+ public apitest::XNameAccess,
  public apitest::XSheetConditionalEntries
 {
 public:
@@ -52,6 +54,11 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XNameAccess
+CPPUNIT_TEST(testGetByName);
+CPPUNIT_TEST(testGetElementNames);
+CPPUNIT_TEST(testHasByName);
+
 // XSheetConditionalEntries
 CPPUNIT_TEST(testAddNew);
 CPPUNIT_TEST(testClear);
@@ -65,6 +72,7 @@ private:
 
 ScTableConditionalFormat::ScTableConditionalFormat()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XNameAccess("Entry1")
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-15 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv |2 --
 sc/qa/extras/scstylefamiliesobj.cxx|   10 
+-
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit e1e772e40f83a8f1d7c4947c5784e1fe8b640d5b
Author: Jens Carl 
AuthorDate: Tue Jan 15 07:25:39 2019 +
Commit: Jens Carl 
CommitDate: Tue Jan 15 18:33:07 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScStyleFamiliesObj.

Change-Id: I19f783597656a1e429ea592115497e11e8a0a6a2
Reviewed-on: https://gerrit.libreoffice.org/66346
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
index 85d5bff7b77f..e6d6f86459c6 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
@@ -1,4 +1,2 @@
-"ScStyleFamiliesObj";"com::sun::star::container::XIndexAccess#optional";"getCount()"
-"ScStyleFamiliesObj";"com::sun::star::container::XIndexAccess#optional";"getByIndex()"
 
"ScStyleFamiliesObj";"com::sun::star::container::XElementAccess";"getElementType()"
 
"ScStyleFamiliesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scstylefamiliesobj.cxx 
b/sc/qa/extras/scstylefamiliesobj.cxx
index 1a1135d1db7a..6449537711a8 100644
--- a/sc/qa/extras/scstylefamiliesobj.cxx
+++ b/sc/qa/extras/scstylefamiliesobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -23,7 +24,9 @@ using namespace css::uno;
 
 namespace sc_apitest
 {
-class ScStyleFamiliesObj : public CalcUnoApiTest, public apitest::XNameAccess
+class ScStyleFamiliesObj : public CalcUnoApiTest,
+   public apitest::XIndexAccess,
+   public apitest::XNameAccess
 {
 public:
 ScStyleFamiliesObj();
@@ -34,6 +37,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScStyleFamiliesObj);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNameAccess
 CPPUNIT_TEST(testGetByName);
 CPPUNIT_TEST(testGetElementNames);
@@ -47,6 +54,7 @@ private:
 
 ScStyleFamiliesObj::ScStyleFamiliesObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(2)
 , XNameAccess("CellStyles")
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_stylefamiliesobj.mk sc/Module_sc.mk sc/qa

2019-01-15 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv |3 
 sc/CppunitTest_sc_stylefamiliesobj.mk  |   43 +
 sc/Module_sc.mk|1 
 sc/qa/extras/scstylefamiliesobj.cxx|   85 
++
 4 files changed, 129 insertions(+), 3 deletions(-)

New commits:
commit babb947e4c23240bf63acbf6657384f0e2c982bd
Author: Jens Carl 
AuthorDate: Tue Jan 15 06:57:53 2019 +
Commit: Jens Carl 
CommitDate: Tue Jan 15 18:29:30 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScStyleFamiliesObj.

Change-Id: Ief102954b4393ab54747bbe1ea4f7f5b0346393e
Reviewed-on: https://gerrit.libreoffice.org/66345
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
index 485343e08110..85d5bff7b77f 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamiliesObj.csv
@@ -1,6 +1,3 @@
-"ScStyleFamiliesObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScStyleFamiliesObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScStyleFamiliesObj";"com::sun::star::container::XNameAccess";"hasByName()"
 
"ScStyleFamiliesObj";"com::sun::star::container::XIndexAccess#optional";"getCount()"
 
"ScStyleFamiliesObj";"com::sun::star::container::XIndexAccess#optional";"getByIndex()"
 
"ScStyleFamiliesObj";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/CppunitTest_sc_stylefamiliesobj.mk 
b/sc/CppunitTest_sc_stylefamiliesobj.mk
new file mode 100644
index ..7c9a5f5a3d76
--- /dev/null
+++ b/sc/CppunitTest_sc_stylefamiliesobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_stylefamiliesobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_stylefamiliesobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_stylefamiliesobj, \
+sc/qa/extras/scstylefamiliesobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_stylefamiliesobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_stylefamiliesobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_stylefamiliesobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_stylefamiliesobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_stylefamiliesobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_stylefamiliesobj,\
+$(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_stylefamiliesobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 84ab0d759596..dab235dbf863 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -177,6 +177,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_sortdescriptorbaseobj \
CppunitTest_sc_spreadsheetsettings \
CppunitTest_sc_spreadsheetsettingsobj \
+   CppunitTest_sc_stylefamiliesobj \
CppunitTest_sc_styleloaderobj \
CppunitTest_sc_subtotaldescriptorbaseobj \
CppunitTest_sc_subtotalfieldobj \
diff --git a/sc/qa/extras/scstylefamiliesobj.cxx 
b/sc/qa/extras/scstylefamiliesobj.cxx
new file mode 100644
index ..1a1135d1db7a
--- /dev/null
+++ b/sc/qa/extras/scstylefamiliesobj.cxx
@@ -0,0 +1,85 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+using namespace css::uno;
+
+namespace sc_apitest
+{
+class ScStyleFamiliesObj : public CalcUnoApiTest, public apitest::XNameAccess
+{
+public:
+ScStyleFamiliesObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScStyleFamiliesObj);
+
+// XNameAccess
+CPPUNIT_TEST(testGetByName);
+CPPUNIT_TEST(testGetElementNames);
+CPPUNIT_TE

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-13 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv |2 --
 sc/qa/extras/scdatapilottablesobj.cxx|   10 
++
 2 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 8e323a3fb2d359d29fdaee61f60ef6b0488fc942
Author: Jens Carl 
AuthorDate: Sun Jan 13 19:15:06 2019 +
Commit: Jens Carl 
CommitDate: Sun Jan 13 21:48:56 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScDataPilotTablesObj.

Change-Id: I33849462bfbc5fb55f97387c8ab33a834b398c55
Reviewed-on: https://gerrit.libreoffice.org/66269
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv
index 8e400adc6c10..bf88fcd3661a 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv
@@ -1,5 +1,3 @@
 "ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"getByName()"
 
"ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScDataPilotTablesObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDataPilotTablesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scdatapilottablesobj.cxx 
b/sc/qa/extras/scdatapilottablesobj.cxx
index 76dcdf9c86fa..44eef48f8d93 100644
--- a/sc/qa/extras/scdatapilottablesobj.cxx
+++ b/sc/qa/extras/scdatapilottablesobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -15,6 +16,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -26,6 +28,8 @@
 
 #include 
 
+#include 
+
 using namespace css;
 using namespace css::uno;
 using namespace com::sun::star;
@@ -34,6 +38,7 @@ namespace sc_apitest
 {
 class ScDataPilotTablesObj : public CalcUnoApiTest,
  public apitest::XDataPilotTables,
+ public apitest::XElementAccess,
  public apitest::XEnumerationAccess,
  public apitest::XIndexAccess
 {
@@ -50,6 +55,10 @@ public:
 // XDataPilotTables
 CPPUNIT_TEST(testXDataPilotTables);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
@@ -65,6 +74,7 @@ private:
 
 ScDataPilotTablesObj::ScDataPilotTablesObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1)
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-13 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv |2 -
 sc/qa/extras/scdatapilottablesobj.cxx|   15 
+++---
 2 files changed, 11 insertions(+), 6 deletions(-)

New commits:
commit 823ce74283d5214204abee7b2765e86f094c32eb
Author: Jens Carl 
AuthorDate: Sun Jan 13 19:08:09 2019 +
Commit: Jens Carl 
CommitDate: Sun Jan 13 21:47:28 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScDataPilotTablesObj.

Change-Id: Ic39fe92825bcb667c5d92635cafb15dbe36d7dc3
Reviewed-on: https://gerrit.libreoffice.org/66268
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv
index 4de45992a904..8e400adc6c10 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotTablesObj.csv
@@ -1,7 +1,5 @@
 "ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"getByName()"
 
"ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScDataPilotTablesObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScDataPilotTablesObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDataPilotTablesObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScDataPilotTablesObj";"com::sun::star::container::XElementAccess";"getElementType()"
 
"ScDataPilotTablesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scdatapilottablesobj.cxx 
b/sc/qa/extras/scdatapilottablesobj.cxx
index eb3eaf884563..76dcdf9c86fa 100644
--- a/sc/qa/extras/scdatapilottablesobj.cxx
+++ b/sc/qa/extras/scdatapilottablesobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -17,8 +18,8 @@
 #include 
 #include 
 #include 
-#include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -33,7 +34,8 @@ namespace sc_apitest
 {
 class ScDataPilotTablesObj : public CalcUnoApiTest,
  public apitest::XDataPilotTables,
- public apitest::XEnumerationAccess
+ public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess
 {
 public:
 ScDataPilotTablesObj();
@@ -51,6 +53,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -59,6 +65,7 @@ private:
 
 ScDataPilotTablesObj::ScDataPilotTablesObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(1)
 {
 }
 
@@ -81,7 +88,7 @@ uno::Reference ScDataPilotTablesObj::init()
 uno::Reference 
xDPD(xDPT->createDataPilotDescriptor(),
  UNO_QUERY_THROW);
 xDPD->setSourceRange(table::CellRangeAddress(0, 0, 0, 4, 4));
-//xDPT->insertNewByName("DataPilotTable", table::CellAddress(0, 5, 5), 
xDPD);
+xDPT->insertNewByName("DataPilotTable", table::CellAddress(0, 5, 5), xDPD);
 
 return xDPT;
 }
@@ -112,7 +119,7 @@ void ScDataPilotTablesObj::tearDown()
 
 CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotTablesObj);
 
-} // end namespace
+} // namespace sc_apitest
 
 CPPUNIT_PLUGIN_IMPLEMENT();
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-12 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv |2 --
 sc/qa/extras/scdatabaserangesobj.cxx|   10 
++
 2 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 29b322ebab31b83d1df470f7ec794d500e15b948
Author: Jens Carl 
AuthorDate: Sun Jan 13 04:59:57 2019 +
Commit: Jens Carl 
CommitDate: Sun Jan 13 07:00:53 2019 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScDatabaseRangesObj.

Change-Id: I44e1021f4d312b0e3a0d254aeac5dc11b7f546bf
Reviewed-on: https://gerrit.libreoffice.org/66249
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
index 769a68a75970..704ef56f4819 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
@@ -1,5 +1,3 @@
 "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getByName()"
 
"ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scdatabaserangesobj.cxx 
b/sc/qa/extras/scdatabaserangesobj.cxx
index a8b81191cd84..a4c3b698300c 100644
--- a/sc/qa/extras/scdatabaserangesobj.cxx
+++ b/sc/qa/extras/scdatabaserangesobj.cxx
@@ -8,12 +8,14 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -21,6 +23,8 @@
 
 #include 
 
+#include 
+
 using namespace css;
 using namespace css::uno;
 using namespace com::sun::star;
@@ -29,6 +33,7 @@ namespace sc_apitest
 {
 class ScDatabaseRangesObj : public CalcUnoApiTest,
 public apitest::XDatabaseRanges,
+public apitest::XElementAccess,
 public apitest::XEnumerationAccess,
 public apitest::XIndexAccess
 {
@@ -44,6 +49,10 @@ public:
 // XDatabaseRanges
 CPPUNIT_TEST(testAddRemoveDbRanges);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
@@ -59,6 +68,7 @@ private:
 
 ScDatabaseRangesObj::ScDatabaseRangesObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1)
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-12 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv |2 -
 sc/qa/extras/scdatabaserangesobj.cxx|   11 
--
 2 files changed, 9 insertions(+), 4 deletions(-)

New commits:
commit d53fa1bbebf3d0ed9a8ad6d39117b076079d5b09
Author: Jens Carl 
AuthorDate: Sun Jan 13 04:53:45 2019 +
Commit: Jens Carl 
CommitDate: Sun Jan 13 06:54:02 2019 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScDatabaseRangesObj.

Change-Id: I1bb998f54617323a828290268e549924710aaf50
Reviewed-on: https://gerrit.libreoffice.org/66248
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
index 0b86a569afeb..769a68a75970 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
@@ -1,7 +1,5 @@
 "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getByName()"
 
"ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScDatabaseRangesObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDatabaseRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"getElementType()"
 
"ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scdatabaserangesobj.cxx 
b/sc/qa/extras/scdatabaserangesobj.cxx
index f37a262b2377..a8b81191cd84 100644
--- a/sc/qa/extras/scdatabaserangesobj.cxx
+++ b/sc/qa/extras/scdatabaserangesobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -28,7 +29,8 @@ namespace sc_apitest
 {
 class ScDatabaseRangesObj : public CalcUnoApiTest,
 public apitest::XDatabaseRanges,
-public apitest::XEnumerationAccess
+public apitest::XEnumerationAccess,
+public apitest::XIndexAccess
 {
 public:
 ScDatabaseRangesObj();
@@ -45,6 +47,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -53,6 +59,7 @@ private:
 
 ScDatabaseRangesObj::ScDatabaseRangesObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(1)
 {
 }
 
@@ -85,7 +92,7 @@ void ScDatabaseRangesObj::tearDown()
 
 CPPUNIT_TEST_SUITE_REGISTRATION(ScDatabaseRangesObj);
 
-} // end namespace
+} // namespace sc_apitest
 
 CPPUNIT_PLUGIN_IMPLEMENT();
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-12 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv |2 --
 sc/qa/extras/scfunctionlistobj.cxx|7 
+++
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 2432b5857ff77b72d8b51d93192f93e25fcd6235
Author: Jens Carl 
AuthorDate: Sat Jan 12 18:49:21 2019 +
Commit: Jens Carl 
CommitDate: Sun Jan 13 05:16:34 2019 +0100

tdf#45904 Move XIndexAccess Java test to C++

Move XIndexAccess Java test to C++ for ScFunctionListObj.

Change-Id: I80fe759fed9386a70c35f089b8dc2408ece20d30
Reviewed-on: https://gerrit.libreoffice.org/66241
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
index 8ebb090e57db..dfb50e547ea8 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
@@ -1,4 +1,2 @@
-"ScFunctionListObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScFunctionListObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScFunctionListObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScFunctionListObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scfunctionlistobj.cxx 
b/sc/qa/extras/scfunctionlistobj.cxx
index 8616ec5e686c..185fd023be0f 100644
--- a/sc/qa/extras/scfunctionlistobj.cxx
+++ b/sc/qa/extras/scfunctionlistobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 
@@ -28,6 +29,7 @@ namespace sc_apitest
 class ScFunctionListObj : public CalcUnoApiTest,
   public apitest::XEnumerationAccess,
   public apitest::XFunctionDescriptions,
+  public apitest::XIndexAccess,
   public apitest::XNameAccess
 {
 public:
@@ -45,6 +47,10 @@ public:
 // XFunctionDescriptions
 CPPUNIT_TEST(testGetById);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XNameAccess
 CPPUNIT_TEST(testGetByName);
 CPPUNIT_TEST(testGetElementNames);
@@ -58,6 +64,7 @@ private:
 
 ScFunctionListObj::ScFunctionListObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(392)
 , XNameAccess("IF")
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2019-01-12 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv |3 --
 sc/qa/extras/scfunctionlistobj.cxx|   15 
--
 2 files changed, 12 insertions(+), 6 deletions(-)

New commits:
commit 0c31cc212fce6b8c28ddc1648fed245dc840a08a
Author: Jens Carl 
AuthorDate: Sat Jan 12 04:59:38 2019 +
Commit: Jens Carl 
CommitDate: Sat Jan 12 18:02:33 2019 +0100

tdf#45904 Move XNameAccess Java tests to C++

Move XNameAccess Java tests to C++ for ScFunctionListObj.

Change-Id: I857a2880dc7d0099404bf36ca06877976dd6c9e8
Reviewed-on: https://gerrit.libreoffice.org/66205
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
index 6eacd178c0e2..8ebb090e57db 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScFunctionListObj.csv
@@ -1,6 +1,3 @@
-"ScFunctionListObj";"com::sun::star::container::XNameAccess";"getByName()"
-"ScFunctionListObj";"com::sun::star::container::XNameAccess";"getElementNames()"
-"ScFunctionListObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScFunctionListObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScFunctionListObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScFunctionListObj";"com::sun::star::container::XElementAccess";"getElementType()"
diff --git a/sc/qa/extras/scfunctionlistobj.cxx 
b/sc/qa/extras/scfunctionlistobj.cxx
index ae68e5404b58..8616ec5e686c 100644
--- a/sc/qa/extras/scfunctionlistobj.cxx
+++ b/sc/qa/extras/scfunctionlistobj.cxx
@@ -9,14 +9,16 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
 #include 
 #include 
-#include 
 #include 
 
+#include 
+
 using namespace css;
 using namespace css::uno;
 using namespace com::sun::star;
@@ -25,7 +27,8 @@ namespace sc_apitest
 {
 class ScFunctionListObj : public CalcUnoApiTest,
   public apitest::XEnumerationAccess,
-  public apitest::XFunctionDescriptions
+  public apitest::XFunctionDescriptions,
+  public apitest::XNameAccess
 {
 public:
 ScFunctionListObj();
@@ -42,6 +45,11 @@ public:
 // XFunctionDescriptions
 CPPUNIT_TEST(testGetById);
 
+// XNameAccess
+CPPUNIT_TEST(testGetByName);
+CPPUNIT_TEST(testGetElementNames);
+CPPUNIT_TEST(testHasByName);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -50,6 +58,7 @@ private:
 
 ScFunctionListObj::ScFunctionListObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XNameAccess("IF")
 {
 }
 
@@ -75,7 +84,7 @@ void ScFunctionListObj::tearDown()
 
 CPPUNIT_TEST_SUITE_REGISTRATION(ScFunctionListObj);
 
-} // end namespace
+} // namespace sc_apitest
 
 CPPUNIT_PLUGIN_IMPLEMENT();
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-19 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv |1 -
 sc/qa/extras/sctablerowsobj.cxx|5 +
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 5d57ddc1853d5cf9f5af9ad73f3ec465aad6b4a6
Author: Jens Carl 
AuthorDate: Tue Dec 18 20:08:42 2018 +
Commit: Jens Carl 
CommitDate: Wed Dec 19 09:20:30 2018 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScTableRowsObj.

Change-Id: Ic2d37c7b918faff3af7a682f72a1f2b04857c5d7
Reviewed-on: https://gerrit.libreoffice.org/65373
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
index ac73e230df9c..5933ff4c8533 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
@@ -1,3 +1,2 @@
 "ScTableRowsObj";"com::sun::star::table::XTableRows";"insertByIndex()"
 "ScTableRowsObj";"com::sun::star::table::XTableRows";"removeByIndex()"
-"ScTableRowsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/sctablerowsobj.cxx b/sc/qa/extras/sctablerowsobj.cxx
index 6814900063ab..76c86da52e9b 100644
--- a/sc/qa/extras/sctablerowsobj.cxx
+++ b/sc/qa/extras/sctablerowsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -32,6 +33,7 @@ namespace sc_apitest
 {
 class ScTableRowsObj : public CalcUnoApiTest,
public apitest::XElementAccess,
+   public apitest::XEnumerationAccess,
public apitest::XIndexAccess
 {
 public:
@@ -47,6 +49,9 @@ public:
 CPPUNIT_TEST(testGetElementType);
 CPPUNIT_TEST(testHasElements);
 
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
 // XIndexAccess
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-19 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv |2 -
 sc/qa/extras/sctablerowsobj.cxx|   13 
+-
 2 files changed, 12 insertions(+), 3 deletions(-)

New commits:
commit 8deed9bc13fcec2300d3f537d2cc419625b8c499
Author: Jens Carl 
AuthorDate: Tue Dec 18 20:02:04 2018 +
Commit: Jens Carl 
CommitDate: Wed Dec 19 09:09:27 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScTableRowsObj.

Change-Id: Iefe5024cbde5f1583a560d8569e9aa460b68e42e
Reviewed-on: https://gerrit.libreoffice.org/65372
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
index c73b20a6ef30..ac73e230df9c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
@@ -1,5 +1,3 @@
-"ScTableRowsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScTableRowsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScTableRowsObj";"com::sun::star::table::XTableRows";"insertByIndex()"
 "ScTableRowsObj";"com::sun::star::table::XTableRows";"removeByIndex()"
 
"ScTableRowsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/sctablerowsobj.cxx b/sc/qa/extras/sctablerowsobj.cxx
index 67c1f86efafc..6814900063ab 100644
--- a/sc/qa/extras/sctablerowsobj.cxx
+++ b/sc/qa/extras/sctablerowsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -15,18 +16,23 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
 
 #include 
 
+#include 
+
 using namespace css;
 using namespace css::uno;
 
 namespace sc_apitest
 {
-class ScTableRowsObj : public CalcUnoApiTest, public apitest::XIndexAccess
+class ScTableRowsObj : public CalcUnoApiTest,
+   public apitest::XElementAccess,
+   public apitest::XIndexAccess
 {
 public:
 ScTableRowsObj();
@@ -37,6 +43,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScTableRowsObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XIndexAccess
 CPPUNIT_TEST(testGetByIndex);
 CPPUNIT_TEST(testGetCount);
@@ -49,6 +59,7 @@ private:
 
 ScTableRowsObj::ScTableRowsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuemts")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1048576)
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_tablerowsobj.mk sc/Module_sc.mk sc/qa

2018-12-18 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv |2 
 sc/CppunitTest_sc_tablerowsobj.mk  |   43 
 sc/Module_sc.mk|1 
 sc/qa/extras/sctablerowsobj.cxx|   90 
++
 4 files changed, 134 insertions(+), 2 deletions(-)

New commits:
commit 9b39fcd59c251e51c074e90f48924849b6f2f5c7
Author: Jens Carl 
AuthorDate: Tue Dec 18 19:55:09 2018 +
Commit: Jens Carl 
CommitDate: Wed Dec 19 00:32:21 2018 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScTableRowsObj.

Change-Id: I90dc592ba7901dab9c402b56e9e992fe7593c71c
Reviewed-on: https://gerrit.libreoffice.org/65371
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
index 5fc9e5772b15..c73b20a6ef30 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableRowsObj.csv
@@ -1,5 +1,3 @@
-"ScTableRowsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScTableRowsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScTableRowsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScTableRowsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScTableRowsObj";"com::sun::star::table::XTableRows";"insertByIndex()"
diff --git a/sc/CppunitTest_sc_tablerowsobj.mk 
b/sc/CppunitTest_sc_tablerowsobj.mk
new file mode 100644
index ..34d4b2b8c250
--- /dev/null
+++ b/sc/CppunitTest_sc_tablerowsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_tablerowsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_tablerowsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_tablerowsobj, \
+sc/qa/extras/sctablerowsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_tablerowsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_tablerowsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_tablerowsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_tablerowsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_tablerowsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_tablerowsobj,\
+$(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_tablerowsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 95bfd089dd13..97a5e17bca3b 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -182,6 +182,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_subtotalfieldobj \
CppunitTest_sc_tableconditionalentryobj \
CppunitTest_sc_tableconditionalformatobj \
+   CppunitTest_sc_tablerowsobj \
CppunitTest_sc_tablesheetobj \
CppunitTest_sc_tablesheetsobj \
CppunitTest_sc_tablevalidationobj \
diff --git a/sc/qa/extras/sctablerowsobj.cxx b/sc/qa/extras/sctablerowsobj.cxx
new file mode 100644
index ..67c1f86efafc
--- /dev/null
+++ b/sc/qa/extras/sctablerowsobj.cxx
@@ -0,0 +1,90 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+using namespace css::uno;
+
+namespace sc_apitest
+{
+class ScTableRowsObj : public CalcUnoApiTest, public apitest::XIndexAccess
+{
+public:
+ScTableRowsObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScTableRowsObj);
+
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xCompoment;
+};
+
+ScTableRowsObj::ScTableRowsObj()
+: CalcUnoApiTest("/sc/qa/extras/testdocuemts")
+, XIndexAccess(1048576)
+{
+}
+
+uno::Reference ScTableRo

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-18 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv |2 --
 sc/qa/extras/scscenariosobj.cxx|9 +
 2 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit ec291d1ad0581688522cd1f1d341ad4345b14885
Author: Jens Carl 
AuthorDate: Tue Dec 18 07:13:56 2018 +
Commit: Jens Carl 
CommitDate: Tue Dec 18 18:31:56 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScScenariosObj.

Change-Id: Ic1592746f99f685375e5b96c5b51c221d48ab07f
Reviewed-on: https://gerrit.libreoffice.org/65308
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
index 8ef1b812bd2b..668c1cc6d36d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
@@ -1,5 +1,3 @@
 "ScScenariosObj";"com::sun::star::container::XNameAccess";"getByName()"
 "ScScenariosObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScScenariosObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScScenariosObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScScenariosObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scscenariosobj.cxx b/sc/qa/extras/scscenariosobj.cxx
index 415ffec08d6d..cddbf07f8744 100644
--- a/sc/qa/extras/scscenariosobj.cxx
+++ b/sc/qa/extras/scscenariosobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -15,6 +16,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -24,6 +26,7 @@
 #include 
 
 #include 
+#include 
 
 #include 
 #include 
@@ -35,6 +38,7 @@ using namespace com::sun::star;
 namespace sc_apitest
 {
 class ScScenariosObj : public CalcUnoApiTest,
+   public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
public apitest::XScenarios
@@ -48,6 +52,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScScenariosObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
@@ -67,6 +75,7 @@ private:
 
 ScScenariosObj::ScScenariosObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 , XIndexAccess(1)
 {
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-18 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv |2 --
 sc/qa/extras/scscenariosobj.cxx|9 -
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 839d651db92655f392107da864195bb86f67f704
Author: Jens Carl 
AuthorDate: Tue Dec 18 07:05:24 2018 +
Commit: Jens Carl 
CommitDate: Tue Dec 18 11:21:49 2018 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScScenariosObj.

Change-Id: Idfe41c83adcec7a9cb6b29da9aafcb8c7c25c711
Reviewed-on: https://gerrit.libreoffice.org/65306
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
index 076436a5c91d..8ef1b812bd2b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScScenariosObj.csv
@@ -1,7 +1,5 @@
 "ScScenariosObj";"com::sun::star::container::XNameAccess";"getByName()"
 "ScScenariosObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScScenariosObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScScenariosObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScScenariosObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScScenariosObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScScenariosObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scscenariosobj.cxx b/sc/qa/extras/scscenariosobj.cxx
index baa263998ecc..415ffec08d6d 100644
--- a/sc/qa/extras/scscenariosobj.cxx
+++ b/sc/qa/extras/scscenariosobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -20,12 +21,12 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 
 #include 
 #include 
-#include 
 
 using namespace css;
 using namespace css::uno;
@@ -35,6 +36,7 @@ namespace sc_apitest
 {
 class ScScenariosObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
+   public apitest::XIndexAccess,
public apitest::XScenarios
 {
 public:
@@ -49,6 +51,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XScenarios
 CPPUNIT_TEST(testAddNewByName);
 CPPUNIT_TEST(testRemoveByName);
@@ -61,6 +67,7 @@ private:
 
 ScScenariosObj::ScScenariosObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(1)
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-15 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv |1 -
 sc/qa/extras/scheaderfieldsobj.cxx|8 
+++-
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 3e2368cc76dca7583d54a5f75592f68340d6ce83
Author: Jens Carl 
AuthorDate: Sat Dec 8 08:25:12 2018 +
Commit: Jens Carl 
CommitDate: Sat Dec 15 10:07:02 2018 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScHeaderFieldsObj.

Change-Id: Ibead91f6c4369bb75e218eadb99776b0d1fb7cf4
Reviewed-on: https://gerrit.libreoffice.org/64799
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
index 532a598aeea2..1d68820a8b35 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
@@ -1,3 +1,2 @@
 
"ScHeaderFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScHeaderFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
-"ScHeaderFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scheaderfieldsobj.cxx 
b/sc/qa/extras/scheaderfieldsobj.cxx
index ea1379c37c50..e02d631bd992 100644
--- a/sc/qa/extras/scheaderfieldsobj.cxx
+++ b/sc/qa/extras/scheaderfieldsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -33,7 +34,9 @@ using namespace css::uno;
 
 namespace sc_apitest
 {
-class ScCellFieldsObj : public CalcUnoApiTest, public apitest::XRefreshable
+class ScCellFieldsObj : public CalcUnoApiTest,
+public apitest::XEnumerationAccess,
+public apitest::XRefreshable
 {
 public:
 ScCellFieldsObj();
@@ -44,6 +47,9 @@ public:
 
 CPPUNIT_TEST_SUITE(ScCellFieldsObj);
 
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
 // XRefreshable
 CPPUNIT_TEST(testRefreshListener);
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_headerfieldsobj.mk sc/Module_sc.mk sc/qa

2018-12-14 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv |3 
 sc/CppunitTest_sc_headerfieldsobj.mk  |   43 
 sc/Module_sc.mk   |1 
 sc/qa/extras/scheaderfieldsobj.cxx|  104 
++
 4 files changed, 148 insertions(+), 3 deletions(-)

New commits:
commit 2d6e0bdda331dc6343972f9ec786335aa8ddc674
Author: Jens Carl 
AuthorDate: Sat Dec 8 08:22:48 2018 +
Commit: Jens Carl 
CommitDate: Sat Dec 15 06:47:46 2018 +0100

tdf#45904 Move XRefreshable Java tests to C++

Move XRefreshable Java tests to C++ for ScHeaderFieldsObj.

Change-Id: Ia922b11e93f38bfc56795cc34c150b3429fd5447
Reviewed-on: https://gerrit.libreoffice.org/64798
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
index 86875218abdd..532a598aeea2 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
@@ -1,6 +1,3 @@
-"ScHeaderFieldsObj";"com::sun::star::util::XRefreshable";"refresh()"
-"ScHeaderFieldsObj";"com::sun::star::util::XRefreshable";"addRefreshListener()"
-"ScHeaderFieldsObj";"com::sun::star::util::XRefreshable";"removeRefreshListener()"
 
"ScHeaderFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScHeaderFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScHeaderFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/CppunitTest_sc_headerfieldsobj.mk 
b/sc/CppunitTest_sc_headerfieldsobj.mk
new file mode 100644
index ..c8257738ae11
--- /dev/null
+++ b/sc/CppunitTest_sc_headerfieldsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_headerfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_headerfieldsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_headerfieldsobj, \
+sc/qa/extras/scheaderfieldsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_headerfieldsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_headerfieldsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_headerfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_headerfieldsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_headerfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_headerfieldsobj,\
+$(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_headerfieldsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index a4fa70eb4abd..95bfd089dd13 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -135,6 +135,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_filterdescriptorbaseobj \
CppunitTest_sc_functiondescriptionobj \
CppunitTest_sc_functionlistobj \
+   CppunitTest_sc_headerfieldsobj \
CppunitTest_sc_headerfootercontentobj \
CppunitTest_sc_indexenumeration_cellannotationsenumeration \
CppunitTest_sc_indexenumeration_cellarealinksenumeration \
diff --git a/sc/qa/extras/scheaderfieldsobj.cxx 
b/sc/qa/extras/scheaderfieldsobj.cxx
new file mode 100644
index ..ea1379c37c50
--- /dev/null
+++ b/sc/qa/extras/scheaderfieldsobj.cxx
@@ -0,0 +1,104 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+#include 
+
+using namespace css;
+using namespace css::uno;
+
+namespace sc_apitest
+{
+class ScCellFieldsObj : public CalcUnoApiTest, public apitest::XRefreshable
+{
+public:
+ScCellFieldsObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScCellFieldsObj);
+

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-07 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv |2 -
 sc/qa/extras/sccellfieldsobj.cxx|   13 
+-
 2 files changed, 12 insertions(+), 3 deletions(-)

New commits:
commit 165e0e14e5ad71a44d7eb1f301a565c5cd8f0559
Author: Jens Carl 
AuthorDate: Fri Dec 7 20:54:57 2018 +
Commit: Jens Carl 
CommitDate: Sat Dec 8 04:04:00 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScCellFieldsObj.

Change-Id: I140cb1f1d5f9cbccfd4dbb43d37c9cd48b7346e8
Reviewed-on: https://gerrit.libreoffice.org/64794
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv
index dac1b035ea34..ea3a0c75040a 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv
@@ -1,3 +1 @@
-"ScCellFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScCellFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScCellFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/sccellfieldsobj.cxx b/sc/qa/extras/sccellfieldsobj.cxx
index ec6400ebf6f1..d9074ad68641 100644
--- a/sc/qa/extras/sccellfieldsobj.cxx
+++ b/sc/qa/extras/sccellfieldsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
@@ -19,17 +20,22 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 
 #include 
 
+#include 
+
 using namespace css;
 using namespace css::uno;
 
 namespace sc_apitest
 {
-class ScCellFieldsObj : public CalcUnoApiTest, public apitest::XRefreshable
+class ScCellFieldsObj : public CalcUnoApiTest,
+public apitest::XElementAccess,
+public apitest::XRefreshable
 {
 public:
 ScCellFieldsObj();
@@ -40,6 +46,10 @@ public:
 
 CPPUNIT_TEST_SUITE(ScCellFieldsObj);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XRefreshable
 CPPUNIT_TEST(testAddRefreshListener);
 CPPUNIT_TEST(testRefresh);
@@ -53,6 +63,7 @@ private:
 
 ScCellFieldsObj::ScCellFieldsObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_cellfieldsobj.mk sc/Module_sc.mk sc/qa

2018-12-07 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv |3 
 sc/CppunitTest_sc_cellfieldsobj.mk  |   43 
 sc/Module_sc.mk |1 
 sc/qa/extras/sccellfieldsobj.cxx|   98 
++
 4 files changed, 142 insertions(+), 3 deletions(-)

New commits:
commit 47d7608395bde93782cd9642abeeebe482ddf301
Author: Jens Carl 
AuthorDate: Fri Dec 7 20:47:38 2018 +
Commit: Jens Carl 
CommitDate: Sat Dec 8 04:02:16 2018 +0100

tdf#45904 Move XRefreshable Java tests to C++

Move XRefreshable Java tests to C++ for ScCellFieldsObj.

Change-Id: Ic5679c32669b1368a702c9b132e6789fb828330f
Reviewed-on: https://gerrit.libreoffice.org/64793
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv
index 8e7210da3839..dac1b035ea34 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFieldsObj.csv
@@ -1,6 +1,3 @@
-"ScCellFieldsObj";"com::sun::star::util::XRefreshable";"refresh()"
-"ScCellFieldsObj";"com::sun::star::util::XRefreshable";"addRefreshListener()"
-"ScCellFieldsObj";"com::sun::star::util::XRefreshable";"removeRefreshListener()"
 
"ScCellFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScCellFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScCellFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/CppunitTest_sc_cellfieldsobj.mk 
b/sc/CppunitTest_sc_cellfieldsobj.mk
new file mode 100644
index ..3d672ea176f5
--- /dev/null
+++ b/sc/CppunitTest_sc_cellfieldsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_cellfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_cellfieldsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_cellfieldsobj, \
+sc/qa/extras/sccellfieldsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_cellfieldsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_cellfieldsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_cellfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_cellfieldsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_cellfieldsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_cellfieldsobj,\
+$(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_cellfieldsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index e7aa99051ae7..46f3ff9ad25f 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -108,6 +108,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_arealinksobj \
CppunitTest_sc_autoformatobj \
CppunitTest_sc_cellcursorobj \
+   CppunitTest_sc_cellfieldsobj \
CppunitTest_sc_cellformatsenumeration \
CppunitTest_sc_cellformatsobj \
CppunitTest_sc_cellobj \
diff --git a/sc/qa/extras/sccellfieldsobj.cxx b/sc/qa/extras/sccellfieldsobj.cxx
new file mode 100644
index ..ec6400ebf6f1
--- /dev/null
+++ b/sc/qa/extras/sccellfieldsobj.cxx
@@ -0,0 +1,98 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+using namespace css::uno;
+
+namespace sc_apitest
+{
+class ScCellFieldsObj : public CalcUnoApiTest, public apitest::XRefreshable
+{
+public:
+ScCellFieldsObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScCellFieldsObj);
+
+// XRefreshable
+CPPUNIT_TEST(testAddRefreshListener);
+CPPUNIT_TEST(testRefresh);
+CPPUNIT_TEST(testRemoveRefreshListener);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_uniquecellformatsobj.mk sc/Module_sc.mk sc/qa

2018-12-06 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv |2 
 sc/CppunitTest_sc_uniquecellformatsobj.mk  |   43 

 sc/Module_sc.mk|1 
 sc/qa/extras/scuniquecellformatsobj.cxx|   89 
++
 4 files changed, 133 insertions(+), 2 deletions(-)

New commits:
commit 04ce016e9c618e0b2b35271982e07f265dea81b1
Author: Jens Carl 
AuthorDate: Thu Dec 6 06:38:40 2018 +
Commit: Jens Carl 
CommitDate: Thu Dec 6 18:44:34 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScUniqueCellFormatsObj.

Change-Id: I9cec7605afa2cbfec48e5ecee22c12983c68afee
Reviewed-on: https://gerrit.libreoffice.org/64664
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv
index f06e22629bbd..03cdf463291b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv
@@ -1,5 +1,3 @@
 "ScUniqueCellFormatsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 
"ScUniqueCellFormatsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScUniqueCellFormatsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScUniqueCellFormatsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScUniqueCellFormatsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/CppunitTest_sc_uniquecellformatsobj.mk 
b/sc/CppunitTest_sc_uniquecellformatsobj.mk
new file mode 100644
index ..6efd2f1100bb
--- /dev/null
+++ b/sc/CppunitTest_sc_uniquecellformatsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_uniquecellformatsobj))
+
+$(eval $(call 
gb_CppunitTest_use_external,sc_uniquecellformatsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_uniquecellformatsobj, \
+   sc/qa/extras/scuniquecellformatsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_uniquecellformatsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_uniquecellformatsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_uniquecellformatsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_uniquecellformatsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_uniquecellformatsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_uniquecellformatsobj,\
+$(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_uniquecellformatsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 60a1f6ebaf44..e7aa99051ae7 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -185,6 +185,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_tablevalidationobj \
CppunitTest_sc_tabviewobj \
CppunitTest_sc_uniquecellformatsenumeration \
+   CppunitTest_sc_uniquecellformatsobj \
CppunitTest_sc_viewpaneobj \
 ))
 
diff --git a/sc/qa/extras/scuniquecellformatsobj.cxx 
b/sc/qa/extras/scuniquecellformatsobj.cxx
new file mode 100644
index ..9cd1959fa205
--- /dev/null
+++ b/sc/qa/extras/scuniquecellformatsobj.cxx
@@ -0,0 +1,89 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+#include 
+
+using namespace css;
+using namespace css::uno;
+
+namespace sc_apitest
+{
+class ScUniqueCellFormatsObj : public CalcUnoApiTest, public 
apitest::XElementAccess
+{
+public:
+ScUniqueCellFormatsObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScUniqueCellFormatsObj);
+
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasE

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-06 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv |1 -
 sc/qa/extras/scuniquecellformatsobj.cxx|8 
+++-
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit a9d928cd9b8073d422a5eab70f9de374bf07a260
Author: Jens Carl 
AuthorDate: Thu Dec 6 06:44:18 2018 +
Commit: Jens Carl 
CommitDate: Thu Dec 6 18:44:56 2018 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScUniqueCellFormatsObj.

Change-Id: Ia49fce123577a62e1ad60ef0dab4ac61148a1551
Reviewed-on: https://gerrit.libreoffice.org/64665
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git 
a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv
index 03cdf463291b..548af7fb988b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScUniqueCellFormatsObj.csv
@@ -1,3 +1,2 @@
 "ScUniqueCellFormatsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 
"ScUniqueCellFormatsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScUniqueCellFormatsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scuniquecellformatsobj.cxx 
b/sc/qa/extras/scuniquecellformatsobj.cxx
index 9cd1959fa205..58c9b9633410 100644
--- a/sc/qa/extras/scuniquecellformatsobj.cxx
+++ b/sc/qa/extras/scuniquecellformatsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -28,7 +29,9 @@ using namespace css::uno;
 
 namespace sc_apitest
 {
-class ScUniqueCellFormatsObj : public CalcUnoApiTest, public 
apitest::XElementAccess
+class ScUniqueCellFormatsObj : public CalcUnoApiTest,
+   public apitest::XElementAccess,
+   public apitest::XEnumerationAccess
 {
 public:
 ScUniqueCellFormatsObj();
@@ -43,6 +46,9 @@ public:
 CPPUNIT_TEST(testGetElementType);
 CPPUNIT_TEST(testHasElements);
 
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-05 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv |1 -
 sc/qa/extras/sccellformatsobj.cxx|8 
+++-
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 849944f62cecd75103d85ae59d79d98bf273c6e4
Author: Jens Carl 
AuthorDate: Wed Dec 5 19:40:28 2018 +
Commit: Jens Carl 
CommitDate: Wed Dec 5 23:14:06 2018 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScCellFormatsObj.

Change-Id: I68b9e0308b1959b848e8a53b143c6a6a49589bb7
Reviewed-on: https://gerrit.libreoffice.org/64647
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv
index 08c7325ce95d..d9fa9324ba53 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv
@@ -1,3 +1,2 @@
 "ScCellFormatsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScCellFormatsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScCellFormatsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/sccellformatsobj.cxx 
b/sc/qa/extras/sccellformatsobj.cxx
index 0a79374f9f42..e4d407002d4d 100644
--- a/sc/qa/extras/sccellformatsobj.cxx
+++ b/sc/qa/extras/sccellformatsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -28,7 +29,9 @@ using namespace css::uno;
 
 namespace sc_apitest
 {
-class ScCellFormatsObj : public CalcUnoApiTest, public apitest::XElementAccess
+class ScCellFormatsObj : public CalcUnoApiTest,
+ public apitest::XElementAccess,
+ public apitest::XEnumerationAccess
 {
 public:
 ScCellFormatsObj();
@@ -43,6 +46,9 @@ public:
 CPPUNIT_TEST(testGetElementType);
 CPPUNIT_TEST(testHasElements);
 
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
 CPPUNIT_TEST_SUITE_END();
 
 private:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_cellformatsobj.mk sc/Module_sc.mk sc/qa

2018-12-05 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv |2 
 sc/CppunitTest_sc_cellformatsobj.mk  |   43 
 sc/Module_sc.mk  |1 
 sc/qa/extras/sccellformatsobj.cxx|   91 
++
 4 files changed, 135 insertions(+), 2 deletions(-)

New commits:
commit b4ffa8c04117ba75f7f63f2a7655a2b611b83ab9
Author: Jens Carl 
AuthorDate: Wed Dec 5 19:35:13 2018 +
Commit: Jens Carl 
CommitDate: Wed Dec 5 22:20:19 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScCellFormatsObj.

Change-Id: I8c72c7eb352720f4ff40727df4823855ec8014e5
Reviewed-on: https://gerrit.libreoffice.org/64646
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv
index 6d993456bd81..08c7325ce95d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellFormatsObj.csv
@@ -1,5 +1,3 @@
 "ScCellFormatsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScCellFormatsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScCellFormatsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScCellFormatsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 
"ScCellFormatsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/CppunitTest_sc_cellformatsobj.mk 
b/sc/CppunitTest_sc_cellformatsobj.mk
new file mode 100644
index ..82175e00d918
--- /dev/null
+++ b/sc/CppunitTest_sc_cellformatsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_cellformatsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_cellformatsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_cellformatsobj, \
+   sc/qa/extras/sccellformatsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_cellformatsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_cellformatsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_cellformatsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_cellformatsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_cellformatsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_cellformatsobj,\
+   $(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_cellformatsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 530b5a791fec..60a1f6ebaf44 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -109,6 +109,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_autoformatobj \
CppunitTest_sc_cellcursorobj \
CppunitTest_sc_cellformatsenumeration \
+   CppunitTest_sc_cellformatsobj \
CppunitTest_sc_cellobj \
CppunitTest_sc_cellsobj \
CppunitTest_sc_cellrangeobj \
diff --git a/sc/qa/extras/sccellformatsobj.cxx 
b/sc/qa/extras/sccellformatsobj.cxx
new file mode 100644
index ..0a79374f9f42
--- /dev/null
+++ b/sc/qa/extras/sccellformatsobj.cxx
@@ -0,0 +1,91 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+#include 
+
+using namespace css;
+using namespace css::uno;
+
+namespace sc_apitest
+{
+class ScCellFormatsObj : public CalcUnoApiTest, public apitest::XElementAccess
+{
+public:
+ScCellFormatsObj();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScCellFormatsObj);
+
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;
+};
+
+ScCellFormatsObj::ScCellFormatsObj()
+: CalcUnoApiTest("/s

[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-02 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv |2 -
 sc/qa/extras/sclabelrangesobj.cxx|   11 
--
 2 files changed, 9 insertions(+), 4 deletions(-)

New commits:
commit 184d0c4baf3862bddf735aa416d219b83c6da421
Author: Jens Carl 
AuthorDate: Sun Dec 2 18:13:40 2018 +
Commit: Jens Carl 
CommitDate: Mon Dec 3 07:20:03 2018 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScLabelRangesObj.

Change-Id: I448561be2395beb9448ffcfc29434a94468166cb
Reviewed-on: https://gerrit.libreoffice.org/64431
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv
index 62e3ab113118..c814454c7897 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScLabelRangesObj.csv
@@ -1,4 +1,2 @@
-"ScLabelRangesObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScLabelRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScLabelRangesObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScLabelRangesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/sclabelrangesobj.cxx 
b/sc/qa/extras/sclabelrangesobj.cxx
index 44e05c8ef7a0..fefba462d117 100644
--- a/sc/qa/extras/sclabelrangesobj.cxx
+++ b/sc/qa/extras/sclabelrangesobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -16,9 +17,9 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
-#include 
 
 using namespace css;
 using namespace css::uno;
@@ -28,6 +29,7 @@ namespace sc_apitest
 {
 class ScLabelRangesObj : public CalcUnoApiTest,
  public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
  public apitest::XLabelRanges
 {
 public:
@@ -42,6 +44,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XLabelRanges
 CPPUNIT_TEST(testAddNew);
 CPPUNIT_TEST(testRemoveByIndex);
@@ -54,6 +60,7 @@ private:
 
 ScLabelRangesObj::ScLabelRangesObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XIndexAccess(1)
 {
 }
 
@@ -87,7 +94,7 @@ void ScLabelRangesObj::tearDown()
 
 CPPUNIT_TEST_SUITE_REGISTRATION(ScLabelRangesObj);
 
-} // end namespace
+} // namespace sc_apitest
 
 CPPUNIT_PLUGIN_IMPLEMENT();
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-01 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv |2 --
 sc/qa/extras/scannotationsobj.cxx|   10 
++
 2 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 2562eb1aff667fd9ddc07b75fa8346e9d61ea093
Author: Jens Carl 
AuthorDate: Sat Dec 1 19:16:11 2018 +
Commit: Jens Carl 
CommitDate: Sun Dec 2 00:27:38 2018 +0100

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScAnnotationsObj.

Change-Id: Icbd34ffe4b4911754045e4a5dc511b3fb25d4dd0
Reviewed-on: https://gerrit.libreoffice.org/64404
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv
index 1a785cf0f365..a6e62ec29e06 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAnnotationsObj.csv
@@ -1,4 +1,2 @@
-"ScAnnotationsObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScAnnotationsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 
"ScAnnotationsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScAnnotationsObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scannotationsobj.cxx 
b/sc/qa/extras/scannotationsobj.cxx
index a80c35e35a18..5c358e2b4caf 100644
--- a/sc/qa/extras/scannotationsobj.cxx
+++ b/sc/qa/extras/scannotationsobj.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -16,6 +17,9 @@
 #include 
 #include 
 #include 
+#include 
+
+#include 
 
 using namespace css;
 using namespace css::uno;
@@ -23,6 +27,7 @@ using namespace css::uno;
 namespace sc_apitest {
 
 class ScAnnontationsObj : public CalcUnoApiTest, public 
apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
  public 
apitest::XSheetAnnotations
 {
 public:
@@ -39,6 +44,10 @@ public:
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
+// XIndexAccess
+CPPUNIT_TEST(testGetByIndex);
+CPPUNIT_TEST(testGetCount);
+
 // XSheetAnnotations
 CPPUNIT_TEST(testCount);
 CPPUNIT_TEST(testIndex);
@@ -55,6 +64,7 @@ private:
 
 ScAnnontationsObj::ScAnnontationsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+   , XIndexAccess(1)
 {
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

2018-12-01 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv |2 
 sc/qa/extras/scarealinksobj.cxx|   48 
++
 2 files changed, 32 insertions(+), 18 deletions(-)

New commits:
commit 20533db9eaafac18b02c81c64b583c76a5ca66a6
Author: Jens Carl 
AuthorDate: Sat Dec 1 06:26:51 2018 +
Commit: Jens Carl 
CommitDate: Sat Dec 1 10:02:54 2018 +0100

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScAreaLinksObj.

Change-Id: I89beb6a1c05d853e94ebbedb031d87484cb84b38
Reviewed-on: https://gerrit.libreoffice.org/64373
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv
index 41dc5a564263..d21c646b1eee 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAreaLinksObj.csv
@@ -1,4 +1,2 @@
 "ScAreaLinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScAreaLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScAreaLinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScAreaLinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scarealinksobj.cxx b/sc/qa/extras/scarealinksobj.cxx
index 73a0f2e303dd..ab4bdd76ad43 100644
--- a/sc/qa/extras/scarealinksobj.cxx
+++ b/sc/qa/extras/scarealinksobj.cxx
@@ -8,28 +8,36 @@
  */
 
 #include 
-#include 
+#include 
 #include 
+#include 
 
 #include 
+#include 
+#include 
 #include 
 #include 
-
+#include 
 #include 
+
 #include 
 
+#include 
+
 using namespace css;
 using namespace css::uno;
 
-namespace sc_apitest {
-
-class ScAreaLinksObj : public CalcUnoApiTest, public apitest::XAreaLinks,
-  public 
apitest::XEnumerationAccess
+namespace sc_apitest
+{
+class ScAreaLinksObj : public CalcUnoApiTest,
+   public apitest::XAreaLinks,
+   public apitest::XElementAccess,
+   public apitest::XEnumerationAccess
 {
 public:
 ScAreaLinksObj();
 
-virtual uno::Reference< uno::XInterface > init() override;
+virtual uno::Reference init() override;
 virtual void setUp() override;
 virtual void tearDown() override;
 
@@ -39,27 +47,35 @@ public:
 CPPUNIT_TEST(testInsertAtPosition);
 CPPUNIT_TEST(testRemoveByIndex);
 
+// XElementAccess
+CPPUNIT_TEST(testGetElementType);
+CPPUNIT_TEST(testHasElements);
+
 // XEnumerationAccess
 CPPUNIT_TEST(testCreateEnumeration);
 
 CPPUNIT_TEST_SUITE_END();
 
 private:
-uno::Reference< lang::XComponent > mxComponent;
-
+uno::Reference m_xComponent;
 };
 
 ScAreaLinksObj::ScAreaLinksObj()
 : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+, XElementAccess(cppu::UnoType::get())
 {
 }
 
-uno::Reference< uno::XInterface > ScAreaLinksObj::init()
+uno::Reference ScAreaLinksObj::init()
 {
-uno::Reference< sheet::XSpreadsheetDocument > xDoc(mxComponent, 
uno::UNO_QUERY_THROW);
+uno::Reference xDoc(m_xComponent, 
uno::UNO_QUERY_THROW);
+CPPUNIT_ASSERT_MESSAGE("no calc document", xDoc.is());
+
+uno::Reference xPropSet(xDoc, uno::UNO_QUERY_THROW);
+uno::Reference 
xLinks(xPropSet->getPropertyValue("AreaLinks"),
+ uno::UNO_QUERY_THROW);
 
-uno::Reference< beans::XPropertySet > xPropSet(xDoc, uno::UNO_QUERY_THROW);
-uno::Reference< sheet::XAreaLinks > 
xLinks(xPropSet->getPropertyValue("AreaLinks"), uno::UNO_QUERY_THROW);
+xLinks->insertAtPosition(table::CellAddress(1, 2, 3), 
"ScAreaLinksObj.ods", "A2:B5", "", "");
 
 return xLinks;
 }
@@ -67,18 +83,18 @@ uno::Reference< uno::XInterface > ScAreaLinksObj::init()
 void ScAreaLinksObj::setUp()
 {
 CalcUnoApiTest::setUp();
-mxComponent = loadFromDesktop("private:factory/scalc");
+m_xComponent = loadFromDesktop("private:factory/scalc");
 }
 
 void ScAreaLinksObj::tearDown()
 {
-closeDocument(mxComponent);
+closeDocument(m_xComponent);
 CalcUnoApiTest::tearDown();
 }
 
 CPPUNIT_TEST_SUITE_REGISTRATION(ScAreaLinksObj);
 
-} // end namespace
+} // namespace sc_apitest
 
 CPPUNIT_PLUGIN_IMPLEMENT();
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc sc/CppunitTest_sc_cellsobj.mk sc/Module_sc.mk sc/qa

2018-11-30 Thread Libreoffice Gerrit user
 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv |1 
 sc/CppunitTest_sc_cellsobj.mk  |   43 +
 sc/Module_sc.mk|1 
 sc/qa/extras/sccellsobj.cxx|  101 +
 4 files changed, 145 insertions(+), 1 deletion(-)

New commits:
commit 6408dbf268fc8cc72fa741197e38b07619f0e96a
Author: Jens Carl 
AuthorDate: Fri Nov 30 07:11:51 2018 +
Commit: Jens Carl 
CommitDate: Fri Nov 30 18:15:08 2018 +0100

tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java tests to C++ for ScCellsObj.

Change-Id: I3ec78142db7cfa924bf5663ca44cca80b6a0e556
Reviewed-on: https://gerrit.libreoffice.org/64315
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv 
b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv
index d6ede74a7d3f..c8c8a23d9be7 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellsObj.csv
@@ -1,3 +1,2 @@
 "ScCellsObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScCellsObj";"com::sun::star::container::XElementAccess";"hasElements()"
-"ScCellsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/CppunitTest_sc_cellsobj.mk b/sc/CppunitTest_sc_cellsobj.mk
new file mode 100644
index ..07dfd37992da
--- /dev/null
+++ b/sc/CppunitTest_sc_cellsobj.mk
@@ -0,0 +1,43 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_cellsobj))
+
+$(eval $(call gb_CppunitTest_use_external,sc_cellsobj,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_cellsobj, \
+sc/qa/extras/sccellsobj \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,sc_cellsobj, \
+   cppu \
+   sal \
+   subsequenttest \
+   test \
+   unotest \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_cellsobj,\
+   $$(INCLUDE) \
+))
+
+$(eval $(call gb_CppunitTest_use_sdk_api,sc_cellsobj))
+
+$(eval $(call gb_CppunitTest_use_ure,sc_cellsobj))
+$(eval $(call gb_CppunitTest_use_vcl,sc_cellsobj))
+
+$(eval $(call gb_CppunitTest_use_components,sc_cellsobj,\
+$(sc_unoapi_common_components) \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,sc_cellsobj))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 1dfe489869f6..530b5a791fec 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -110,6 +110,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_cellcursorobj \
CppunitTest_sc_cellformatsenumeration \
CppunitTest_sc_cellobj \
+   CppunitTest_sc_cellsobj \
CppunitTest_sc_cellrangeobj \
CppunitTest_sc_cellrangesobj \
CppunitTest_sc_cellsenumeration \
diff --git a/sc/qa/extras/sccellsobj.cxx b/sc/qa/extras/sccellsobj.cxx
new file mode 100644
index ..93c9c9f8d259
--- /dev/null
+++ b/sc/qa/extras/sccellsobj.cxx
@@ -0,0 +1,101 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+using namespace css;
+using namespace css::uno;
+
+namespace sc_apitest
+{
+class ScCells : public CalcUnoApiTest, public apitest::XEnumerationAccess
+{
+public:
+ScCells();
+
+virtual uno::Reference init() override;
+virtual void setUp() override;
+virtual void tearDown() override;
+
+CPPUNIT_TEST_SUITE(ScCells);
+
+// XEnumerationAccess
+CPPUNIT_TEST(testCreateEnumeration);
+
+CPPUNIT_TEST_SUITE_END();
+
+private:
+uno::Reference m_xComponent;
+};
+
+ScCells::ScCells()
+: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+{
+}
+
+uno::Reference ScCells::init()
+{
+uno::Reference xDoc(m_xComponent, 
uno::UNO_QUERY_THROW);
+CPPUNIT_ASSERT_MESSAGE("no calc document", xDoc.is());
+
+uno::Reference xSheets(xDoc->getSheets(), 
uno::UNO_QUERY_THROW);
+uno::Reference xIA(xSheets, uno::UNO_QUERY_THROW);
+uno::Reference xCellRange(xIA->getByIndex(0), 
uno::UN

[Libreoffice-commits] core.git: qadevOOo/objdsc qadevOOo/runner qadevOOo/tests sw/inc sw/qa sw/source

2018-03-08 Thread Tomaž Vajngerl
 qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextGraphicObject.csv |2 
 qadevOOo/runner/util/WriterTools.java|   25 +
 qadevOOo/tests/java/mod/_sw/SwXTextDocument.java |4 
 qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java|   28 +-
 qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java   |   24 +
 sw/inc/cmdid.h   |2 
 sw/inc/unoprnms.hxx  |1 
 sw/qa/extras/globalfilter/globalfilter.cxx   |   44 +--
 sw/qa/extras/htmlimport/htmlimport.cxx   |8 
 sw/qa/extras/rtfexport/rtfexport2.cxx|6 
 sw/source/core/unocore/unoframe.cxx  |  132 
+-
 sw/source/core/unocore/unomap1.cxx   |1 
 sw/source/filter/ww8/docxattributeoutput.cxx |   10 
 sw/source/filter/ww8/rtfsdrexport.cxx|   18 -
 14 files changed, 121 insertions(+), 184 deletions(-)

New commits:
commit dfee7d93b4e863d673c45921f79bb876b5738ea6
Author: Tomaž Vajngerl 
Date:   Thu Mar 8 09:01:17 2018 +0900

sw: get rid of FN_UNO_GRAPHIC_U_R_L and "GraphicURL" property

Change-Id: I6148016658e5bb46fd4f8765a233a434174791fd
Reviewed-on: https://gerrit.libreoffice.org/50922
Tested-by: Jenkins 
Reviewed-by: Tomaž Vajngerl 

diff --git 
a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextGraphicObject.csv 
b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextGraphicObject.csv
index bf33c49518c5..d487128a2b03 100644
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextGraphicObject.csv
+++ b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXTextGraphicObject.csv
@@ -7,7 +7,7 @@
 
"SwXTextGraphicObject";"com::sun::star::text::TextGraphicObject";"HoriMirroredOnEvenPages"
 
"SwXTextGraphicObject";"com::sun::star::text::TextGraphicObject";"HoriMirroredOnOddPages"
 "SwXTextGraphicObject";"com::sun::star::text::TextGraphicObject";"VertMirrored"
-"SwXTextGraphicObject";"com::sun::star::text::TextGraphicObject";"GraphicURL"
+"SwXTextGraphicObject";"com::sun::star::text::TextGraphicObject";"Graphic"
 
"SwXTextGraphicObject";"com::sun::star::text::TextGraphicObject";"GraphicFilter"
 "SwXTextGraphicObject";"com::sun::star::text::TextGraphicObject";"ActualSize"
 
"SwXTextGraphicObject";"com::sun::star::text::TextGraphicObject";"AdjustLuminance"
diff --git a/qadevOOo/runner/util/WriterTools.java 
b/qadevOOo/runner/util/WriterTools.java
index 250ecbf6be45..ad769ca8623a 100644
--- a/qadevOOo/runner/util/WriterTools.java
+++ b/qadevOOo/runner/util/WriterTools.java
@@ -27,13 +27,19 @@ import com.sun.star.drawing.XDrawPageSupplier;
 
 import com.sun.star.lang.XComponent;
 import com.sun.star.lang.XMultiServiceFactory;
+import com.sun.star.lang.XMultiComponentFactory;
 
 import com.sun.star.text.XText;
 import com.sun.star.text.XTextContent;
 import com.sun.star.text.XTextCursor;
 import com.sun.star.text.XTextDocument;
 
+import com.sun.star.graphic.XGraphic;
+import com.sun.star.graphic.XGraphicProvider;
+import com.sun.star.graphic.GraphicProvider;
+
 import com.sun.star.uno.UnoRuntime;
+import com.sun.star.uno.XComponentContext;
 
 public class WriterTools {
 public static XTextDocument createTextDoc(XMultiServiceFactory xMSF) {
@@ -77,13 +83,27 @@ public class WriterTools {
 }
 
 public static void insertTextGraphic(XTextDocument aDoc,
- XMultiServiceFactory xMSF, int hpos,
+ XMultiServiceFactory xMSF, 
XComponentContext xContext, int hpos,
  int vpos, int width, int height,
  String pic, String name) {
 try {
 Object oGObject = xMSF.createInstance(
   "com.sun.star.text.GraphicObject");
 
+XGraphicProvider xGraphicProvider = UnoRuntime.queryInterface(
+XGraphicProvider.class,
+xContext.getServiceManager().createInstanceWithContext(
+"com.sun.star.graphic.GraphicProvider", xContext));
+
+String fullURL = util.utils.getFullTestURL(pic);
+
+PropertyValue[] aMediaProps = new PropertyValue[] { new 
PropertyValue() };
+aMediaProps[0].Name = "URL";
+aMediaProps[0].Value = fullURL;
+
+XGraphic xGraphic = UnoRuntime.queryInterface(XGraphic.class,
+xGraphicProvider.queryGraphic(aMediaProps));
+
 XText the_text = aDoc.getText();
 XTextCursor the_cursor = the_text.createTextCursor();
 XTextContent the_content = UnoRuntime.queryInterface(
@@ -93,8 +113,7 @@ public class WriterTools {
 XPropertySet oProps = UnoRuntime.queryInte

[Libreoffice-commits] core.git: qadevOOo/objdsc qadevOOo/tests sdext/source

2015-10-04 Thread Julien Nabet
 qadevOOo/objdsc/fps/com.sun.star.comp.ui.dialogs.FilePicker.csv |1 +
 qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.java|6 +++---
 sdext/source/minimizer/fileopendialog.cxx   |2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 3ad8f409d7658d94871aff2e709f013e8c869d98
Author: Julien Nabet 
Date:   Sun Oct 4 16:14:31 2015 +0200

Prefer getSelectedFiles to getFiles (sdext+qadevOOo)

Change-Id: I4827e47b7d67b0112c0f9023c0db4ce8975f06e1
Reviewed-on: https://gerrit.libreoffice.org/19126
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/qadevOOo/objdsc/fps/com.sun.star.comp.ui.dialogs.FilePicker.csv 
b/qadevOOo/objdsc/fps/com.sun.star.comp.ui.dialogs.FilePicker.csv
index 40eec70..dae1067 100644
--- a/qadevOOo/objdsc/fps/com.sun.star.comp.ui.dialogs.FilePicker.csv
+++ b/qadevOOo/objdsc/fps/com.sun.star.comp.ui.dialogs.FilePicker.csv
@@ -3,6 +3,7 @@
 "FilePicker";"com::sun::star::ui::dialogs::XFilePicker";"setDisplayDirectory()"
 "FilePicker";"com::sun::star::ui::dialogs::XFilePicker";"getDisplayDirectory()"
 "FilePicker";"com::sun::star::ui::dialogs::XFilePicker";"getFiles()"
+"FilePicker";"com::sun::star::ui::dialogs::XFilePicker2";"getSelectedFiles()"
 
"FilePicker";"com::sun::star::ui::dialogs::XFilePickerControlAccess#optional";"setValue()"
 
"FilePicker";"com::sun::star::ui::dialogs::XFilePickerControlAccess#optional";"getValue()"
 
"FilePicker";"com::sun::star::ui::dialogs::XFilePickerControlAccess#optional";"setLabel()"
diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.java 
b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.java
index afc5ad8..3a2a71e 100644
--- a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.java
+++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.java
@@ -20,7 +20,7 @@ package ifc.ui.dialogs;
 
 import lib.MultiMethodTest;
 
-import com.sun.star.ui.dialogs.XFilePicker;
+import com.sun.star.ui.dialogs.XFilePicker2;
 
 /**
 * Testing com.sun.star.ui.XFilePicker
@@ -41,7 +41,7 @@ import com.sun.star.ui.dialogs.XFilePicker;
 */
 public class _XFilePicker extends MultiMethodTest {
 
-public XFilePicker oObj = null;
+public XFilePicker2 oObj = null;
 private String dir = null ;
 private static final String fname = "space-metal.jpg" ;
 
@@ -133,7 +133,7 @@ public class _XFilePicker extends MultiMethodTest {
 requiredMethod("setDisplayDirectory()");
 requiredMethod("setDefaultName()");
 
-String[] files = oObj.getFiles();
+String[] files = oObj.getSelectedFiles();
 
 if (files.length > 0) {
 log.println("Path get : '" + files[0] + "'") ;
diff --git a/sdext/source/minimizer/fileopendialog.cxx 
b/sdext/source/minimizer/fileopendialog.cxx
index ad2e890..c327ea5 100644
--- a/sdext/source/minimizer/fileopendialog.cxx
+++ b/sdext/source/minimizer/fileopendialog.cxx
@@ -165,7 +165,7 @@ void FileOpenDialog::setDefaultName( const OUString& 
rDefaultName )
 }
 OUString FileOpenDialog::getURL() const
 {
-Sequence< OUString > aFileSeq( mxFilePicker->getFiles() );
+Sequence< OUString > aFileSeq( mxFilePicker->getSelectedFiles() );
 return aFileSeq.getLength() ? aFileSeq[ 0 ] : OUString();
 };
 OUString FileOpenDialog::getFilterName() const
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc

2014-05-04 Thread Markus Mohrhard
 qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv |1 -
 1 file changed, 1 deletion(-)

New commits:
commit ae1d664008edeb509829265e92ba778d00858d8a
Author: Markus Mohrhard 
Date:   Sun May 4 14:41:50 2014 +0200

Revert "Revert "temporarily disable failing , fdo#66617

This reverts commit 9b8c33ecc561bf8685614ec61d709c8001901fb6.

diff --git a/qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv 
b/qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv
index 6fa7833..8976f4a 100644
--- a/qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv
+++ b/qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv
@@ -73,7 +73,6 @@
 "ChXDiagram";"com::sun::star::chart::ChartStatistics";"PercentageError"
 "ChXDiagram";"com::sun::star::chart::ChartStatistics";"ErrorMargin"
 "ChXDiagram";"com::sun::star::chart::ChartStatistics";"ErrorIndicator"
-"ChXDiagram";"com::sun::star::chart::ChartStatistics";"RegressionCurves"
 "ChXDiagram";"com::sun::star::chart::X3DDisplay";"getWall()"
 "ChXDiagram";"com::sun::star::chart::X3DDisplay";"getFloor()"
 "ChXDiagram";"com::sun::star::chart::StackableDiagram";"Percent"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/objdsc

2013-07-05 Thread Michael Stahl
 qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 6be6700edb3b704d62d8b331ba95f227617c57d3
Author: Michael Stahl 
Date:   Fri Jul 5 13:36:23 2013 +0200

temporarily disable failing chart2 ChXDiagram RegressionCurves test

Change-Id: I29d79338fb1af00337176c11bfd984ce26c37df6

diff --git a/qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv 
b/qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv
index 6fa7833..8976f4a 100644
--- a/qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv
+++ b/qadevOOo/objdsc/sch/com.sun.star.comp.office.ChXDiagram.csv
@@ -73,7 +73,6 @@
 "ChXDiagram";"com::sun::star::chart::ChartStatistics";"PercentageError"
 "ChXDiagram";"com::sun::star::chart::ChartStatistics";"ErrorMargin"
 "ChXDiagram";"com::sun::star::chart::ChartStatistics";"ErrorIndicator"
-"ChXDiagram";"com::sun::star::chart::ChartStatistics";"RegressionCurves"
 "ChXDiagram";"com::sun::star::chart::X3DDisplay";"getWall()"
 "ChXDiagram";"com::sun::star::chart::X3DDisplay";"getFloor()"
 "ChXDiagram";"com::sun::star::chart::StackableDiagram";"Percent"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits