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 
33 namespace 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;
52  OUString sHyperLinkTarget;
53  OUString sHyperLinkName;
56  css::style::VerticalAlignment aVerticalAlignment;
57  ::sal_Int16 nCharEscapement;
58  ::sal_Int16 nCharCaseMap;
59  ::sal_Int16 nCharKerning;
62  bool bCharFlash;
69  };
71  {
72  void checkIndex(sal_Int32 _nIndex);
73  OReportControlModel(OReportControlModel const &) = delete;
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)
91  ,aComponent(_xContext)
92  ,m_pOwner(_pOwner)
93  ,m_rMutex(_rMutex)
94  ,bPrintWhenGroupChange(true)
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: */
void removeContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener)
static bool isInterfaceForbidden(const css::uno::Type &_rType)
css::container::XContainer * m_pOwner
css::awt::FontDescriptor aComplexFontDescriptor
signed char sal_Int8
css::style::ParagraphAdjust nAlign
OReportComponentProperties aComponent
::comphelper::OInterfaceContainerHelper2 aContainerListeners
void operator=(OReportControlModel const &)=delete
void addContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener)
css::style::VerticalAlignment aVerticalAlignment
::std::vector< css::uno::Reference< css::report::XFormatCondition > > m_aFormatConditions
css::awt::FontDescriptor aAsianFontDescriptor
css::awt::FontDescriptor aFontDescriptor
void insertByIndex(::sal_Int32 Index, const css::uno::Any &Element)
void replaceByIndex(::sal_Int32 Index, const css::uno::Any &Element)
void removeByIndex(::sal_Int32 Index)
OReportControlModel(osl::Mutex &_rMutex, css::container::XContainer *_pOwner, css::uno::Reference< css::uno::XComponentContext > const &_xContext)
OReportControlModel(OReportControlModel const &)=delete
struct _ADOIndex Index
css::uno::Any getByIndex(::sal_Int32 Index)