Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d4b0b023
Kaydet (Commit)
d4b0b023
authored
Ara 14, 2011
tarafından
Laurent Godard
Kaydeden (comit)
Markus Mohrhard
Ara 16, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc test xrangename - code cleaning and minor bug aNr2
üst
d0ac36dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
58 deletions
+54
-58
CppunitTest_sc_namedrangeobj.mk
sc/CppunitTest_sc_namedrangeobj.mk
+1
-1
xnamedranges.cxx
sc/qa/extras/xnamedranges.cxx
+53
-57
No files found.
sc/CppunitTest_sc_namedrangeobj.mk
Dosyayı görüntüle @
d4b0b023
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
$(eval $(call gb_CppunitTest_CppunitTest,sc_namedrangeobj))
$(eval $(call gb_CppunitTest_CppunitTest,sc_namedrangeobj))
$(eval $(call gb_CppunitTest_add_exception_objects,sc_namedrangeobj, \
$(eval $(call gb_CppunitTest_add_exception_objects,sc_namedrangeobj, \
sc/qa/extras/x
rangename
\
sc/qa/extras/x
namedranges
\
))
))
$(eval $(call gb_CppunitTest_add_linked_libs,sc_namedrangeobj, \
$(eval $(call gb_CppunitTest_add_linked_libs,sc_namedrangeobj, \
...
...
sc/qa/extras/x
rangename
.cxx
→
sc/qa/extras/x
namedranges
.cxx
Dosyayı görüntüle @
d4b0b023
...
@@ -38,8 +38,6 @@
...
@@ -38,8 +38,6 @@
#include <com/sun/star/sheet/XNamedRange.hpp>
#include <com/sun/star/sheet/XNamedRange.hpp>
#include <com/sun/star/table/XCell.hpp>
#include <com/sun/star/table/XCell.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/table/CellAddress.hpp>
#include <com/sun/star/table/CellAddress.hpp>
#include <com/sun/star/table/CellRangeAddress.hpp>
#include <com/sun/star/table/CellRangeAddress.hpp>
...
@@ -50,7 +48,7 @@
...
@@ -50,7 +48,7 @@
namespace
ScNamedRangeObj
{
namespace
ScNamedRangeObj
{
class
ScXNamedRange
:
public
UnoApiTest
class
ScXNamedRange
s
:
public
UnoApiTest
{
{
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
init
();
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
init
();
...
@@ -60,7 +58,7 @@ class ScXNamedRange : public UnoApiTest
...
@@ -60,7 +58,7 @@ class ScXNamedRange : public UnoApiTest
void
testRemoveByName
();
void
testRemoveByName
();
void
testOutputList
();
void
testOutputList
();
CPPUNIT_TEST_SUITE
(
ScXNamedRange
);
CPPUNIT_TEST_SUITE
(
ScXNamedRange
s
);
CPPUNIT_TEST
(
testAddNewByName
);
CPPUNIT_TEST
(
testAddNewByName
);
CPPUNIT_TEST
(
testAddNewFromTitles
);
CPPUNIT_TEST
(
testAddNewFromTitles
);
//fix first warning in ExceptionsTestCaseDecorator
//fix first warning in ExceptionsTestCaseDecorator
...
@@ -70,70 +68,70 @@ class ScXNamedRange : public UnoApiTest
...
@@ -70,70 +68,70 @@ class ScXNamedRange : public UnoApiTest
};
};
void
ScXNamedRange
::
testAddNewByName
()
void
ScXNamedRange
s
::
testAddNewByName
()
{
{
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
=
init
();
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
=
init
();
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex
(
xDoc
->
getSheets
(),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex
(
xDoc
->
getSheets
(),
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
xIndex
->
getByIndex
(
0
),
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
xIndex
->
getByIndex
(
0
),
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
p
ropSet
(
xDoc
,
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xP
ropSet
(
xDoc
,
UNO_QUERY_THROW
);
rtl
::
OUString
n
amedRangesString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
));
rtl
::
OUString
aN
amedRangesString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
));
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XNameAccess
>
xNamedRangesNameAccess
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XNameAccess
>
xNamedRangesNameAccess
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
table
::
CellAddress
x
BaseAddress
=
table
::
CellAddress
(
0
,
0
,
0
);
table
::
CellAddress
a
BaseAddress
=
table
::
CellAddress
(
0
,
0
,
0
);
sal_Int32
nType
=
0
;
sal_Int32
nType
=
0
;
rtl
::
OUString
c
ontent1
(
RTL_CONSTASCII_USTRINGPARAM
(
"D1"
));
rtl
::
OUString
aC
ontent1
(
RTL_CONSTASCII_USTRINGPARAM
(
"D1"
));
rtl
::
OUString
n
ame1
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_0"
));
rtl
::
OUString
aN
ame1
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_0"
));
xNamedRanges
->
addNewByName
(
name1
,
content1
,
x
BaseAddress
,
nType
);
xNamedRanges
->
addNewByName
(
aName1
,
aContent1
,
a
BaseAddress
,
nType
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type 0 - Normal case"
,
xNamedRanges
->
hasByName
(
n
ame1
));
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type 0 - Normal case"
,
xNamedRanges
->
hasByName
(
aN
ame1
));
nType
=
::
sheet
::
NamedRangeFlag
::
COLUMN_HEADER
;
nType
=
::
sheet
::
NamedRangeFlag
::
COLUMN_HEADER
;
rtl
::
OUString
c
ontent2
(
RTL_CONSTASCII_USTRINGPARAM
(
"D2"
));
rtl
::
OUString
aC
ontent2
(
RTL_CONSTASCII_USTRINGPARAM
(
"D2"
));
rtl
::
OUString
n
ame2
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_COLUMN_HEADER"
));
rtl
::
OUString
aN
ame2
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_COLUMN_HEADER"
));
xNamedRanges
->
addNewByName
(
name2
,
content2
,
x
BaseAddress
,
nType
);
xNamedRanges
->
addNewByName
(
aName2
,
aContent2
,
a
BaseAddress
,
nType
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type COLUMN_HEADER"
,
xNamedRanges
->
hasByName
(
n
ame2
));
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type COLUMN_HEADER"
,
xNamedRanges
->
hasByName
(
aN
ame2
));
nType
=
::
sheet
::
NamedRangeFlag
::
FILTER_CRITERIA
;
nType
=
::
sheet
::
NamedRangeFlag
::
FILTER_CRITERIA
;
rtl
::
OUString
c
ontent3
(
RTL_CONSTASCII_USTRINGPARAM
(
"D3"
));
rtl
::
OUString
aC
ontent3
(
RTL_CONSTASCII_USTRINGPARAM
(
"D3"
));
rtl
::
OUString
n
ame3
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_FILTER_CRITERIA"
));
rtl
::
OUString
aN
ame3
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_FILTER_CRITERIA"
));
xNamedRanges
->
addNewByName
(
name3
,
content3
,
x
BaseAddress
,
nType
);
xNamedRanges
->
addNewByName
(
aName3
,
aContent3
,
a
BaseAddress
,
nType
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type FILTER_CRITERIA"
,
xNamedRanges
->
hasByName
(
n
ame3
));
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type FILTER_CRITERIA"
,
xNamedRanges
->
hasByName
(
aN
ame3
));
nType
=
::
sheet
::
NamedRangeFlag
::
PRINT_AREA
;
nType
=
::
sheet
::
NamedRangeFlag
::
PRINT_AREA
;
rtl
::
OUString
c
ontent4
(
RTL_CONSTASCII_USTRINGPARAM
(
"D4"
));
rtl
::
OUString
aC
ontent4
(
RTL_CONSTASCII_USTRINGPARAM
(
"D4"
));
rtl
::
OUString
n
ame4
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_PRINT_AREA"
));
rtl
::
OUString
aN
ame4
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_PRINT_AREA"
));
xNamedRanges
->
addNewByName
(
name4
,
content4
,
x
BaseAddress
,
nType
);
xNamedRanges
->
addNewByName
(
aName4
,
aContent4
,
a
BaseAddress
,
nType
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type PRINT_AREA"
,
xNamedRanges
->
hasByName
(
n
ame4
));
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type PRINT_AREA"
,
xNamedRanges
->
hasByName
(
aN
ame4
));
nType
=
::
sheet
::
NamedRangeFlag
::
ROW_HEADER
;
nType
=
::
sheet
::
NamedRangeFlag
::
ROW_HEADER
;
rtl
::
OUString
c
ontent5
(
RTL_CONSTASCII_USTRINGPARAM
(
"D5"
));
rtl
::
OUString
aC
ontent5
(
RTL_CONSTASCII_USTRINGPARAM
(
"D5"
));
rtl
::
OUString
n
ame5
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_ROW_HEADERA"
));
rtl
::
OUString
aN
ame5
(
RTL_CONSTASCII_USTRINGPARAM
(
"type_ROW_HEADERA"
));
xNamedRanges
->
addNewByName
(
name5
,
content5
,
x
BaseAddress
,
nType
);
xNamedRanges
->
addNewByName
(
aName5
,
aContent5
,
a
BaseAddress
,
nType
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type ROW_HEADER"
,
xNamedRanges
->
hasByName
(
n
ame5
));
CPPUNIT_ASSERT_MESSAGE
(
"Failed to create Namedrange Type ROW_HEADER"
,
xNamedRanges
->
hasByName
(
aN
ame5
));
}
}
void
ScXNamedRange
::
testAddNewFromTitles
()
void
ScXNamedRange
s
::
testAddNewFromTitles
()
{
{
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
=
init
();
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
=
init
();
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex
(
xDoc
->
getSheets
(),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex
(
xDoc
->
getSheets
(),
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
xIndex
->
getByIndex
(
1
),
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
xIndex
->
getByIndex
(
1
),
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
p
ropSet
(
xDoc
,
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xP
ropSet
(
xDoc
,
UNO_QUERY_THROW
);
rtl
::
OUString
n
amedRangesString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
));
rtl
::
OUString
aN
amedRangesString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
));
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XIndexAccess
>
xNamedRangesIndex
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XIndexAccess
>
xNamedRangesIndex
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XNameAccess
>
xNamedRangesNameAccess
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XNameAccess
>
xNamedRangesNameAccess
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
table
::
CellRangeAddress
x
CellRangeAddress
=
table
::
CellRangeAddress
(
1
,
0
,
0
,
3
,
3
);
table
::
CellRangeAddress
a
CellRangeAddress
=
table
::
CellRangeAddress
(
1
,
0
,
0
,
3
,
3
);
rtl
::
OUString
aString
;
rtl
::
OUString
aString
;
uno
::
Reference
<
table
::
XCell
>
xCell
;
uno
::
Reference
<
table
::
XCell
>
xCell
;
xNamedRanges
->
addNewFromTitles
(
x
CellRangeAddress
,
sheet
::
Border_TOP
);
xNamedRanges
->
addNewFromTitles
(
a
CellRangeAddress
,
sheet
::
Border_TOP
);
for
(
sal_Int32
i
=
1
;
i
<
4
;
i
++
)
for
(
sal_Int32
i
=
1
;
i
<
4
;
i
++
)
{
{
...
@@ -158,7 +156,7 @@ void ScXNamedRange::testAddNewFromTitles()
...
@@ -158,7 +156,7 @@ void ScXNamedRange::testAddNewFromTitles()
CPPUNIT_ASSERT
(
cellRangeAddress
.
Sheet
==
1
);
CPPUNIT_ASSERT
(
cellRangeAddress
.
Sheet
==
1
);
}
}
xNamedRanges
->
addNewFromTitles
(
x
CellRangeAddress
,
sheet
::
Border_LEFT
);
xNamedRanges
->
addNewFromTitles
(
a
CellRangeAddress
,
sheet
::
Border_LEFT
);
for
(
sal_Int32
i
=
1
;
i
<
4
;
i
++
)
for
(
sal_Int32
i
=
1
;
i
<
4
;
i
++
)
{
{
...
@@ -184,13 +182,13 @@ void ScXNamedRange::testAddNewFromTitles()
...
@@ -184,13 +182,13 @@ void ScXNamedRange::testAddNewFromTitles()
}
}
}
}
void
ScXNamedRange
::
testRemoveByName
()
void
ScXNamedRange
s
::
testRemoveByName
()
{
{
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
=
init
();
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
=
init
();
uno
::
Reference
<
beans
::
XPropertySet
>
p
ropSet
(
xDoc
,
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xP
ropSet
(
xDoc
,
UNO_QUERY_THROW
);
rtl
::
OUString
n
amedRangesString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
));
rtl
::
OUString
aN
amedRangesString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
));
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XIndexAccess
>
xIndex
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
rtl
::
OUString
aNr1
(
RTL_CONSTASCII_USTRINGPARAM
(
"initial1"
));
rtl
::
OUString
aNr1
(
RTL_CONSTASCII_USTRINGPARAM
(
"initial1"
));
bool
bHasIt
=
xNamedRanges
->
hasByName
(
aNr1
);
bool
bHasIt
=
xNamedRanges
->
hasByName
(
aNr1
);
...
@@ -203,16 +201,14 @@ void ScXNamedRange::testRemoveByName()
...
@@ -203,16 +201,14 @@ void ScXNamedRange::testRemoveByName()
xNamedRanges
->
removeByName
(
aNr1
);
xNamedRanges
->
removeByName
(
aNr1
);
sal_Int32
nNewCount
=
xIndex
->
getCount
();
sal_Int32
nNewCount
=
xIndex
->
getCount
();
CPPUNIT_ASSERT_MESSAGE
(
"NamedRange initial1 not removed"
,
nNewCount
==
nInitialCount
-
1
);
CPPUNIT_ASSERT_MESSAGE
(
"NamedRange initial1 not removed"
,
nNewCount
==
nInitialCount
-
1
);
bool
bHasItAgain
=
xNamedRanges
->
hasByName
(
aNr1
);
CPPUNIT_ASSERT_MESSAGE
(
"Wrong NamedRange removed, initial1 still present"
,
!
xNamedRanges
->
hasByName
(
aNr1
));
CPPUNIT_ASSERT_MESSAGE
(
"Wrong NamedRange removed, initial1 still present"
,
!
bHasItAgain
);
// try to remove non existing
rtl
::
OUString
aNr2
(
RTL_CONSTASCII_USTRINGPARAM
(
"dummyNonExistingNamedRange"
));
rtl
::
OUString
nr2
(
RTL_CONSTASCII_USTRINGPARAM
(
"dummyNamedRange"
));
xNamedRanges
->
removeByName
(
aNr2
);
// an exception should be raised here
xNamedRanges
->
removeByName
(
aNr1
);
// should throw an exception
}
}
}
}
void
ScXNamedRange
::
testOutputList
()
void
ScXNamedRange
s
::
testOutputList
()
{
{
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
=
init
();
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
=
init
();
...
@@ -221,10 +217,10 @@ void ScXNamedRange::testOutputList()
...
@@ -221,10 +217,10 @@ void ScXNamedRange::testOutputList()
table
::
CellAddress
xCellAddress
=
table
::
CellAddress
(
0
,
2
,
0
);
table
::
CellAddress
xCellAddress
=
table
::
CellAddress
(
0
,
2
,
0
);
uno
::
Reference
<
beans
::
XPropertySet
>
p
ropSet
(
xDoc
,
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xP
ropSet
(
xDoc
,
UNO_QUERY_THROW
);
rtl
::
OUString
n
amedRangesString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
));
rtl
::
OUString
aN
amedRangesString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
));
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XIndexAccess
>
xNamedRangesIndex
(
propSet
->
getPropertyValue
(
n
amedRangesString
),
UNO_QUERY_THROW
);
uno
::
Reference
<
container
::
XIndexAccess
>
xNamedRangesIndex
(
xPropSet
->
getPropertyValue
(
aN
amedRangesString
),
UNO_QUERY_THROW
);
sal_Int32
nElementsCount
=
xNamedRangesIndex
->
getCount
();
sal_Int32
nElementsCount
=
xNamedRangesIndex
->
getCount
();
xNamedRanges
->
outputList
(
xCellAddress
);
xNamedRanges
->
outputList
(
xCellAddress
);
...
@@ -242,7 +238,7 @@ void ScXNamedRange::testOutputList()
...
@@ -242,7 +238,7 @@ void ScXNamedRange::testOutputList()
}
}
}
}
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
ScXNamedRange
::
init
()
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
ScXNamedRange
s
::
init
()
{
{
rtl
::
OUString
aFileURL
;
rtl
::
OUString
aFileURL
;
const
rtl
::
OUString
aFileBase
(
RTL_CONSTASCII_USTRINGPARAM
(
"rangenames.ods"
));
const
rtl
::
OUString
aFileBase
(
RTL_CONSTASCII_USTRINGPARAM
(
"rangenames.ods"
));
...
@@ -256,7 +252,7 @@ uno::Reference< sheet::XSpreadsheetDocument> ScXNamedRange::init()
...
@@ -256,7 +252,7 @@ uno::Reference< sheet::XSpreadsheetDocument> ScXNamedRange::init()
return
xDoc
;
return
xDoc
;
}
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
ScXNamedRange
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
ScXNamedRange
s
);
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment