#! /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/. #
# And the same once again, actually not inserted
x_text.insertTextContent(x_cursor, x_annotation, False)
# no exception if we try to replace object by itself: # this did throw in the past, but only because the inserted # UNO annotation had a core object assigned, but no document # which insertTextContent then didn't like on another call.
x_text.insertTextContent(x_cursor, x_annotation, True)
# We expect just one annotation actually
self.check_annotations(["John Doe"])
# Remove _already removed_ ones again # TODO: unexpected behaviour, it should throw an exception, # but let's nail down current behaviour # NOTE: reported as tdf#123404
x_text.removeTextContent(x_annotation_2)
x_text.removeTextContent(x_annotation)
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.