LibreOffice Module svx (master) 1
formcontrolfactory.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 * This file is part of the LibreOffice project.
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 *
10 * This file incorporates work covered by the following license notice:
11 *
12 * Licensed to the Apache Software Foundation (ASF) under one or more
13 * contributor license agreements. See the NOTICE file distributed
14 * with this work for additional information regarding copyright
15 * ownership. The ASF licenses this file to you under the Apache
16 * License, Version 2.0 (the "License"); you may not use this file
17 * except in compliance with the License. You may obtain a copy of
18 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 */
20
21#ifndef INCLUDED_SVX_SOURCE_INC_FORMCONTROLFACTORY_HXX
22#define INCLUDED_SVX_SOURCE_INC_FORMCONTROLFACTORY_HXX
23
25
26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/util/XNumberFormats.hpp>
28#include <com/sun/star/lang/XServiceInfo.hpp>
29#include <com/sun/star/uno/XComponentContext.hpp>
30#include <com/sun/star/container/XNameAccess.hpp>
31
32#include <string_view>
33
34class SdrUnoObj;
35namespace tools { class Rectangle; }
36
37namespace comphelper {
38 class ComponentContext;
39}
40
41
42namespace svxform
43{
44
46 {
47 public:
48 FormControlFactory( const css::uno::Reference<css::uno::XComponentContext>& _rContext );
51
64 const DocumentType _eDocType,
65 const css::uno::Reference< css::beans::XPropertySet >& _rxControlModel,
66 const tools::Rectangle& _rControlBoundRect
67 );
68
69 sal_Int16 initializeControlModel( const DocumentType _eDocType, const SdrUnoObj& _rObject );
70 void initializeControlModel( const DocumentType _eDocType, const css::uno::Reference< css::beans::XPropertySet >& _rxControlModel );
71
73 const css::uno::Reference< css::beans::XPropertySet >& _rxModel
74 );
75
77 const css::uno::Reference< css::beans::XPropertySet >& _rxDatabaseField,
78 const css::uno::Reference< css::beans::XPropertySet >& _rxControlModel,
79 const css::uno::Reference< css::util::XNumberFormats >& _rxNumberFormats
80 );
81
82 static OUString getDefaultName(
83 const sal_Int16 nClassId,
84 const css::uno::Reference< css::lang::XServiceInfo >& _rxObject
85 );
86
88 const css::uno::Reference< css::container::XNameAccess >& _rxContainer,
89 const css::uno::Reference< css::beans::XPropertySet >& _rxObject
90 );
91
92 static OUString getUniqueName(
93 const css::uno::Reference< css::container::XNameAccess >& _rxContainer,
94 std::u16string_view _rBaseName
95 );
96
97 private:
98 css::uno::Reference<css::uno::XComponentContext> m_xContext;
99 };
100
101
102}
103
104
105#endif // INCLUDED_SVX_SOURCE_INC_FORMCONTROLFACTORY_HXX
106
107/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static void initializeFieldDependentProperties(const css::uno::Reference< css::beans::XPropertySet > &_rxDatabaseField, const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const css::uno::Reference< css::util::XNumberFormats > &_rxNumberFormats)
static OUString getDefaultUniqueName_ByComponentType(const css::uno::Reference< css::container::XNameAccess > &_rxContainer, const css::uno::Reference< css::beans::XPropertySet > &_rxObject)
sal_Int16 initializeControlModel(const DocumentType _eDocType, const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const tools::Rectangle &_rControlBoundRect)
initializes the given control model which is to be newly inserted into a document
void initializeControlModel(const DocumentType _eDocType, const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel)
FormControlFactory(const css::uno::Reference< css::uno::XComponentContext > &_rContext)
static OUString getUniqueName(const css::uno::Reference< css::container::XNameAccess > &_rxContainer, std::u16string_view _rBaseName)
void initializeTextFieldLineEnds(const css::uno::Reference< css::beans::XPropertySet > &_rxModel)
static OUString getDefaultName(const sal_Int16 nClassId, const css::uno::Reference< css::lang::XServiceInfo > &_rxObject)
css::uno::Reference< css::uno::XComponentContext > m_xContext
class FmSearchEngine - Impl class for FmSearchDialog