/* * 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 com.sun.star.comp.jvmaccess.workbench; import com.sun.star.comp.loader.FactoryHelper; import com.sun.star.lang.XMain; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.lang.XServiceInfo; import com.sun.star.lang.XSingleServiceFactory; import com.sun.star.lang.XTypeProvider; import com.sun.star.registry.XRegistryKey; import com.sun.star.uno.Type; /* Deploy this component with pkgchk, and call it with the Basic program Sub Main dim args$() o = createunoservice("com.sun.star.comp.jvmaccess.workbench.TestComponent") o.run args$() End Sub The name of the context class loader should appear on the console. */ public final class TestComponent implements XTypeProvider, XServiceInfo, XMain { public Type[] getTypes() { return new Type[] { new Type(XTypeProvider.class), new Type(XServiceInfo.class), new Type(XMain.class) }; } public byte[] getImplementationId() { return new byte[0]; } public String getImplementationName() { return getClass().getName(); } public boolean supportsService(String serviceName) { return serviceName.equals(serviceName); } public String[] getSupportedServiceNames() { return new String[] { serviceName }; } public int run(String[] arguments) { System.out.println("context class loader: " + Thread.currentThread().getContextClassLoader()); return 0; } public static XSingleServiceFactory __getServiceFactory( String implName, XMultiServiceFactory multiFactory, XRegistryKey regKey) { if (implName.equals(TestComponent.class.getName())) { return FactoryHelper.getServiceFactory(TestComponent.class, serviceName, multiFactory, regKey); } else { return null; } } public static boolean __writeRegistryServiceInfo(XRegistryKey regKey) { return FactoryHelper.writeRegistryServiceInfo( TestComponent.class.getName(), serviceName, regKey); } private static final String serviceName = "com.sun.star.comp.jvmaccess.workbench.TestComponent"; } abora/co-24.04.5 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/svtools
AgeCommit message (Expand)Author
2020-01-31clang-tidy modernize-concat-nested-namespaceNoel Grandin
2020-01-30loplugin:unusedmethodsNoel Grandin
2020-01-30loplugin:unusedfieldsNoel Grandin
2020-01-28remove newly unused ToolbarPopup ctorCaolán McNamara
2020-01-28drop some unneeded vcl/builderfactory.hxx includesCaolán McNamara
2020-01-28ToolbarMenu is now unusedCaolán McNamara
2020-01-28New loplugin:unsignedcompareStephan Bergmann
2020-01-27Make sure MaxFilesizeForRealtimePreview read from configuration is non-negativeStephan Bergmann
2020-01-26rename some local variablesNoel Grandin
2020-01-25Resolves: tdf#130159 hide writedirection unless CTL is enabledCaolán McNamara
2020-01-25Use properly typed vars for iterationStephan Bergmann
2020-01-25Avoid explicit cast to smaller sal_uInt16 from larger longStephan Bergmann
2020-01-25loplugin:makeshared in svl..svxNoel Grandin
2020-01-24Revert "lok: ui: more files to increase the 'step-increment'"Miklos Vajna
2020-01-23weld SvxBmpMaskCaolán McNamara
2020-01-23lok: ui: more files to increase the 'step-increment'Henry Castro
2020-01-23loplugin:unusedmethodsNoel Grandin
2020-01-23tdf#129388: Do as kendy suggested in 7e291eedbad335bf8bbc8a17cc3d633bf66d0e90Tor Lillqvist
2020-01-23loplugin:unnecessaryvirtualNoel Grandin
2020-01-22scroll to make selected entry visibleCaolán McNamara
2020-01-22inline some construction methodsNoel Grandin
2020-01-21weld gallery panelCaolán McNamara
2020-01-21scrollbar adjustment wrong if we clear and refill a SvtValueSetCaolán McNamara
2020-01-20loplugin:unusedfieldsNoel Grandin
2020-01-16rename a createPopupWindow so we can remove 'using createPopupWindow'Caolán McNamara
2020-01-15hold SolarMutex on calling vcl toolbox enable itemCaolán McNamara
2020-01-15tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctorMesut Çifci
2020-01-15tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctorMesut Çifci
2020-01-14svmedit2.hxx doesn't need to be a public headerCaolán McNamara
2020-01-14rework SfxCharmapCtrl to be a PopupWindowControllerCaolán McNamara
2020-01-13if these popups have focus on dispose put focus into documentCaolán McNamara
2020-01-13loplugin:unusedfieldsNoel Grandin
2020-01-11loplugin:finalclasses in svtoolsNoel Grandin
2020-01-10make welded toolbars on-demand that were previously on-demandCaolán McNamara
2020-01-10use more std::make_sharedNoel Grandin
2020-01-09Improve loplugin:redundantcast for sal_Int... vs. ::sal_Int...Stephan Bergmann
2020-01-08add a scheme to host welded toolbar dropdown windows in unwelded toolbarsCaolán McNamara
2020-01-06weld AreaPropertyPanelCaolán McNamara
2019-12-31support welded toolbar popovers in PopupWindowControllerCaolán McNamara
2019-12-30SvtAccessibilityOptions base SfxListener appears to be unusedStephan Bergmann
2019-12-30weld AlignmentPropertyPanelCaolán McNamara
2019-12-28tdf#124176: Use "pragma once" on svtools/*Andrea Gelmini
2019-12-27tdf#46037: simplify is/get methods in svtools/printoptionsJulien Nabet