1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 print("pyuno not found: try to set PYTHONPATH and URE_BOOTSTRAP variables")
12 print("PYTHONPATH=/installation/opt/program")
13 print("URE_BOOTSTRAP=file:///installation/opt/program/fundamentalrc")
16 def mkPropertyValue(name
, value
):
17 """ Create a UNO PropertyValue from two input values.
19 return uno
.createUnoStruct("com.sun.star.beans.PropertyValue",
22 def mkPropertyValues(vals
):
23 """ Create UNO property values from a map.
25 return tuple([mkPropertyValue(name
, value
) for (name
, value
) in vals
.items()])
27 def convert_property_values_to_dict(propMap
):
28 """ Create a dictionary from a sequence of property values
38 # vim: set shiftwidth=4 softtabstop=4 expandtab: