# -*- 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 six
from libreoffice.util import printing from libreoffice.util.uno import TypeClass, make_uno_type, uno_cast
def children(self):
pimpl = self.value['_pSequence'] if pimpl:
impl = pimpl.dereference()
elemtype = self.value.type.template_argument(0)
elements = impl['elements'].cast(elemtype.pointer()) return self.iterator(elements, int(impl['nElements'])) else: # TODO is that the best thing to do here? returnNone
def display_hint(self): if self.value['_pSequence']: return'array' else: returnNone
class UnoTypePrinter(object): '''Prints UNO Type'''
class CppuThreadpoolThreadPoolPrinter(object): '''Prints cppu_threadpool::ThreadPool objects (a hack to avoid infinite recursion through sal.RtlReferencePrinter when printing an rtl::Reference whose std::list m_lstThreads member, via rtl::Reference thread member, via rtl::Reference m_aThreadPool member, has a circular reference back)'''
def __init__(self, typename, value):
self.typename = typename
self.value = value
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 und die Messung sind noch experimentell.