Kaydet (Commit) 3da8806e authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add helper methods to deal with Calc UNO

This is the third part of the UI Test tutorial.

The code in uitest/libreoffice is generally useful UNO code that
allows to interact with LibreOffice. This code should be independent
of the UI testing framework and provide external developers a
helpful starting point to writer python extensions.

Change-Id: Ia1429577affd98dcf3f1aee3da3a7256499a1c78
üst a8011554
# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#
# 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/.
#
# this file provides methods to interact with the new conditional format API
def get_conditional_format_from_sheet(sheet):
return sheet.getPropertyValue("ConditionalFormats")
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#
# 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/.
#
def get_sheet_from_doc(document, index):
return document.getSheets().getByIndex(index)
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment