#! /usr/bin/env python # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # 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/. # import unittest import unohelper from org.libreoffice.unotest import UnoInProcess from com.sun.star.util import XCloseListener
listenerCallsOwner = 0
listenerCallsNoOwner = 0
class XCloseListenerExtended(unohelper.Base, XCloseListener):
@classmethod def queryClosing(self, Source, GetsOwnership): if GetsOwnership isTrue: global listenerCallsOwner
listenerCallsOwner += 1 else: global listenerCallsNoOwner
listenerCallsNoOwner += 1
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.