0
  5   ˆl–Ãa¾”Ò~êqA
ã"¸©‹Fÿ�þB gd�x®ÈÿóÂƒh¹ÁÀ¿      1
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ã606_‘I|¥‰ÓMdœv ©ƒ†ü+=ÃÂ ^    ‹      Õ–ßOÛ0Çßù+<?ì­½¤í@”Ôk�V­”
:MÓ4!7v‹ÄŽl·¥üõsê a¢Z™ ÁÓù’oîîãœDâ³þäçø}�œÑøû—á �pàG»Obÿ¢ÓB€“F8µ¶è¬V«æªÝTz“sHmžuÀX-Ûd–a²•ÏÈŠRN™³(²Âfœ$ã×HÍ¨…5‚q÷ÝÚ ãK‘pSŽ-Ï!ç¹ÒëÊ„a¤b<¨üÃƒîA��í²A•.š*¶.«_(£¼�¢ÓMâr¨IdS´¤™˜Ë¶ªÀ$ù�ô0ˆDIÓŒÊ«æ\Ì0¢™íá_ƒþÙo§›–_“ˆ¢TóYî÷FGg½“ÍyôqÍ©Óc2¤Æ¢\11œm_xñ…¸Ù0öš˜›D‹Â
%ï¥àë¨‰ÊLAë'G�êºÊKØ¿fƒ&&c||~2šÄƒs?%¬q_Ý3ü?LÆTsiQ,4O¬{UÑùTåÔG·.ªj×bžZLj G•O ž©Œq]GÞ{[¯·õ*ÿ*«´öaØQxÐözÁúòJª•¬¸~x@ÉLHŽ‰·; ´BÝ µÀíBß^ H×æÒw&5ç½¢ˆr¬H6ã·²û¢(ÔŠk·(¼}Žú_yQh·-Ë#“»á[ùOÀ0–Z‡°1o¥üÝ»È,¦Õ¡áîÆïp‹]ð¥;Ë0ñö9 ^¹�Ê@ìòFIn0©9»ôT€Zín§ýŸ(;Þb ºßE°¹OFàoµ ›Œ
8    ?   ˆl–Ãa¾”Ê:”Ê�ÆÙ¸ØÅ£ŽþZqfåå’FÙoùÆ70Å_ŠI|¥�+Wé3ž¯ÅÄ  F    """
Benchmarks for validation.

This package is *not* public API.
"""
  5   	ˆl–Ãa¾”Ò~êqA
à\¸ÓªbÑ¿�þB gd}÷ßåsùÈƒh¹ÇÆÅ      	1
  6   ˆl—ß=¿Jõ4Ÿº‚ œP.\·yLZ7ÿ�þB g Ùm¡K /óÉƒh¹ÈÇÆ      online
  N   ˆl–äY>”*h¥2 [¸!\*bÑ¿�þDÓaY¹FHß)#}–�üÿÊƒ|O»ÉÁa–Ãa¾”Ò~êqA3pÜdJbÑ¿È $Q    #
#
# This file is part of the LibreOffice project.
#
# 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 incorporates work covered by the following license notice:
#
#   Licensed to the Apache Software Foundation (ASF) under one or more
#   contributor license agreements. See the NOTICE file distributed
#   with this work for additional information regarding copyright
#   ownership. The ASF licenses this file to you under the Apache
#   License, Version 2.0 (the "License"); you may not use this file
#   except in compliance with the License. You may obtain a copy of
#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
import uno
import traceback
from .PeerConfig import PeerConfig
from .UIConsts import UIConsts
from ..common.PropertyNames import PropertyNames

from com.sun.star.awt import Rectangle
from com.sun.star.awt.PosSize import POS

class UnoDialog(object):

    createDict = False
    dictProperties = None
    BisHighContrastModeActivated = None
    xVclWindowPeer = None

    def __init__(self, xMSF, PropertyNames, PropertyValues):
        try:
            self.xMSF = xMSF
            self.ControlList = {}
            self.xDialogModel = xMSF.createInstance(
                "com.sun.star.awt.UnoControlDialogModel")
            self.xUnoDialog = xMSF.createInstance(
                "com.sun.star.awt.UnoControlDialog")
            self.xUnoDialog.setModel(self.xDialogModel)
            self.m_oPeerConfig = None
            self.xWindowPeer = None
        except Exception:
            traceback.print_exc()

    # repaints the currentDialogStep
    def repaintDialogStep(self):
        try:
            ncurstep = int(self.xDialogModel.Step)
            self.xDialogModel.Step = 99
            self.xDialogModel.Step = ncurstep
        except Exception:
            traceback.print_exc()

    def insertControlModel(self, serviceName, componentName, sPropNames, oPropValues):
        try:
            xControlModel = self.xDialogModel.createInstance(serviceName)
            uno.invoke(xControlModel, "setPropertyValues",
                    (sPropNames, oPropValues))
            self.xDialogModel.insertByName(componentName, xControlModel)
            xControlModel.Name = componentName
        except Exception:
            traceback.print_exc()

        aObj = self.xUnoDialog.getControl(componentName)
        return aObj

    def setFocus(self, ControlName):
        oFocusControl = self.xUnoDialog.getControl(ControlName)
        oFocusControl.setFocus()

    def calculateDialogPosition(self, FramePosSize):
        # Todo:check if it would be useful or possible to create a dialog peer
        # that can be used for the messageboxes to
        # maintain modality when they pop up.
        CurPosSize = self.xUnoDialog.getPosSize()
      