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 
24 #include <DataProviderHandler.hxx>
26 #include <comphelper/sequence.hxx>
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>
46 #include <tools/diagnose_ex.h>
47 #include <core_resource.hxx>
48 #include <helpids.h>
49 #include <strings.hrc>
50 #include <PropertyForward.hxx>
51 
52 namespace rptui
53 {
54 
55 using namespace ::com::sun::star;
56 
57 DataProviderHandler::DataProviderHandler(uno::Reference< uno::XComponentContext > const & context)
59  ,m_xContext(context)
60 {
61  try
62  {
63  m_xFormComponentHandler = form::inspection::FormComponentPropertyHandler::create(m_xContext);
64  m_xTypeConverter = script::Converter::create(m_xContext);
65 
66  }catch(const uno::Exception &)
67  {
68  }
69 }
70 
71 OUString SAL_CALL DataProviderHandler::getImplementationName( )
72 {
73  return "com.sun.star.comp.report.DataProviderHandler";
74 }
75 
76 sal_Bool SAL_CALL DataProviderHandler::supportsService( const OUString& ServiceName )
77 {
78  return cppu::supportsService(this, ServiceName);
79 }
80 
81 uno::Sequence< OUString > SAL_CALL DataProviderHandler::getSupportedServiceNames( )
82 {
83  return { "com.sun.star.report.inspection.DataProviderHandler" };
84 }
85 
86 // override WeakComponentImplHelperBase::disposing()
87 // This function is called upon disposing the component,
88 // if your component needs special work when it becomes
89 // disposed, do it here.
90 void SAL_CALL DataProviderHandler::disposing()
91 {
92  ::comphelper::disposeComponent(m_xFormComponentHandler);
93  ::comphelper::disposeComponent( m_xMasterDetails );
94  ::comphelper::disposeComponent(m_xTypeConverter);
95 }
96 void SAL_CALL DataProviderHandler::addEventListener(const uno::Reference< lang::XEventListener > & xListener)
97 {
98  m_xFormComponentHandler->addEventListener(xListener);
99 }
100 
101 void SAL_CALL DataProviderHandler::removeEventListener(const uno::Reference< lang::XEventListener > & aListener)
102 {
103  m_xFormComponentHandler->removeEventListener(aListener);
104 }
105 
106 // inspection::XPropertyHandler:
107 
108 /********************************************************************************/
109 void SAL_CALL DataProviderHandler::inspect(const uno::Reference< uno::XInterface > & Component)
110 {
111  try
112  {
113  uno::Reference< container::XNameContainer > xNameCont(Component,uno::UNO_QUERY);
114  static const OUStringLiteral sFormComponent(u"FormComponent");
115  if ( xNameCont->hasByName(sFormComponent) )
116  {
117  uno::Reference<beans::XPropertySet> xProp(xNameCont->getByName(sFormComponent),uno::UNO_QUERY);
118  static const OUStringLiteral sModel(u"Model");
119  if ( xProp.is() && xProp->getPropertySetInfo()->hasPropertyByName(sModel) )
120  {
121  m_xChartModel.set(xProp->getPropertyValue(sModel),uno::UNO_QUERY);
122  if ( m_xChartModel.is() )
123  m_xFormComponent = m_xChartModel->getDataProvider();
124  }
125  }
126  m_xDataProvider.set(m_xFormComponent,uno::UNO_QUERY);
127  m_xReportComponent.set( xNameCont->getByName("ReportComponent"), uno::UNO_QUERY );
128  if ( m_xDataProvider.is() )
129  {
130  auto aNoConverter = std::make_shared<AnyConverter>();
131  TPropertyNamePair aPropertyMediation;
132  aPropertyMediation.emplace( PROPERTY_MASTERFIELDS, TPropertyConverter(PROPERTY_MASTERFIELDS,aNoConverter) );
133  aPropertyMediation.emplace( PROPERTY_DETAILFIELDS, TPropertyConverter(PROPERTY_DETAILFIELDS,aNoConverter) );
134 
135  m_xMasterDetails = new OPropertyMediator( m_xDataProvider, m_xReportComponent, aPropertyMediation,true );
136  }
137  }
138  catch(const uno::Exception &)
139  {
140  throw lang::NullPointerException();
141  }
142  if ( m_xFormComponent.is() )
143  {
144  m_xFormComponentHandler->inspect(m_xFormComponent);
145  }
146 }
147 
148 uno::Any SAL_CALL DataProviderHandler::getPropertyValue(const OUString & PropertyName)
149 {
150  ::osl::MutexGuard aGuard( m_aMutex );
151  uno::Any aPropertyValue;
152  const sal_Int32 nId = OPropertyInfoService::getPropertyId(PropertyName);
153  switch(nId)
154  {
156  // TODO: We need a possibility to get the UI of the selected chart type
157  // LEM: this business of ignoring ChartType seems very fishy!
158  //if( m_xChartModel.is() )
159  //{
160  // uno::Reference< chart2::XDiagram > xDiagram( m_xChartModel->getFirstDiagram() );
161  // if( xDiagram.is() )
162  // {
163  // OUString sChartTypes;
164  // uno::Reference< chart2::XCoordinateSystemContainer > xCooSysCnt( xDiagram, uno::UNO_QUERY_THROW );
165  // const uno::Sequence< uno::Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems());
166  // const uno::Reference< chart2::XCoordinateSystem >* pIter = aCooSysSeq.getConstArray();
167  // const uno::Reference< chart2::XCoordinateSystem >* pEnd = pIter + aCooSysSeq.getLength();
168  // for(;pIter != pEnd;++pIter)
169  // {
170  // const uno::Reference< chart2::XChartTypeContainer > xCTCnt( *pIter, uno::UNO_QUERY_THROW );
171  // const uno::Sequence< uno::Reference< chart2::XChartType > > aCTSeq( xCTCnt->getChartTypes());
172  // const uno::Reference< chart2::XChartType >* pChartTypeIter = aCTSeq.getConstArray();
173  // const uno::Reference< chart2::XChartType >* pChartTypeEnd = pChartTypeIter + aCTSeq.getLength();
174  // for(;pChartTypeIter != pChartTypeEnd;++pChartTypeIter)
175  // {
176  // sChartTypes += (*pChartTypeIter)->getChartType();
177  // sChartTypes += ";";
178  // }
179  // }
180  // aPropertyValue;// <<= sChartTypes;
181  // }
182  //}
183  break;
185  aPropertyValue <<= m_xDataProvider->getRowLimit();
186  break;
187  default:
188  aPropertyValue = m_xFormComponentHandler->getPropertyValue( PropertyName );
189  break;
190  }
191  return aPropertyValue;
192 }
193 
194 void SAL_CALL DataProviderHandler::setPropertyValue(const OUString & PropertyName, const uno::Any & Value)
195 {
196  ::osl::MutexGuard aGuard( m_aMutex );
197  const sal_Int32 nId = OPropertyInfoService::getPropertyId(PropertyName);
198  switch(nId)
199  {
201  break;
203  m_xDataProvider->setPropertyValue(PropertyName,Value);
204  break;
205  default:
206  m_xFormComponentHandler->setPropertyValue(PropertyName, Value);
207  break;
208  }
209 }
210 
211 void DataProviderHandler::impl_updateChartTitle_throw(const uno::Any& _aValue)
212 {
213  uno::Reference<chart2::XTitled> xTitled(m_xChartModel,uno::UNO_QUERY);
214  if ( !xTitled.is() )
215  return;
216 
217  uno::Reference<chart2::XTitle> xTitle = xTitled->getTitleObject();
218  if ( !xTitle.is() )
219  {
220  xTitle.set(m_xContext->getServiceManager()->createInstanceWithContext("com.sun.star.chart2.Title",m_xContext),uno::UNO_QUERY);
221  xTitled->setTitleObject(xTitle);
222  }
223  if ( xTitle.is() )
224  {
225  uno::Reference< chart2::XFormattedString2> xFormatted = chart2::FormattedString::create(m_xContext);
226  OUString sStr;
227  _aValue >>= sStr;
228  xFormatted->setString(sStr);
229  uno::Sequence< uno::Reference< chart2::XFormattedString> > aArgs(1);
230  aArgs[0] = xFormatted;
231  xTitle->setText(aArgs);
232  }
233 }
234 
235 beans::PropertyState SAL_CALL DataProviderHandler::getPropertyState(const OUString & PropertyName)
236 {
237  return m_xFormComponentHandler->getPropertyState(PropertyName);
238 }
239 
240 inspection::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 
275 uno::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 
303 uno::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 
334 void SAL_CALL DataProviderHandler::addPropertyChangeListener(const uno::Reference< beans::XPropertyChangeListener > & Listener)
335 {
336  m_xFormComponentHandler->addPropertyChangeListener(Listener);
337 }
338 
339 void SAL_CALL DataProviderHandler::removePropertyChangeListener(const uno::Reference< beans::XPropertyChangeListener > & _rxListener)
340 {
341  m_xFormComponentHandler->removePropertyChangeListener(_rxListener);
342 }
343 
344 uno::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 std::u16string_view 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 
368 uno::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 
374 uno::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 
382 sal_Bool SAL_CALL DataProviderHandler::isComposable( const OUString& _rPropertyName )
383 {
384  return OPropertyInfoService::isComposable( _rPropertyName, m_xFormComponentHandler );
385 }
386 
387 inspection::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 
414 void 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::makeAny( OUString( "all" ) ) );
431  aArgs.put( "HasCategories", uno::makeAny( true ) );
432  aArgs.put( "FirstCellAsLabel", uno::makeAny( true ) );
433  aArgs.put( "DataRowSource", uno::makeAny( 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 
462 sal_Bool SAL_CALL DataProviderHandler::suspend(sal_Bool Suspend)
463 {
464  return m_xFormComponentHandler->suspend(Suspend);
465 }
466 bool 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(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 
487 bool 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 
507 extern "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: */
#define PROPERTY_MASTERFIELDS
Definition: strings.hxx:56
bool hasValue()
osl::Mutex m_aMutex
#define PROPERTY_DETAILFIELDS
Definition: strings.hxx:57
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * reportdesign_DataProviderHandler_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
std::map< OUString, TPropertyConverter > TPropertyNamePair
Definition: RptDef.hxx:73
#define PROPERTY_PREVIEW_COUNT
Definition: strings.hxx:271
sal_Int16 nId
#define PROPERTY_ID_DETAILFIELDS
Definition: metadata.hxx:133
#define PROPERTY_ID_MASTERFIELDS
Definition: metadata.hxx:132
::std::pair< OUString, std::shared_ptr< AnyConverter > > TPropertyConverter
Definition: RptDef.hxx:72
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
#define PROPERTY_TITLE
Definition: strings.hxx:272
This class ensures the communication between two XPropertySet instances.
#define UID_RPT_PROP_DLG_LINKFIELDS
Definition: helpids.h:26
#define TOOLS_WARN_EXCEPTION(area, stream)
constexpr OUStringLiteral sModel
css::uno::Sequence< css::beans::PropertyValue > getPropertyValues() const
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
float u
unsigned char sal_Bool
#define PROPERTY_CHARTTYPE
Definition: strings.hxx:270
OUString RptResId(const char *pId)
static void getExcludeProperties(::std::vector< css::beans::Property > &_rExcludeProperties, const css::uno::Reference< css::inspection::XPropertyHandler > &_xFormComponentHandler)
Definition: metadata.cxx:230
::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler, css::lang::XServiceInfo > DataProviderHandler_Base
DataProviderHandler(css::uno::Reference< css::uno::XComponentContext > const &context)
#define UID_RPT_PROP_CHARTTYPE_DLG
Definition: helpids.h:25
bool put(const char *_pAsciiValueName, const VALUE_TYPE &_rValue)
Sequence< sal_Int8 > aSeq
::std::pair< MetaAction *, int > Component
Reference< XComponentContext > m_xContext
#define PROPERTY_COMMAND
Definition: strings.hxx:59
#define PROPERTY_ID_PREVIEW_COUNT
Definition: metadata.hxx:134
#define PROPERTY_ID_CHARTTYPE
Definition: metadata.hxx:131