LibreOffice Module reportdesign (master) 1
ReportComponent.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTCOMPONENT_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTCOMPONENT_HXX
22
23#include <com/sun/star/uno/XComponentContext.hpp>
24#include <com/sun/star/container/XChild.hpp>
25#include <com/sun/star/drawing/XShape.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
27#include <com/sun/star/lang/XTypeProvider.hpp>
28#include <com/sun/star/lang/XUnoTunnel.hpp>
29#include <com/sun/star/uno/XAggregation.hpp>
30#include <com/sun/star/report/XReportComponent.hpp>
31#include <com/sun/star/lang/XMultiServiceFactory.hpp>
33#include <utility>
34
35namespace reportdesign
36{
38 {
39 public:
40 css::uno::WeakReference<css::container::XChild> m_xParent;
41 css::uno::Reference<css::uno::XComponentContext> m_xContext;
42 css::uno::Reference<css::lang::XMultiServiceFactory> m_xFactory;
43 css::uno::Reference<css::drawing::XShape> m_xShape;
44 css::uno::Reference<css::uno::XAggregation> m_xProxy;
45 css::uno::Reference<css::beans::XPropertySet> m_xProperty;
46 css::uno::Reference<css::lang::XTypeProvider> m_xTypeProvider;
47 css::uno::Reference<css::lang::XUnoTunnel> m_xUnoTunnel;
48 css::uno::Reference<css::lang::XServiceInfo> m_xServiceInfo;
49 css::uno::Sequence<OUString> m_aMasterFields;
50 css::uno::Sequence<OUString> m_aDetailFields;
51 OUString m_sName;
52 ::sal_Int32 m_nHeight;
53 ::sal_Int32 m_nWidth;
54 ::sal_Int32 m_nPosX;
55 ::sal_Int32 m_nPosY;
56 ::sal_Int32 m_nBorderColor;
57 ::sal_Int16 m_nBorder;
60
62 css::uno::Reference<css::uno::XComponentContext> xContext)
63 : m_xContext(std::move(xContext))
64 , m_nHeight(0)
65 , m_nWidth(0)
66 , m_nPosX(0)
67 , m_nPosY(0)
69 , m_nBorder(2)
71 , m_bAutoGrow(false)
72 {}
74
75 void setShape(css::uno::Reference<css::drawing::XShape>& xShape,
76 const css::uno::Reference<css::report::XReportComponent>& xTunnel,
77 oslInterlockedCount& rRefCount);
78 };
79}
80
81#endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTCOMPONENT_HXX
82
83/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Sequence< OUString > m_aDetailFields
css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory
css::uno::WeakReference< css::container::XChild > m_xParent
css::uno::Reference< css::lang::XUnoTunnel > m_xUnoTunnel
css::uno::Reference< css::uno::XAggregation > m_xProxy
css::uno::Reference< css::drawing::XShape > m_xShape
css::uno::Reference< css::uno::XComponentContext > m_xContext
css::uno::Reference< css::lang::XTypeProvider > m_xTypeProvider
css::uno::Reference< css::lang::XServiceInfo > m_xServiceInfo
OReportComponentProperties(css::uno::Reference< css::uno::XComponentContext > xContext)
css::uno::Reference< css::beans::XPropertySet > m_xProperty
void setShape(css::uno::Reference< css::drawing::XShape > &xShape, const css::uno::Reference< css::report::XReportComponent > &xTunnel, oslInterlockedCount &rRefCount)
css::uno::Sequence< OUString > m_aMasterFields