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>
32 #include <cppuhelper/weakref.hxx>
33 
34 namespace reportdesign
35 {
37  {
38  public:
39  css::uno::WeakReference<css::container::XChild> m_xParent;
40  css::uno::Reference<css::uno::XComponentContext> m_xContext;
41  css::uno::Reference<css::lang::XMultiServiceFactory> m_xFactory;
42  css::uno::Reference<css::drawing::XShape> m_xShape;
43  css::uno::Reference<css::uno::XAggregation> m_xProxy;
44  css::uno::Reference<css::beans::XPropertySet> m_xProperty;
45  css::uno::Reference<css::lang::XTypeProvider> m_xTypeProvider;
46  css::uno::Reference<css::lang::XUnoTunnel> m_xUnoTunnel;
47  css::uno::Reference<css::lang::XServiceInfo> m_xServiceInfo;
48  css::uno::Sequence<OUString> m_aMasterFields;
49  css::uno::Sequence<OUString> m_aDetailFields;
50  OUString m_sName;
51  ::sal_Int32 m_nHeight;
52  ::sal_Int32 m_nWidth;
53  ::sal_Int32 m_nPosX;
54  ::sal_Int32 m_nPosY;
55  ::sal_Int32 m_nBorderColor;
56  ::sal_Int16 m_nBorder;
59 
61  css::uno::Reference<css::uno::XComponentContext> const& xContext)
62  : m_xContext(xContext)
63  , m_nHeight(0)
64  , m_nWidth(0)
65  , m_nPosX(0)
66  , m_nPosY(0)
67  , m_nBorderColor(0)
68  , m_nBorder(2)
69  , m_bPrintRepeatedValues(true)
70  , m_bAutoGrow(false)
71  {}
73 
74  void setShape(css::uno::Reference<css::drawing::XShape>& xShape,
75  const css::uno::Reference<css::report::XReportComponent>& xTunnel,
76  oslInterlockedCount& rRefCount);
77  };
78 }
79 
80 #endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTCOMPONENT_HXX
81 
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OReportComponentProperties(css::uno::Reference< css::uno::XComponentContext > const &xContext)
css::uno::Sequence< OUString > m_aMasterFields
css::uno::Reference< css::lang::XServiceInfo > m_xServiceInfo
void setShape(css::uno::Reference< css::drawing::XShape > &xShape, const css::uno::Reference< css::report::XReportComponent > &xTunnel, oslInterlockedCount &rRefCount)
css::uno::Sequence< OUString > m_aDetailFields
css::uno::Reference< css::beans::XPropertySet > m_xProperty
css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory
css::uno::WeakReference< css::container::XChild > m_xParent
css::uno::Reference< css::drawing::XShape > m_xShape
css::uno::Reference< css::lang::XTypeProvider > m_xTypeProvider
css::uno::Reference< css::lang::XUnoTunnel > m_xUnoTunnel
css::uno::Reference< css::uno::XComponentContext > m_xContext
css::uno::Reference< css::uno::XAggregation > m_xProxy