Lines Matching refs:uno

49 inline bool lclGetProperty( Type& orValue, const uno::Reference< beans::XPropertySet >& rxPropSet, …  in lclGetProperty()
55 catch( uno::Exception& ) in lclGetProperty()
62 inline double lclPointsToHmm( const uno::Any& rPoints ) throw (uno::RuntimeException) in lclPointsToHmm()
82 const uno::Reference< XHelperInterface >& rxParent,
83 const uno::Reference< uno::XComponentContext >& rxContext,
84 const uno::Reference< frame::XModel >& rxModel,
85 const uno::Reference< sheet::XSpreadsheet >& rxSheet,
86 const uno::Type& rVbaType ) throw (uno::RuntimeException);
89 inline const uno::Reference< XHelperInterface >& getParent() const { return mxParent; } in getParent()
91 inline const uno::Reference< uno::XComponentContext >& getContext() const { return mxContext; } in getContext()
93 inline const uno::Type& getVbaType() const { return maVbaType; } in getVbaType()
97 void collectShapes() throw (uno::RuntimeException);
99uno::Reference< drawing::XShape > createShape( const awt::Point& rPos, const awt::Size& rSize ) th…
101 …sal_Int32 insertShape( const uno::Reference< drawing::XShape >& rxShape ) throw (uno::RuntimeExcep…
103 …e< ScVbaSheetObjectBase > createVbaObject( const uno::Reference< drawing::XShape >& rxShape ) thro…
105 uno::Any createCollectionObject( const uno::Any& rSource ) throw (uno::RuntimeException);
107 uno::Any getItemByStringIndex( const OUString& rIndex ) throw (uno::RuntimeException);
110 virtual sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException);
111 …virtual uno::Any SAL_CALL getByIndex( sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException, l…
114 virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException);
115 virtual sal_Bool SAL_CALL hasElements() throw (uno::RuntimeException);
119 virtual bool implPickShape( const uno::Reference< drawing::XShape >& rxShape ) const = 0;
121 …ScVbaSheetObjectBase* implCreateVbaObject( const uno::Reference< drawing::XShape >& rxShape ) thro…
126 …virtual OUString implGetShapeName( const uno::Reference< drawing::XShape >& rxShape ) const throw …
128 …virtual void implOnShapeCreated( const uno::Reference< drawing::XShape >& rxShape ) throw (uno::Ru…
130 …virtual void implOnShapeInserted( const uno::Reference< drawing::XShape >& rxShape ) throw (uno::R…
133 uno::Reference< XHelperInterface > mxParent;
134 uno::Reference< uno::XComponentContext > mxContext;
135 uno::Reference< frame::XModel > mxModel;
136 uno::Reference< lang::XMultiServiceFactory > mxFactory;
137 uno::Reference< drawing::XShapes > mxShapes;
140 typedef ::std::vector< uno::Reference< drawing::XShape > > ShapeVector;
141 const uno::Type maVbaType;
148 const uno::Reference< XHelperInterface >& rxParent, in ScVbaObjectContainer()
149 const uno::Reference< uno::XComponentContext >& rxContext, in ScVbaObjectContainer()
150 const uno::Reference< frame::XModel >& rxModel, in ScVbaObjectContainer()
151 const uno::Reference< sheet::XSpreadsheet >& rxSheet, in ScVbaObjectContainer()
152 const uno::Type& rVbaType ) throw (uno::RuntimeException) : in ScVbaObjectContainer()
155 mxModel( rxModel, uno::UNO_SET_THROW ), in ScVbaObjectContainer()
156 mxFactory( rxModel, uno::UNO_QUERY_THROW ), in ScVbaObjectContainer()
159 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupp( rxSheet, uno::UNO_QUERY_THROW ); in ScVbaObjectContainer()
160 mxShapes.set( xDrawPageSupp->getDrawPage(), uno::UNO_QUERY_THROW ); in ScVbaObjectContainer()
163 void ScVbaObjectContainer::collectShapes() throw (uno::RuntimeException) in collectShapes()
168uno::Reference< drawing::XShape > xShape( mxShapes->getByIndex( nIndex ), uno::UNO_QUERY_THROW ); in collectShapes()
174 uno::Reference< drawing::XShape > ScVbaObjectContainer::createShape( const awt::Point& rPos, const … in createShape()
176uno::Reference< drawing::XShape > xShape( mxFactory->createInstance( implGetShapeServiceName() ), in createShape()
183 …l_Int32 ScVbaObjectContainer::insertShape( const uno::Reference< drawing::XShape >& rxShape ) thro… in insertShape()
192 const uno::Reference< drawing::XShape >& rxShape ) throw (uno::RuntimeException) in createVbaObject()
197 uno::Any ScVbaObjectContainer::createCollectionObject( const uno::Any& rSource ) throw (uno::Runtim… in createCollectionObject()
199 uno::Reference< drawing::XShape > xShape( rSource, uno::UNO_QUERY_THROW ); in createCollectionObject()
200 uno::Reference< excel::XSheetObject > xSheetObject( implCreateVbaObject( xShape ) ); in createCollectionObject()
201 return uno::Any( xSheetObject ); in createCollectionObject()
204 uno::Any ScVbaObjectContainer::getItemByStringIndex( const OUString& rIndex ) throw (uno::RuntimeEx… in getItemByStringIndex()
208 return createCollectionObject( uno::Any( *aIt ) ); in getItemByStringIndex()
209 throw uno::RuntimeException(); in getItemByStringIndex()
214 sal_Int32 SAL_CALL ScVbaObjectContainer::getCount() throw (uno::RuntimeException) in getCount()
219 uno::Any SAL_CALL ScVbaObjectContainer::getByIndex( sal_Int32 nIndex ) in getByIndex()
220 throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException) in getByIndex()
223 return uno::Any( maShapes[ static_cast< size_t >( nIndex ) ] ); in getByIndex()
229 uno::Type SAL_CALL ScVbaObjectContainer::getElementType() throw (uno::RuntimeException) in getElementType()
234 sal_Bool SAL_CALL ScVbaObjectContainer::hasElements() throw (uno::RuntimeException) in hasElements()
241 …ScVbaObjectContainer::implGetShapeName( const uno::Reference< drawing::XShape >& rxShape ) const t… in implGetShapeName()
243 uno::Reference< beans::XPropertySet > xPropSet( rxShape, uno::UNO_QUERY_THROW ); in implGetShapeName()
247 …cVbaObjectContainer::implOnShapeCreated( const uno::Reference< drawing::XShape >& /*rxShape*/ ) th… in implOnShapeCreated()
251 …VbaObjectContainer::implOnShapeInserted( const uno::Reference< drawing::XShape >& /*rxShape*/ ) th… in implOnShapeInserted()
261 virtual uno::Any createCollectionObject( const uno::Any& rSource );
275 uno::Any ScVbaObjectEnumeration::createCollectionObject( const uno::Any& rSource ) in createCollectionObject()
282 …SheetObjectsBase( const ScVbaObjectContainerRef& rxContainer ) throw (css::uno::RuntimeException) : in ScVbaSheetObjectsBase()
293 void ScVbaSheetObjectsBase::collectShapes() throw (uno::RuntimeException) in collectShapes()
300 uno::Reference< container::XEnumeration > SAL_CALL ScVbaSheetObjectsBase::createEnumeration() throw… in createEnumeration()
307 uno::Type SAL_CALL ScVbaSheetObjectsBase::getElementType() throw (uno::RuntimeException) in getElementType()
314 uno::Any ScVbaSheetObjectsBase::createCollectionObject( const uno::Any& rSource ) in createCollectionObject()
319 uno::Any ScVbaSheetObjectsBase::getItemByStringIndex( const OUString& rIndex ) throw (uno::RuntimeE… in getItemByStringIndex()
328 …VbaGraphicObjectsBase( const ScVbaObjectContainerRef& rxContainer ) throw (uno::RuntimeException) : in ScVbaGraphicObjectsBase()
335 uno::Any SAL_CALL ScVbaGraphicObjectsBase::Add( const uno::Any& rLeft, const uno::Any& rTop, const in Add()
344 throw uno::RuntimeException(); in Add()
347uno::Reference< drawing::XShape > xShape( mxContainer->createShape( aPos, aSize ), uno::UNO_SET_TH… in Add()
353 return uno::Any( uno::Reference< excel::XSheetObject >( xVbaObject.get() ) ); in Add()
364 const uno::Reference< XHelperInterface >& rxParent,
365 const uno::Reference< uno::XComponentContext >& rxContext,
366 const uno::Reference< frame::XModel >& rxModel,
367 const uno::Reference< sheet::XSpreadsheet >& rxSheet,
368 const uno::Type& rVbaType,
370 sal_Int16 nComponentType ) throw (uno::RuntimeException);
373 uno::Reference< container::XIndexContainer > createForm() throw (uno::RuntimeException);
375 virtual bool implPickShape( const uno::Reference< drawing::XShape >& rxShape ) const;
377 …virtual bool implCheckProperties( const uno::Reference< beans::XPropertySet >& rxModelProps ) cons…
378 …virtual OUString implGetShapeName( const uno::Reference< drawing::XShape >& rxShape ) const throw …
379 …virtual void implOnShapeCreated( const uno::Reference< drawing::XShape >& rxShape ) throw (uno::Ru…
382 uno::Reference< container::XIndexContainer > mxFormIC;
390 const uno::Reference< XHelperInterface >& rxParent, in ScVbaControlContainer()
391 const uno::Reference< uno::XComponentContext >& rxContext, in ScVbaControlContainer()
392 const uno::Reference< frame::XModel >& rxModel, in ScVbaControlContainer()
393 const uno::Reference< sheet::XSpreadsheet >& rxSheet, in ScVbaControlContainer()
394 const uno::Type& rVbaType, in ScVbaControlContainer()
396 sal_Int16 nComponentType ) throw (uno::RuntimeException) : in ScVbaControlContainer()
403 uno::Reference< container::XIndexContainer > ScVbaControlContainer::createForm() throw (uno::Runtim… in createForm()
407 uno::Reference< form::XFormsSupplier > xFormsSupp( mxShapes, uno::UNO_QUERY_THROW ); in createForm()
408uno::Reference< container::XNameContainer > xFormsNC( xFormsSupp->getForms(), uno::UNO_SET_THROW ); in createForm()
412 mxFormIC.set( xFormsNC->getByName( aFormName ), uno::UNO_QUERY_THROW ); in createForm()
416uno::Reference< form::XForm > xForm( mxFactory->createInstance( CREATE_OUSTRING( "com.sun.star.for… in createForm()
417 xFormsNC->insertByName( aFormName, uno::Any( xForm ) ); in createForm()
418 mxFormIC.set( xForm, uno::UNO_QUERY_THROW ); in createForm()
424 bool ScVbaControlContainer::implPickShape( const uno::Reference< drawing::XShape >& rxShape ) const in implPickShape()
428 uno::Reference< drawing::XControlShape > xControlShape( rxShape, uno::UNO_QUERY_THROW ); in implPickShape()
429uno::Reference< beans::XPropertySet > xModelProps( xControlShape->getControl(), uno::UNO_QUERY_THR… in implPickShape()
434 catch( uno::Exception& ) in implPickShape()
445 bool ScVbaControlContainer::implCheckProperties( const uno::Reference< beans::XPropertySet >& /*rxM… in implCheckProperties()
450 …cVbaControlContainer::implGetShapeName( const uno::Reference< drawing::XShape >& rxShape ) const t… in implGetShapeName()
452 uno::Reference< drawing::XControlShape > xControlShape( rxShape, uno::UNO_QUERY_THROW ); in implGetShapeName()
453 …return uno::Reference< container::XNamed >( xControlShape->getControl(), uno::UNO_QUERY_THROW )->g… in implGetShapeName()
456 …ScVbaControlContainer::implOnShapeCreated( const uno::Reference< drawing::XShape >& rxShape ) thro… in implOnShapeCreated()
459 uno::Reference< drawing::XControlShape > xControlShape( rxShape, uno::UNO_QUERY_THROW ); in implOnShapeCreated()
462uno::Reference< form::XFormComponent > xFormComponent( mxFactory->createInstance( maModelServiceNa… in implOnShapeCreated()
463 uno::Reference< awt::XControlModel > xControlModel( xFormComponent, uno::UNO_QUERY_THROW ); in implOnShapeCreated()
467 mxFormIC->insertByIndex( mxFormIC->getCount(), uno::Any( xFormComponent ) ); in implOnShapeCreated()
479 const uno::Reference< XHelperInterface >& rxParent,
480 const uno::Reference< uno::XComponentContext >& rxContext,
481 const uno::Reference< frame::XModel >& rxModel,
482 const uno::Reference< sheet::XSpreadsheet >& rxSheet ) throw (uno::RuntimeException);
485 …ScVbaSheetObjectBase* implCreateVbaObject( const uno::Reference< drawing::XShape >& rxShape ) thro…
486 …virtual bool implCheckProperties( const uno::Reference< beans::XPropertySet >& rxModelProps ) cons…
492 const uno::Reference< XHelperInterface >& rxParent, in ScVbaButtonContainer()
493 const uno::Reference< uno::XComponentContext >& rxContext, in ScVbaButtonContainer()
494 const uno::Reference< frame::XModel >& rxModel, in ScVbaButtonContainer()
495 const uno::Reference< sheet::XSpreadsheet >& rxSheet ) throw (uno::RuntimeException) : in ScVbaButtonContainer()
504 …ScVbaButtonContainer::implCreateVbaObject( const uno::Reference< drawing::XShape >& rxShape ) thro… in implCreateVbaObject()
506 uno::Reference< drawing::XControlShape > xControlShape( rxShape, uno::UNO_QUERY_THROW ); in implCreateVbaObject()
510 bool ScVbaButtonContainer::implCheckProperties( const uno::Reference< beans::XPropertySet >& rxMode… in implCheckProperties()
520 const uno::Reference< XHelperInterface >& rxParent, in ScVbaButtons()
521 const uno::Reference< uno::XComponentContext >& rxContext, in ScVbaButtons()
522 const uno::Reference< frame::XModel >& rxModel, in ScVbaButtons()
523 const uno::Reference< sheet::XSpreadsheet >& rxSheet ) throw (uno::RuntimeException) : in ScVbaButtons()