# -*- 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 gdb import six
from libreoffice.util import printing
class ItemSetPrinter(object): '''Prints SfxItemSets'''
def __init__(self, typename, value):
self.typename = typename
self.value = value
def to_string(self):
whichranges = self.which_ranges() return"SfxItemSet of pool %s with parent %s and Which ranges: %s" \
% (self.value['m_pPool'], self.value['m_pParent'], whichranges)
def which_ranges(self):
whichranges = self.value['m_aWhichRanges']['m_pairs']
whichranges_cnt = self.value['m_aWhichRanges']['m_size']
whiches = [] for index in range(whichranges_cnt):
whiches.append((int(whichranges[index]['first']), int(whichranges[index]['second']))) return whiches
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.