LibreOffice Module reportdesign (master) 1
ReportControlModel.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_REPORTCONTROLMODEL_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTCONTROLMODEL_HXX
22
23#include "ReportComponent.hxx"
24#include <com/sun/star/style/VerticalAlignment.hpp>
25#include <com/sun/star/awt/FontDescriptor.hpp>
26#include <com/sun/star/report/XFormatCondition.hpp>
27#include <com/sun/star/container/XContainer.hpp>
28#include <com/sun/star/lang/Locale.hpp>
29#include <com/sun/star/style/ParagraphAdjust.hpp>
31
32
33namespace reportdesign
34{
36 {
37 css::style::ParagraphAdjust nAlign;
38 css::awt::FontDescriptor aFontDescriptor;
39 css::awt::FontDescriptor aAsianFontDescriptor;
40 css::awt::FontDescriptor aComplexFontDescriptor;
41 css::lang::Locale aCharLocale;
42 css::lang::Locale aCharLocaleAsian;
43 css::lang::Locale aCharLocaleComplex;
44 ::sal_Int16 nFontEmphasisMark;
45 ::sal_Int16 nFontRelief;
46 ::sal_Int32 nTextColor;
47 ::sal_Int32 nTextLineColor;
48 ::sal_Int32 nBackgroundColor;
51 OUString sHyperLinkURL;
56 css::style::VerticalAlignment aVerticalAlignment;
57 ::sal_Int16 nCharEscapement;
58 ::sal_Int16 nCharCaseMap;
59 ::sal_Int16 nCharKerning;
69 };
71 {
72 void checkIndex(sal_Int32 _nIndex);
74 void operator =(OReportControlModel const &) = delete;
75 public:
79 css::container::XContainer* m_pOwner;
80 ::std::vector< css::uno::Reference< css::report::XFormatCondition> >
82 osl::Mutex& m_rMutex;
83 OUString aDataField;
86
87 OReportControlModel(osl::Mutex& _rMutex
88 ,css::container::XContainer* _pOwner
89 ,css::uno::Reference< css::uno::XComponentContext > const & _xContext)
90 :aContainerListeners(_rMutex)
92 ,m_pOwner(_pOwner)
93 ,m_rMutex(_rMutex)
95 {}
96
97 // XContainer
99 void addContainerListener( const css::uno::Reference< css::container::XContainerListener >& xListener );
101 void removeContainerListener( const css::uno::Reference< css::container::XContainerListener >& xListener );
102
103 // XElementAccess
105 bool hasElements( );
106
107 // XIndexReplace
112 void replaceByIndex( ::sal_Int32 Index, const css::uno::Any& Element );
113
114 // XIndexContainer
119 void insertByIndex( ::sal_Int32 Index, const css::uno::Any& Element );
123 void removeByIndex( ::sal_Int32 Index );
124
125 // XIndexAccess
127 ::sal_Int32 getCount( );
131 css::uno::Any getByIndex( ::sal_Int32 Index );
132
133 static bool isInterfaceForbidden(const css::uno::Type& _rType);
134 };
135}
136#endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_REPORTCONTROLMODEL_HXX
137
138/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOIndex Index
void insertByIndex(::sal_Int32 Index, const css::uno::Any &Element)
void removeByIndex(::sal_Int32 Index)
css::uno::Any getByIndex(::sal_Int32 Index)
::comphelper::OInterfaceContainerHelper3< css::container::XContainerListener > aContainerListeners
static bool isInterfaceForbidden(const css::uno::Type &_rType)
void removeContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener)
OReportControlModel(osl::Mutex &_rMutex, css::container::XContainer *_pOwner, css::uno::Reference< css::uno::XComponentContext > const &_xContext)
OReportComponentProperties aComponent
void addContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener)
OReportControlModel(OReportControlModel const &)=delete
::std::vector< css::uno::Reference< css::report::XFormatCondition > > m_aFormatConditions
void replaceByIndex(::sal_Int32 Index, const css::uno::Any &Element)
css::container::XContainer * m_pOwner
void operator=(OReportControlModel const &)=delete
css::awt::FontDescriptor aAsianFontDescriptor
css::awt::FontDescriptor aFontDescriptor
css::style::ParagraphAdjust nAlign
css::style::VerticalAlignment aVerticalAlignment
css::awt::FontDescriptor aComplexFontDescriptor
signed char sal_Int8
Reference< XComponentContext > _xContext