diff options
-rw-r--r-- | uitest/libreoffice/calc/conditional_format.py | 14 | ||||
-rw-r--r-- | uitest/libreoffice/calc/document.py | 11 |
2 files changed, 25 insertions, 0 deletions
diff --git a/uitest/libreoffice/calc/conditional_format.py b/uitest/libreoffice/calc/conditional_format.py new file mode 100644 index 000000000000..adffc297410a --- /dev/null +++ b/uitest/libreoffice/calc/conditional_format.py @@ -0,0 +1,14 @@ +# -*- 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: */ diff --git a/uitest/libreoffice/calc/document.py b/uitest/libreoffice/calc/document.py new file mode 100644 index 000000000000..356c5ec9954d --- /dev/null +++ b/uitest/libreoffice/calc/document.py @@ -0,0 +1,11 @@ +# -*- 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: */ |