summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-04-27 20:48:08 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-04-28 00:24:49 -0400
commit8600f21b7d3c3656c1458aa440dbb330c08a7c7c (patch)
treeb2ed8a6f64a0ee660866da546f7718d0d2ea8687 /sc/qa/extras
parent219cef62f8bbb5a057eaa830e6a4b2964c242c44 (diff)
Renamed the file to make room for the header version of the same test.
This ScEditFieldObj is used for both cell fields and header/footer fields. Change-Id: I8c51de5d173ae934ea604c68030cd84b13f90ef3
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/sceditfieldobj-cell.cxx (renamed from sc/qa/extras/sceditfieldobj.cxx)26
1 files changed, 13 insertions, 13 deletions
diff --git a/sc/qa/extras/sceditfieldobj.cxx b/sc/qa/extras/sceditfieldobj-cell.cxx
index d5a22adb435d..962834a4c630 100644
--- a/sc/qa/extras/sceditfieldobj.cxx
+++ b/sc/qa/extras/sceditfieldobj-cell.cxx
@@ -42,10 +42,10 @@
namespace sc_apitest {
-class ScEditFieldObj : public UnoApiTest, apitest::XTextField, apitest::XTextContent
+class ScEditFieldObj_Cell : public UnoApiTest, apitest::XTextField, apitest::XTextContent
{
public:
- ScEditFieldObj();
+ ScEditFieldObj_Cell();
virtual void setUp();
virtual void tearDown();
@@ -54,7 +54,7 @@ public:
virtual uno::Reference<text::XTextRange> getTextRange();
virtual bool isAttachSupported() { return true; }
- CPPUNIT_TEST_SUITE(ScEditFieldObj);
+ CPPUNIT_TEST_SUITE(ScEditFieldObj_Cell);
// XTextField
CPPUNIT_TEST(testGetPresentation);
// XTextContent
@@ -68,19 +68,19 @@ private:
static uno::Reference<text::XTextField> mxField;
};
-sal_Int32 ScEditFieldObj::nTest = 0;
-uno::Reference<lang::XComponent> ScEditFieldObj::mxComponent;
-uno::Reference<text::XTextField> ScEditFieldObj::mxField;
+sal_Int32 ScEditFieldObj_Cell::nTest = 0;
+uno::Reference<lang::XComponent> ScEditFieldObj_Cell::mxComponent;
+uno::Reference<text::XTextField> ScEditFieldObj_Cell::mxField;
-ScEditFieldObj::ScEditFieldObj() {}
+ScEditFieldObj_Cell::ScEditFieldObj_Cell() {}
-void ScEditFieldObj::setUp()
+void ScEditFieldObj_Cell::setUp()
{
++nTest;
UnoApiTest::setUp();
}
-void ScEditFieldObj::tearDown()
+void ScEditFieldObj_Cell::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
closeDocument(mxComponent);
@@ -102,7 +102,7 @@ uno::Reference<text::XTextField> getNewField(const uno::Reference<lang::XMultiSe
}
-uno::Reference<uno::XInterface> ScEditFieldObj::init()
+uno::Reference<uno::XInterface> ScEditFieldObj_Cell::init()
{
// Return a field that's already in the cell.
if (!mxField.is())
@@ -132,14 +132,14 @@ uno::Reference<uno::XInterface> ScEditFieldObj::init()
return mxField;
}
-uno::Reference<text::XTextContent> ScEditFieldObj::getTextContent()
+uno::Reference<text::XTextContent> ScEditFieldObj_Cell::getTextContent()
{
// Return a field object that's not yet inserted.
uno::Reference<lang::XMultiServiceFactory> xSM(mxComponent, UNO_QUERY_THROW);
return uno::Reference<text::XTextContent>(getNewField(xSM), UNO_QUERY_THROW);
}
-uno::Reference<text::XTextRange> ScEditFieldObj::getTextRange()
+uno::Reference<text::XTextRange> ScEditFieldObj_Cell::getTextRange()
{
// Use cell A2 for this.
uno::Reference<sheet::XSpreadsheetDocument> xDoc(mxComponent, UNO_QUERY_THROW);
@@ -153,7 +153,7 @@ uno::Reference<text::XTextRange> ScEditFieldObj::getTextRange()
return xRange;
}
-CPPUNIT_TEST_SUITE_REGISTRATION(ScEditFieldObj);
+CPPUNIT_TEST_SUITE_REGISTRATION(ScEditFieldObj_Cell);
CPPUNIT_PLUGIN_IMPLEMENT();