LibreOffice Module reportdesign (master) 1
DataProviderHandler.cxx
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#include <sal/config.h>
21
22#include <string_view>
23
27#include <comphelper/types.hxx>
30#include <strings.hxx>
31#include <com/sun/star/form/inspection/FormComponentPropertyHandler.hpp>
32#include <com/sun/star/inspection/PropertyControlType.hpp>
33#include <com/sun/star/inspection/PropertyLineElement.hpp>
34#include <com/sun/star/lang/NullPointerException.hpp>
35#include <com/sun/star/chart/ChartDataRowSource.hpp>
36#include <com/sun/star/chart2/FormattedString.hpp>
37#include <com/sun/star/chart2/XTitled.hpp>
38#include <com/sun/star/chart2/XTitle.hpp>
39#include <com/sun/star/chart2/data/XDataReceiver.hpp>
40#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
41#include <com/sun/star/report/XReportDefinition.hpp>
42#include <com/sun/star/script/Converter.hpp>
43#include <com/sun/star/container/XNameContainer.hpp>
44#include <metadata.hxx>
45#include <osl/mutex.hxx>
47#include <core_resource.hxx>
48#include <helpids.h>
49#include <strings.hrc>
50#include <PropertyForward.hxx>
51#include <utility>
52
53namespace rptui
54{
55
56using namespace ::com::sun::star;
57
58DataProviderHandler::DataProviderHandler(uno::Reference< uno::XComponentContext > context)
60 ,m_xContext(std::move(context))
61{
62 try
63 {
64 m_xFormComponentHandler = form::inspection::FormComponentPropertyHandler::create(m_xContext);
65 m_xTypeConverter = script::Converter::create(m_xContext);
66
67 }catch(const uno::Exception &)
68 {
69 }
70}
71
72OUString SAL_CALL DataProviderHandler::getImplementationName( )
73{
74 return "com.sun.star.comp.report.DataProviderHandler";
75}
76
77sal_Bool SAL_CALL DataProviderHandler::supportsService( const OUString& ServiceName )
78{
80}
81
82uno::Sequence< OUString > SAL_CALL DataProviderHandler::getSupportedServiceNames( )
83{
84 return { "com.sun.star.report.inspection.DataProviderHandler" };
85}
86
87// override WeakComponentImplHelperBase::disposing()
88// This function is called upon disposing the component,
89// if your component needs special work when it becomes
90// disposed, do it here.
91void SAL_CALL DataProviderHandler::disposing()
92{
93 ::comphelper::disposeComponent(m_xFormComponentHandler);
94 ::comphelper::disposeComponent( m_xMasterDetails );
95 ::comphelper::disposeComponent(m_xTypeConverter);
96}
97void SAL_CALL DataProviderHandler::addEventListener(const uno::Reference< lang::XEventListener > & xListener)
98{
99 m_xFormComponentHandler->addEventListener(xListener);
100}
101
102void SAL_CALL DataProviderHandler::removeEventListener(const uno::Reference< lang::XEventListener > & aListener)
103{
104 m_xFormComponentHandler->removeEventListener(aListener);
105}
106
107// inspection::XPropertyHandler:
108
109/********************************************************************************/
110void SAL_CALL DataProviderHandler::inspect(const uno::Reference< uno::XInterface > & Component)
111{
112 try
113 {
114 uno::Reference< container::XNameContainer > xNameCont(Component,uno::UNO_QUERY);
115 static constexpr OUStringLiteral sFormComponent(u"FormComponent");
116 if ( xNameCont->hasByName(sFormComponent) )
117 {
118 uno::Reference<beans::XPropertySet> xProp(xNameCont->getByName(sFormComponent),uno::UNO_QUERY);
119 static constexpr OUStringLiteral sModel(u"Model");
120 if ( xProp.is() && xProp->getPropertySetInfo()->hasPropertyByName(sModel) )
121 {
122 m_xChartModel.set(xProp->getPropertyValue(sModel),uno::UNO_QUERY);
123 if ( m_xChartModel.is() )
124 m_xFormComponent = m_xChartModel->getDataProvider();
125 }
126 }
127 m_xDataProvider.set(m_xFormComponent,uno::UNO_QUERY);
128 m_xReportComponent.set( xNameCont->getByName("ReportComponent"), uno::UNO_QUERY );
129 if ( m_xDataProvider.is() )
130 {
131 auto aNoConverter = std::make_shared<AnyConverter>();
132 TPropertyNamePair aPropertyMediation;
133 aPropertyMediation.emplace( PROPERTY_MASTERFIELDS, TPropertyConverter(PROPERTY_MASTERFIELDS,aNoConverter) );
134 aPropertyMediation.emplace( PROPERTY_DETAILFIELDS, TPropertyConverter(PROPERTY_DETAILFIELDS,aNoConverter) );
135
136 m_xMasterDetails = new OPropertyMediator( m_xDataProvider, m_xReportComponent, std::move(aPropertyMediation), true );
137 }
138 }
139 catch(const uno::Exception &)
140 {
141 throw lang::NullPointerException();
142 }
143 if ( m_xFormComponent.is() )
144 {
145 m_xFormComponentHandler->inspect(m_xFormComponent);
146 }
147}
148
149uno::Any SAL_CALL DataProviderHandler::getPropertyValue(const OUString & PropertyName)
150{
151 ::osl::MutexGuard aGuard( m_aMutex );
152 uno::Any aPropertyValue;
153 const sal_Int32 nId = OPropertyInfoService::getPropertyId(PropertyName);
154 switch(nId)
155 {
157 // TODO: We need a possibility to get the UI of the selected chart type
158 // LEM: this business of ignoring ChartType seems very fishy!
159 //if( m_xChartModel.is() )
160 //{
161 // uno::Reference< chart2::XDiagram > xDiagram( m_xChartModel->getFirstDiagram() );
162 // if( xDiagram.is() )
163 // {
164 // OUString sChartTypes;
165 // uno::Reference< chart2::XCoordinateSystemContainer > xCooSysCnt( xDiagram, uno::UNO_QUERY_THROW );
166 // const uno::Sequence< uno::Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems());
167 // const uno::Reference< chart2::XCoordinateSystem >* pIter = aCooSysSeq.getConstArray();
168 // const uno::Reference< chart2::XCoordinateSystem >* pEnd = pIter + aCooSysSeq.getLength();
169 // for(;pIter != pEnd;++pIter)
170 // {
171 // const uno::Reference< chart2::XChartTypeContainer > xCTCnt( *pIter, uno::UNO_QUERY_THROW );
172 // const uno::Sequence< uno::Reference< chart2::XChartType > > aCTSeq( xCTCnt->getChartTypes());
173 // const uno::Reference< chart2::XChartType >* pChartTypeIter = aCTSeq.getConstArray();
174 // const uno::Reference< chart2::XChartType >* pChartTypeEnd = pChartTypeIter + aCTSeq.getLength();
175 // for(;pChartTypeIter != pChartTypeEnd;++pChartTypeIter)
176 // {
177 // sChartTypes += (*pChartTypeIter)->getChartType();
178 // sChartTypes += ";";
179 // }
180 // }
181 // aPropertyValue;// <<= sChartTypes;
182 // }
183 //}
184 break;
186 if (m_xDataProvider) // tdf#117159 crash with chart in database report otherwise
187 aPropertyValue <<= m_xDataProvider->getRowLimit();
188 break;
189 default:
190 aPropertyValue = m_xFormComponentHandler->getPropertyValue( PropertyName );
191 break;
192 }
193 return aPropertyValue;
194}
195
196void SAL_CALL DataProviderHandler::setPropertyValue(const OUString & PropertyName, const uno::Any & Value)
197{
198 ::osl::MutexGuard aGuard( m_aMutex );
199 const sal_Int32 nId = OPropertyInfoService::getPropertyId(PropertyName);
200 switch(nId)
201 {
203 break;
205 m_xDataProvider->setPropertyValue(PropertyName,Value);
206 break;
207 default:
208 m_xFormComponentHandler->setPropertyValue(PropertyName, Value);
209 break;
210 }
211}
212
213void DataProviderHandler::impl_updateChartTitle_throw(const uno::Any& _aValue)
214{
215 uno::Reference<chart2::XTitled> xTitled(m_xChartModel,uno::UNO_QUERY);
216 if ( !xTitled.is() )
217 return;
218
219 uno::Reference<chart2::XTitle> xTitle = xTitled->getTitleObject();
220 if ( !xTitle.is() )
221 {
222 xTitle.set(m_xContext->getServiceManager()->createInstanceWithContext("com.sun.star.chart2.Title",m_xContext),uno::UNO_QUERY);
223 xTitled->setTitleObject(xTitle);
224 }
225 if ( xTitle.is() )
226 {
227 uno::Reference< chart2::XFormattedString2> xFormatted = chart2::FormattedString::create(m_xContext);
228 OUString sStr;
229 _aValue >>= sStr;
230 xFormatted->setString(sStr);
231 xTitle->setText({ xFormatted });
232 }
233}
234
235beans::PropertyState SAL_CALL DataProviderHandler::getPropertyState(const OUString & PropertyName)
236{
237 return m_xFormComponentHandler->getPropertyState(PropertyName);
238}
239
240inspection::LineDescriptor SAL_CALL DataProviderHandler::describePropertyLine(const OUString & PropertyName, const uno::Reference< inspection::XPropertyControlFactory > & _xControlFactory)
241{
242 inspection::LineDescriptor aOut;
243 const sal_Int32 nId = OPropertyInfoService::getPropertyId(PropertyName);
244 switch(nId)
245 {
247 aOut.PrimaryButtonId = UID_RPT_PROP_CHARTTYPE_DLG;
248 aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::TextField , true);
249 aOut.HasPrimaryButton = true;
250 break;
252 aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::NumericField , false);
253 break;
256 aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::StringListField , false);
257 aOut.PrimaryButtonId = UID_RPT_PROP_DLG_LINKFIELDS;
258 aOut.HasPrimaryButton = true;
259 break;
260 default:
261 aOut = m_xFormComponentHandler->describePropertyLine(PropertyName, _xControlFactory);
262 }
263 if ( nId != -1 )
264 {
265 aOut.Category = (OPropertyInfoService::getPropertyUIFlags(nId ) & PropUIFlags::DataProperty) ?
266 std::u16string_view(u"Data")
267 :
268 std::u16string_view(u"General");
269 aOut.HelpURL = HelpIdUrl::getHelpURL( OPropertyInfoService::getPropertyHelpId( nId ) );
270 aOut.DisplayName = OPropertyInfoService::getPropertyTranslation(nId);
271 }
272 return aOut;
273}
274
275uno::Any SAL_CALL DataProviderHandler::convertToPropertyValue(const OUString & _rPropertyValue, const uno::Any & _rControlValue)
276{
277 ::osl::MutexGuard aGuard( m_aMutex );
278 uno::Any aPropertyValue( _rControlValue );
279 const sal_Int32 nId = OPropertyInfoService::getPropertyId(_rPropertyValue);
280 switch(nId)
281 {
283 break;
285 try
286 {
287 aPropertyValue = m_xTypeConverter->convertTo( _rControlValue, ::cppu::UnoType<sal_Int32>::get());
288 }
289 catch( const uno::Exception& )
290 {
291 TOOLS_WARN_EXCEPTION( "reportdesign", "DataProviderHandler::convertToPropertyValue: caught an exception while converting via TypeConverter!" );
292 }
293 break;
296 break;
297 default:
298 aPropertyValue = m_xFormComponentHandler->convertToPropertyValue(_rPropertyValue, _rControlValue);
299 }
300 return aPropertyValue;
301}
302
303uno::Any SAL_CALL DataProviderHandler::convertToControlValue(const OUString & _rPropertyName, const uno::Any & _rPropertyValue, const uno::Type & ControlValueType)
304{
305 uno::Any aControlValue( _rPropertyValue );
306 if ( !aControlValue.hasValue() )
307 // NULL is converted to NULL
308 return aControlValue;
309
310 ::osl::MutexGuard aGuard( m_aMutex );
311 const sal_Int32 nId = OPropertyInfoService::getPropertyId(_rPropertyName);
312 switch(nId)
313 {
315 break;
319 try
320 {
321 aControlValue = m_xTypeConverter->convertTo( _rPropertyValue, ControlValueType);
322 }
323 catch( const uno::Exception& )
324 {
325 TOOLS_WARN_EXCEPTION( "reportdesign", "GeometryHandler::convertToPropertyValue: caught an exception while converting via TypeConverter!" );
326 }
327 break;
328 default:
329 aControlValue = m_xFormComponentHandler->convertToControlValue(_rPropertyName, _rPropertyValue, ControlValueType);
330 }
331 return aControlValue;
332}
333
334void SAL_CALL DataProviderHandler::addPropertyChangeListener(const uno::Reference< beans::XPropertyChangeListener > & Listener)
335{
336 m_xFormComponentHandler->addPropertyChangeListener(Listener);
337}
338
339void SAL_CALL DataProviderHandler::removePropertyChangeListener(const uno::Reference< beans::XPropertyChangeListener > & _rxListener)
340{
341 m_xFormComponentHandler->removePropertyChangeListener(_rxListener);
342}
343
344uno::Sequence< beans::Property > SAL_CALL DataProviderHandler::getSupportedProperties()
345{
346 ::std::vector< beans::Property > aNewProps;
347 if( m_xChartModel.is() )
348 {
349 rptui::OPropertyInfoService::getExcludeProperties( aNewProps, m_xFormComponentHandler );
350 beans::Property aValue;
351 static const rtl::OUStringConstExpr s_pProperties[] =
352 {
357 };
358
359 for (const auto & rName : s_pProperties)
360 {
361 aValue.Name = rName;
362 aNewProps.push_back(aValue);
363 }
364 }
365 return uno::Sequence< beans::Property >(aNewProps.data(), aNewProps.size());
366}
367
368uno::Sequence< OUString > SAL_CALL DataProviderHandler::getSupersededProperties()
369{
370 uno::Sequence< OUString > aRet { PROPERTY_TITLE }; // have a look at OPropertyInfoService::getExcludeProperties
371 return aRet;
372}
373
374uno::Sequence< OUString > SAL_CALL DataProviderHandler::getActuatingProperties()
375{
376 ::osl::MutexGuard aGuard( m_aMutex );
377
378 uno::Sequence< OUString > aSeq { PROPERTY_TITLE };
379 return ::comphelper::concatSequences(m_xFormComponentHandler->getActuatingProperties(),aSeq);
380}
381
382sal_Bool SAL_CALL DataProviderHandler::isComposable( const OUString& _rPropertyName )
383{
384 return OPropertyInfoService::isComposable( _rPropertyName, m_xFormComponentHandler );
385}
386
387inspection::InteractiveSelectionResult SAL_CALL DataProviderHandler::onInteractivePropertySelection(const OUString & PropertyName, sal_Bool Primary, uno::Any & out_Data, const uno::Reference< inspection::XObjectInspectorUI > & _rxInspectorUI)
388{
389 if ( !_rxInspectorUI.is() )
390 throw lang::NullPointerException();
391
392 inspection::InteractiveSelectionResult eResult = inspection::InteractiveSelectionResult_Cancelled;
393 ::osl::ClearableMutexGuard aGuard( m_aMutex );
394
395 const sal_Int32 nId = OPropertyInfoService::getPropertyId(PropertyName);
396 switch(nId)
397 {
399 if ( impl_dialogChartType_nothrow(aGuard) )
400 eResult = inspection::InteractiveSelectionResult_ObtainedValue;
401 break;
404 if ( impl_dialogLinkedFields_nothrow( aGuard ) )
405 eResult = inspection::InteractiveSelectionResult_Success;
406 break;
407 default:
408 eResult = m_xFormComponentHandler->onInteractivePropertySelection(PropertyName, Primary, out_Data, _rxInspectorUI);
409 }
410
411 return eResult;
412}
413
414void SAL_CALL DataProviderHandler::actuatingPropertyChanged(const OUString & ActuatingPropertyName, const uno::Any & NewValue, const uno::Any & OldValue, const uno::Reference< inspection::XObjectInspectorUI > & InspectorUI, sal_Bool FirstTimeInit)
415{
416 osl::MutexGuard aGuard( m_aMutex );
417
418 if ( ActuatingPropertyName == PROPERTY_COMMAND )
419 {
420 if ( NewValue != OldValue )
421 {
422 uno::Reference< report::XReportDefinition> xReport = m_xReportComponent->getSection()->getReportDefinition();
423 bool bDoEnableMasterDetailFields = xReport.is() && !xReport->getCommand().isEmpty() && !m_xDataProvider->getCommand().isEmpty();
424 InspectorUI->enablePropertyUIElements( PROPERTY_DETAILFIELDS, inspection::PropertyLineElement::PrimaryButton, bDoEnableMasterDetailFields );
425 InspectorUI->enablePropertyUIElements( PROPERTY_MASTERFIELDS, inspection::PropertyLineElement::PrimaryButton, bDoEnableMasterDetailFields );
426
427 bool bModified = xReport->isModified();
428 // this fills the chart again
430 aArgs.put( "CellRangeRepresentation", uno::Any( OUString( "all" ) ) );
431 aArgs.put( "HasCategories", uno::Any( true ) );
432 aArgs.put( "FirstCellAsLabel", uno::Any( true ) );
433 aArgs.put( "DataRowSource", uno::Any( chart::ChartDataRowSource_COLUMNS ) );
434 uno::Reference< chart2::data::XDataReceiver > xReceiver(m_xChartModel,uno::UNO_QUERY_THROW);
435 xReceiver->setArguments( aArgs.getPropertyValues() );
436 if ( !bModified )
437 xReport->setModified(false);
438 }
439 m_xFormComponentHandler->actuatingPropertyChanged(ActuatingPropertyName, NewValue, OldValue, InspectorUI, FirstTimeInit);
440 }
441 else if ( ActuatingPropertyName == PROPERTY_TITLE )
442 {
443 if ( NewValue != OldValue )
444 impl_updateChartTitle_throw(NewValue);
445 }
446 else
447 {
448 const sal_Int32 nId = OPropertyInfoService::getPropertyId(ActuatingPropertyName);
449 switch(nId)
450 {
451
453 break;
455 break;
456 default:
457 m_xFormComponentHandler->actuatingPropertyChanged(ActuatingPropertyName, NewValue, OldValue, InspectorUI, FirstTimeInit);
458 }
459 }
460}
461
462sal_Bool SAL_CALL DataProviderHandler::suspend(sal_Bool Suspend)
463{
464 return m_xFormComponentHandler->suspend(Suspend);
465}
466bool DataProviderHandler::impl_dialogLinkedFields_nothrow( ::osl::ClearableMutexGuard& _rClearBeforeDialog ) const
467{
468 uno::Sequence<uno::Any> aSeq(comphelper::InitAnyPropertySequence(
469 {
470 {"ParentWindow", m_xContext->getValueByName("DialogParentWindow")},
471 {"Detail", uno::Any(m_xDataProvider)},
472 {"Master", uno::Any(m_xReportComponent->getSection()->getReportDefinition())},
473 {"Explanation", uno::Any(RptResId(TranslateId(nullptr, RID_STR_EXPLANATION)))},
474 {"DetailLabel", uno::Any(RptResId(RID_STR_DETAILLABEL))},
475 {"MasterLabel", uno::Any(RptResId(RID_STR_MASTERLABEL))},
476 }));
477
478 uno::Reference< ui::dialogs::XExecutableDialog > xDialog(
479 m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext(
480 "org.openoffice.comp.form.ui.MasterDetailLinkDialog", aSeq, m_xContext),
481 uno::UNO_QUERY);
482
483 _rClearBeforeDialog.clear();
484 return ( xDialog->execute() != 0 );
485}
486
487bool DataProviderHandler::impl_dialogChartType_nothrow( ::osl::ClearableMutexGuard& _rClearBeforeDialog ) const
488{
489 uno::Sequence<uno::Any> aSeq(comphelper::InitAnyPropertySequence(
490 {
491 {"ParentWindow", m_xContext->getValueByName("DialogParentWindow")},
492 {"ChartModel", uno::Any(m_xChartModel)}
493 }));
494
495 uno::Reference< ui::dialogs::XExecutableDialog > xDialog(
496 m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext(
497 "com.sun.star.comp.chart2.ChartTypeDialog", aSeq, m_xContext),
498 uno::UNO_QUERY);
499
500 _rClearBeforeDialog.clear();
501 return ( xDialog->execute() != 0 );
502}
503
504} // namespace rptui
505
506
507extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
509 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
510{
511 return cppu::acquire(new rptui::DataProviderHandler(context));
512}
513
514/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * reportdesign_DataProviderHandler_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
Reference< XComponentContext > m_xContext
constexpr OUStringLiteral sModel
bool put(const OUString &_rValueName, const VALUE_TYPE &_rValue)
css::uno::Sequence< css::beans::PropertyValue > getPropertyValues() const
DataProviderHandler(css::uno::Reference< css::uno::XComponentContext > context)
static void getExcludeProperties(::std::vector< css::beans::Property > &_rExcludeProperties, const css::uno::Reference< css::inspection::XPropertyHandler > &_xFormComponentHandler)
Definition: metadata.cxx:219
This class ensures the communication between two XPropertySet instances.
OUString RptResId(TranslateId aId)
#define TOOLS_WARN_EXCEPTION(area, stream)
float u
constexpr OUStringLiteral UID_RPT_PROP_DLG_LINKFIELDS
Definition: helpids.h:27
constexpr OUStringLiteral UID_RPT_PROP_CHARTTYPE_DLG
Definition: helpids.h:26
std::mutex m_aMutex
Sequence< sal_Int8 > aSeq
#define PROPERTY_ID_CHARTTYPE
Definition: metadata.hxx:131
#define PROPERTY_ID_MASTERFIELDS
Definition: metadata.hxx:132
#define PROPERTY_ID_DETAILFIELDS
Definition: metadata.hxx:133
#define PROPERTY_ID_PREVIEW_COUNT
Definition: metadata.hxx:134
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
Value
::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler, css::lang::XServiceInfo > DataProviderHandler_Base
std::map< OUString, TPropertyConverter > TPropertyNamePair
Definition: RptDef.hxx:73
::std::pair< OUString, std::shared_ptr< AnyConverter > > TPropertyConverter
Definition: RptDef.hxx:72
sal_Int16 nId
constexpr OUStringLiteral PROPERTY_TITLE
Definition: strings.hxx:265
constexpr OUStringLiteral PROPERTY_CHARTTYPE
Definition: strings.hxx:263
constexpr OUStringLiteral PROPERTY_COMMAND
Definition: strings.hxx:59
constexpr OUStringLiteral PROPERTY_DETAILFIELDS
Definition: strings.hxx:57
constexpr OUStringLiteral PROPERTY_MASTERFIELDS
Definition: strings.hxx:56
constexpr OUStringLiteral PROPERTY_PREVIEW_COUNT
Definition: strings.hxx:264
bool hasValue()
::std::pair< MetaAction *, int > Component
unsigned char sal_Bool