/* * 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 .
*/
/** * creates a XControlShape * * @param oDoc the document * @param height the height of the shape * @param width the width of the shape * @param x the x-position of the shape * @param y the y-position of the shape * @param kind the kind of the shape * @return the created XControlShape
*/ publicstatic XControlShape createControlShape( XComponent oDoc, int height, int width, int x, int y, String kind ) throws com.sun.star.uno.Exception
{
Size size = new Size();
Point position = new Point();
XControlShape oCShape = null;
XControlModel aControl = null;
publicstatic XControlShape createUnoControlShape( XComponent oDoc, int height, int width, int x, int y, String kind, String defControl ) throws com.sun.star.uno.Exception
{
Size size = new Size();
Point position = new Point();
XControlShape oCShape = null;
XControlModel aControl = null;
publicstatic XControlShape createControlShapeWithDefaultControl( XComponent oDoc, intheight, int width, int x, int y, String kind ) throws com.sun.star.uno.Exception
{
Size size = new Size();
Point position = new Point();
XControlShape oCShape = null;
XControlModel aControl = null;
/** * Binds <code>'Standard'</code> form of <code>aDoc</code> Writer document * to the <code>tableName</code> table of <code>sourceName</code> * Data Source. * @param aDoc Writer document where DB controls are added. * @param sourceName The name of DataSource in the <code>DatabaseContext</code>. * @param tableName The name of the table to which controls are bound. * @return <code>com.sun.star.form.component.DatabaseForm</code> service * implementation which is the bound form inside the document.
*/ publicstatic XLoadable bindForm( XTextDocument aDoc, String sourceName, String tableName ) throws com.sun.star.uno.Exception {
/** * Binds the form with the name specified of <code>aDoc</code> Writer document * to the <code>tableName</code> table of <code>sourceName</code> * Data Source. * @param aDoc Writer document where DB controls are added. * @param formName The name of the form to be bound. * @param sourceName The name of DataSource in the <code>DatabaseContext</code>. * @param tableName The name of the table to which controls are bound. * @return <code>com.sun.star.form.component.DatabaseForm</code> service * implementation which is the bound form inside the document.
*/ publicstatic XLoadable bindForm( XTextDocument aDoc, String formName, String sourceName,
String tableName) throws com.sun.star.uno.Exception {
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.