LibreOffice Module test (master)  1
Namespaces | Classes | Functions | Variables
apitest Namespace Reference

Namespaces

 helper
 

Classes

class  BaseIndex
 
class  CaptionShape
 
class  CellAreaLink
 
class  CellProperties
 
class  DatabaseImportDescriptor
 
class  DatabaseRange
 
class  DataPilotField
 
class  DataPilotItem
 
class  DocumentSettings
 
class  FunctionDescription
 
class  GlobalSheetSettings
 
class  Scenario
 
class  SearchDescriptor
 
class  Shape
 
class  SheetCell
 
class  SheetCellRange
 
class  SheetCellRanges
 
class  SheetFilterDescriptor
 
class  SheetLink
 
class  SheetSortDescriptor2
 
class  Spreadsheet
 
class  SpreadsheetDocumentSettings
 
class  SpreadsheetViewSettings
 
class  SubTotalDescriptor
 
class  TableAutoFormat
 
class  TableColumn
 
class  TableRow
 
class  TableValidation
 
class  TextContent
 
class  TextDocumentIndex
 
class  TextDocumentSettings
 
class  TextPrinterSettings
 
class  TextSettings
 
class  XActionLockable
 
class  XActivationBroadcaster
 
class  XAreaLink
 
class  XAreaLinks
 
class  XArrayFormulaRange
 
class  XCalculatable
 
class  XCell
 
class  XCellAddressable
 
class  XCellCursor
 
class  XCellFormatRangesSupplier
 
class  XCellRange
 
class  XCellRangeAddressable
 
class  XCellRangeData
 
class  XCellRangeFormula
 
class  XCellRangeMovement
 
class  XCellRangeReferrer
 
class  XCellRangesQuery
 
class  XCellSeries
 
class  XChartData
 
class  XChild
 
class  XColumnRowRange
 
class  XComponent
 
class  XConsolidatable
 
class  XConsolidationDescriptor
 
class  XControlAccess
 
class  XDatabaseRange
 
class  XDatabaseRanges
 
class  XDataPilotDescriptor
 
class  XDataPilotField
 
class  XDataPilotFieldGrouping
 
class  XDataPilotTable
 
class  XDataPilotTable2
 
class  XDataPilotTables
 
class  XDataPilotTablesSupplier
 
class  XDDELink
 
class  XDDELinks
 
class  XDocumentAuditing
 
class  XDocumentIndex
 Testing com.sun.star.text.XDocumentIndex More...
 
class  XDrawPages
 
class  XElementAccess
 
class  XEmbeddedObjectSupplier
 
class  XEnumeration
 
class  XEnumerationAccess
 
class  XFormLayerAccess
 
class  XFormulaQuery
 
class  XFunctionDescriptions
 
class  XGluePointsSupplier
 
class  XGoalSeek
 
class  XHeaderFooterContent
 
class  XIndent
 
class  XIndexAccess
 
class  XLabelRange
 
class  XLabelRanges
 
class  XLinkTargetSupplier
 
class  XMergeable
 
class  XMultiFormulaTokens
 
class  XMultipleOperation
 
class  XNameAccess
 
class  XNameContainer
 
class  XNamed
 
class  XNamedRange
 
class  XNamedRanges
 
class  XNameReplace
 
class  XPrintAreas
 
class  XPropertySet
 
class  XRecentFunctions
 
class  XRefreshable
 
class  XReplaceable
 
class  XReplaceDescriptor
 
class  XScenario
 
class  XScenarioEnhanced
 
class  XScenarios
 
class  XScenariosSupplier
 
class  XSearchable
 
class  XSearchDescriptor
 
class  XServiceInfo
 
class  XShape
 
class  XShapeDescriptor
 
class  XShapeGrouper
 
class  XShapes
 
class  XSheetAnnotation
 
class  XSheetAnnotationAnchor
 
class  XSheetAnnotations
 
class  XSheetAnnotationShapeSupplier
 
class  XSheetAnnotationsSupplier
 
class  XSheetAuditing
 
class  XSheetCellCursor
 
class  XSheetCellRange
 
class  XSheetCellRangeContainer
 
class  XSheetCellRanges
 
class  XSheetCondition
 
class  XSheetConditionalEntries
 
class  XSheetConditionalEntry
 
class  XSheetFilterable
 
class  XSheetFilterableEx
 
class  XSheetFilterDescriptor
 
class  XSheetFilterDescriptor2
 
class  XSheetFilterDescriptor3
 
class  XSheetLinkable
 
class  XSheetOperation
 
class  XSheetOutline
 
class  XSheetPageBreak
 
class  XSimpleText
 
class  XSpreadsheet
 
class  XSpreadsheetDocument
 
class  XSpreadsheets
 
class  XSpreadsheets2
 
class  XSpreadsheetView
 
class  XStyleLoader
 
class  XSubTotalCalculatable
 
class  XSubTotalDescriptor
 
class  XSubTotalField
 
class  XTableChart
 
class  XTableCharts
 
class  XTableChartsSupplier
 
class  XTableColumns
 
class  XTableRows
 
class  XText
 
class  XTextContent
 
class  XTextField
 
class  XTextRange
 
class  XUniqueCellFormatRangesSupplier
 
class  XUsedAreaCursor
 
class  XViewFreezable
 
class  XViewPane
 
class  XViewSplitable
 

Functions

static OUString getVisibleAdress (uno::Reference< sheet::XSpreadsheet > const &xSheet, const OUString &aLevelRangeString)
 
static table::CellRangeAddress getAddressFromRangeString (uno::Reference< sheet::XSpreadsheet > const &xSheet, const OUString &aStringAddress)
 
constexpr OUStringLiteral gaSrcSheetName (u"SheetToCopy")
 
constexpr OUStringLiteral gaSrcFileName (u"rangenamessrc.ods")
 
constexpr OUStringLiteral gaDestFileBase (u"ScNamedRangeObj.ods")
 
static sal_Int32 nInsertedSheets (0)
 
void testBooleanProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
 
void testBooleanOptionalProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)
 
void testBooleanReadonlyProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
 
void testDoubleProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const double &dValue)
 
void testDoubleReadonlyProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const double &dValue)
 
void testLongProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue)
 
void testLongOptionalProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const sal_Int32 &rValue)
 
void testLongReadonlyProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue)
 
void testShortProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue)
 
void testShortOptionalProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const sal_Int16 &rValue)
 
void testShortReadonlyProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue)
 
void testStringOptionalProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const OUString &rValue)
 
void testStringProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
 
void testStringReadonlyProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
 
void testColorProperty (uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const util::Color &rValue)
 
void OOO_DLLPUBLIC_TEST testBooleanProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name)
 Tester for property type 'boolean' of a. More...
 
void OOO_DLLPUBLIC_TEST testBooleanOptionalProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name)
 Tester for optional property type 'boolean' of a. More...
 
void OOO_DLLPUBLIC_TEST testBooleanReadonlyProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name)
 Tester for read-only property type 'boolean' of a. More...
 
void OOO_DLLPUBLIC_TEST testDoubleProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const double &dValue=42.0)
 Tester for property type 'double' of a. More...
 
void OOO_DLLPUBLIC_TEST testDoubleReadonlyProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const double &dValue=42.0)
 Tester for read-only property type 'double' of a. More...
 
void OOO_DLLPUBLIC_TEST testLongProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue=42)
 Tester for property type 'long' of a. More...
 
void OOO_DLLPUBLIC_TEST testLongOptionalProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue=42)
 Tester for optional property type 'long' of a. More...
 
void OOO_DLLPUBLIC_TEST testLongReadonlyProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue=42)
 Tester for read-only property type 'long' of a. More...
 
void OOO_DLLPUBLIC_TEST testShortProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue=42)
 Tester for property type 'short' of a. More...
 
void OOO_DLLPUBLIC_TEST testShortOptionalProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue=42)
 Tester for optional property type 'short' of a. More...
 
void OOO_DLLPUBLIC_TEST testShortReadonlyProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue=42)
 Tester for read-only property type 'short' of a. More...
 
void OOO_DLLPUBLIC_TEST testStringProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
 Tester for property type 'string' of a. More...
 
void OOO_DLLPUBLIC_TEST testStringOptionalProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue=OUString("StringValue"))
 Tester for optional property type 'string' of a. More...
 
void OOO_DLLPUBLIC_TEST testStringReadonlyProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
 Tester for read-only property type 'string' of a. More...
 
void OOO_DLLPUBLIC_TEST testColorProperty (css::uno::Reference< css::beans::XPropertySet > const &xPropertySet, const OUString &name, const css::util::Color &rValue=css::util::Color(0x12345678))
 Tester for property type com::sun::star::util::Color of a. More...
 

Variables

constexpr OUStringLiteral colLevel1 = u"OutlineSheet.A1:Z1"
 
constexpr OUStringLiteral colLevel2 = u"OutlineSheet.C1:W1"
 
constexpr OUStringLiteral colLevel3 = u"OutlineSheet.E1:U1"
 
constexpr OUStringLiteral colLevel4 = u"OutlineSheet.G1:S1"
 
constexpr OUStringLiteral rowLevel1 = u"OutlineSheet.A1:A30"
 
constexpr OUStringLiteral rowLevel2 = u"OutlineSheet.A3:A27"
 

Function Documentation

constexpr OUStringLiteral apitest::gaDestFileBase ( u"ScNamedRangeObj.ods"  )
constexpr OUStringLiteral apitest::gaSrcFileName ( u"rangenamessrc.ods"  )
constexpr OUStringLiteral apitest::gaSrcSheetName ( u"SheetToCopy"  )
static table::CellRangeAddress apitest::getAddressFromRangeString ( uno::Reference< sheet::XSpreadsheet > const &  xSheet,
const OUString &  aStringAddress 
)
static
static OUString apitest::getVisibleAdress ( uno::Reference< sheet::XSpreadsheet > const &  xSheet,
const OUString &  aLevelRangeString 
)
static
static sal_Int32 apitest::nInsertedSheets ( )
static
void OOO_DLLPUBLIC_TEST apitest::testBooleanOptionalProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name 
)

Tester for optional property type 'boolean' of a.

See also
com::sun::star::beans::XPropertySet.

Pass the test also if the property doesn't exists (throws a com::sun::star::beans::UnknownPropertyException)

Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
void apitest::testBooleanOptionalProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  rName 
)
void apitest::testBooleanProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name 
)
void OOO_DLLPUBLIC_TEST apitest::testBooleanProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name 
)

Tester for property type 'boolean' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
void OOO_DLLPUBLIC_TEST apitest::testBooleanReadonlyProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name 
)

Tester for read-only property type 'boolean' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
void apitest::testBooleanReadonlyProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name 
)
void OOO_DLLPUBLIC_TEST apitest::testColorProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const css::util::Color &  rValue = css::util::Color(0x12345678) 
)

Tester for property type com::sun::star::util::Color of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
rValueValue to use when setting a new value.
void apitest::testColorProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const util::Color &  rValue 
)
void OOO_DLLPUBLIC_TEST apitest::testDoubleProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const double &  dValue = 42.0 
)

Tester for property type 'double' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
nValueValue to use when setting a new value.
void apitest::testDoubleProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const double &  dValue 
)
void OOO_DLLPUBLIC_TEST apitest::testDoubleReadonlyProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const double &  dValue = 42.0 
)

Tester for read-only property type 'double' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
nValueValue to use when setting a new value.
void apitest::testDoubleReadonlyProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const double &  dValue 
)

Definition at line 91 of file unoapi_property_testers.cxx.

References OUStringToOString().

void OOO_DLLPUBLIC_TEST apitest::testLongOptionalProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int32 &  nValue = 42 
)

Tester for optional property type 'long' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
nValueValue to use when setting a new value.
void apitest::testLongOptionalProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  rName,
const sal_Int32 &  rValue 
)
void OOO_DLLPUBLIC_TEST apitest::testLongProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int32 &  nValue = 42 
)

Tester for property type 'long' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
nValueValue to use when setting a new value.
void apitest::testLongProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int32 &  nValue 
)
void OOO_DLLPUBLIC_TEST apitest::testLongReadonlyProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int32 &  nValue = 42 
)

Tester for read-only property type 'long' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
nValueValue to use when setting a new value.
void apitest::testLongReadonlyProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int32 &  nValue 
)

Definition at line 143 of file unoapi_property_testers.cxx.

References OUStringToOString().

void OOO_DLLPUBLIC_TEST apitest::testShortOptionalProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int16 &  nValue = 42 
)

Tester for optional property type 'short' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
nValueValue to use when setting a new value.
void apitest::testShortOptionalProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  rName,
const sal_Int16 &  rValue 
)

Definition at line 182 of file unoapi_property_testers.cxx.

References testShortProperty().

void OOO_DLLPUBLIC_TEST apitest::testShortProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int16 &  nValue = 42 
)

Tester for property type 'short' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
nValueValue to use when setting a new value.
void apitest::testShortProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int16 &  nValue 
)
void OOO_DLLPUBLIC_TEST apitest::testShortReadonlyProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int16 &  nValue = 42 
)

Tester for read-only property type 'short' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
nValueValue to use when setting a new value.
void apitest::testShortReadonlyProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const sal_Int16 &  nValue 
)

Definition at line 195 of file unoapi_property_testers.cxx.

References OUStringToOString().

void OOO_DLLPUBLIC_TEST apitest::testStringOptionalProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const OUString &  rValue = OUString("StringValue") 
)

Tester for optional property type 'string' of a.

See also
com::sun::star::beans::XPropertySet.

Pass the test also if the property doesn't exists (throws a com::sun::star::beans::UnknownPropertyException)

Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
rValueValue to use when setting a new value.
void apitest::testStringOptionalProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  rName,
const OUString &  rValue 
)
void OOO_DLLPUBLIC_TEST apitest::testStringProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const OUString &  rValue 
)

Tester for property type 'string' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
rValueValue to use when setting a new value.
void apitest::testStringProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const OUString &  rValue 
)
void OOO_DLLPUBLIC_TEST apitest::testStringReadonlyProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const OUString &  rValue 
)

Tester for read-only property type 'string' of a.

See also
com::sun::star::beans::XPropertySet.
Parameters
xPropertySetThe property set, which contains the property to test against.
nameName of property to test.
rValueValue to use when setting a new value.
void apitest::testStringReadonlyProperty ( uno::Reference< beans::XPropertySet > const &  xPropertySet,
const OUString &  name,
const OUString &  rValue 
)

Definition at line 247 of file unoapi_property_testers.cxx.

References OUStringToOString().

Variable Documentation

constexpr OUStringLiteral apitest::colLevel1 = u"OutlineSheet.A1:Z1"

Definition at line 31 of file xsheetoutline.cxx.

constexpr OUStringLiteral apitest::colLevel2 = u"OutlineSheet.C1:W1"

Definition at line 32 of file xsheetoutline.cxx.

constexpr OUStringLiteral apitest::colLevel3 = u"OutlineSheet.E1:U1"

Definition at line 33 of file xsheetoutline.cxx.

constexpr OUStringLiteral apitest::colLevel4 = u"OutlineSheet.G1:S1"

Definition at line 34 of file xsheetoutline.cxx.

constexpr OUStringLiteral apitest::rowLevel1 = u"OutlineSheet.A1:A30"

Definition at line 36 of file xsheetoutline.cxx.

constexpr OUStringLiteral apitest::rowLevel2 = u"OutlineSheet.A3:A27"

Definition at line 37 of file xsheetoutline.cxx.