/* * 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 . */ package mod._sw; import java.io.PrintWriter; import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.text.XAutoTextContainer; import com.sun.star.uno.UnoRuntime; /** * Test for object which is represented by service * com.sun.star.text.AutoTextContainer.

* Object implements the following interfaces : *

* @see com.sun.star.container.XNameAccess * @see com.sun.star.container.XElementAccess * @see com.sun.star.text.XAutoTextContainer * @see com.sun.star.text.AutoTextContainer * @see ifc.container._XNameAccess * @see ifc.container._XElementAccess * @see ifc.text._XAutoTextContainer */ public class SwXAutoTextContainer extends TestCase { /** * Creating a Testenvironment for the interfaces to be tested. * Creates an instance of the service * com.sun.star.text.AutoTextContainer.

*/ public synchronized TestEnvironment createTestEnvironment( TestParameters Param, PrintWriter log ) throws StatusException { XAutoTextContainer oContainer = null; // creation of testobject here // first we write what we are intend to do to log file log.println("creating a AutoTextContainer"); try { XMultiServiceFactory myMSF = Param.getMSF(); Object oInst = myMSF.createInstance ("com.sun.star.text.AutoTextContainer"); oContainer = UnoRuntime.queryInterface (XAutoTextContainer.class,oInst); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); throw new StatusException("Couldn't create AutoTextContainer", e); } TestEnvironment tEnv = new TestEnvironment(oContainer); return tEnv; } } // finish class SwXAutoTextcontainer alue='distro/collabora/cp-4.2'>distro/collabora/cp-4.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff

path: root/cui/source/factory/init.cxx
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2021-03-18 16:53:40 +0100
committerAndras Timar <andras.timar@collabora.com>2021-03-18 16:53:40 +0100
commit01d6d4419e08c16d5488970d3f3ad9f059ee2625 (patch)
tree972b9b010fa7b857ebba20398e5e3315c154b1d3 /cui/source/factory/init.cxx
parent18ffd81ed4d9eca82d71b07e8f4b1ef54d308fc3 (diff)
Bump version to 6.4-30 cp-6.4-30
Change-Id: I5df0d75277082634ee0ce7fd1f6d46f19a659d60 d> 2019-04-27tdf#62699 Drop pass-through header file include/svx/xsetit.hxxGabor Kelemen 2019-04-19drop some includesCaolán McNamara 2018-11-08Convert FieldUnit to scoped enumMike Kaganski 2018-10-09Resolves: tdf#120370 should check gradientgrid sensitivityCaolán McNamara 2018-09-20SvxTabPage with a dummy PointChanged impl is just SfxTabPageCaolán McNamara 2018-09-17rename to weld::ComboBox are they are not text only nowCaolán McNamara 2018-07-29Merge identical switch cases in SvxTransparenceTabPageMuhammet Kara 2018-06-12weld SvxTransparenceTabPageCaolán McNamara 2018-05-03weld SvxTextAttrPageCaolán McNamara 2018-04-22place an intermediate class as parent for SfxTabPagesCaolán McNamara 2018-04-07tdf#42949 Remove unnecessary localization headers from cuiGabor Kelemen 2018-02-27replace Color(COL_*) with COL_*Noel Grandin 2018-02-26loplugin:oncevar extend to tools/gen.hxx typesNoel Grandin 2018-01-15More loplugin:cstylecast: cuiStephan Bergmann 2018-01-12More loplugin:cstylecast: cuiStephan Bergmann 2017-11-20TypedWhichId for XATTR* constantsNoel Grandin 2017-10-23loplugin:includeform: cuiStephan Bergmann 2017-09-21Rename GetSelectEntryPos -> GetSelectedEntryPosSamuel Mehrbrodt 2017-07-31loplugin:constparams in cuiNoel Grandin 2017-07-21de-hrc various thingsCaolán McNamara 2017-06-23loplugin:unusedfields in cuiNoel Grandin 2017-05-30teach redundantcast plugin about functional castsNoel Grandin 2017-05-05loplugin:checkunusedparams in svx(part4)Noel Grandin 2017-03-25Fix typosAndrea Gelmini 2017-03-16remove unused defines from HRC files in cuiNoel Grandin 2016-10-05Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann 2016-08-30convert RECT_POINT to scoped enumNoel Grandin 2016-08-18convert PageType to scoped enumNoel Grandin 2016-06-06Convert DeactivePage return code to scoped enumNoel Grandin 2016-04-29Refactoring transparence tab codeRishabh Kumar