Lines Matching refs:uno

54 …::SwVbaDocument( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XCo…  in SwVbaDocument()
58 SwVbaDocument::SwVbaDocument( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XCompone… in SwVbaDocument()
69 mxTextDocument.set( getModel(), uno::UNO_QUERY_THROW ); in Initialize()
72 uno::Reference< word::XRange > SAL_CALL
73 SwVbaDocument::getContent() throw ( uno::RuntimeException ) in getContent()
75 uno::Reference< text::XTextRange > xStart = mxTextDocument->getText()->getStart(); in getContent()
76 uno::Reference< text::XTextRange > xEnd; in getContent()
77 …return uno::Reference< word::XRange >( new SwVbaRange( this, mxContext, mxTextDocument, xStart, xE… in getContent()
80 uno::Reference< word::XRange > SAL_CALL
81 SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd ) throw ( uno::RuntimeException ) in Range()
93 uno::Reference< text::XTextRange > xStart; in Range()
94 uno::Reference< text::XTextRange > xEnd; in Range()
116 catch( uno::Exception ) in Range()
121 …return uno::Reference< word::XRange >( new SwVbaRange( this, mxContext, mxTextDocument, xStart, xE… in Range()
124 uno::Any SAL_CALL
125 SwVbaDocument::BuiltInDocumentProperties( const uno::Any& index ) throw (uno::RuntimeException) in BuiltInDocumentProperties()
127uno::Reference< XCollection > xCol( new SwVbaBuiltinDocumentProperties( mxParent, mxContext, getMo… in BuiltInDocumentProperties()
129 return xCol->Item( index, uno::Any() ); in BuiltInDocumentProperties()
130 return uno::makeAny( xCol ); in BuiltInDocumentProperties()
133 uno::Any SAL_CALL
134 SwVbaDocument::CustomDocumentProperties( const uno::Any& index ) throw (uno::RuntimeException) in CustomDocumentProperties()
136uno::Reference< XCollection > xCol( new SwVbaCustomDocumentProperties( mxParent, mxContext, getMod… in CustomDocumentProperties()
138 return xCol->Item( index, uno::Any() ); in CustomDocumentProperties()
139 return uno::makeAny( xCol ); in CustomDocumentProperties()
142 uno::Any SAL_CALL
143 SwVbaDocument::Bookmarks( const uno::Any& rIndex ) throw ( uno::RuntimeException ) in Bookmarks()
145uno::Reference< text::XBookmarksSupplier > xBookmarksSupplier( getModel(),uno::UNO_QUERY_THROW ); in Bookmarks()
146uno::Reference<container::XIndexAccess > xBookmarks( xBookmarksSupplier->getBookmarks(), uno::UNO_… in Bookmarks()
147uno::Reference< XCollection > xBookmarksVba( new SwVbaBookmarks( this, mxContext, xBookmarks, getM… in Bookmarks()
148 if ( rIndex.getValueTypeClass() == uno::TypeClass_VOID ) in Bookmarks()
149 return uno::makeAny( xBookmarksVba ); in Bookmarks()
151 return uno::Any( xBookmarksVba->Item( rIndex, uno::Any() ) ); in Bookmarks()
154 uno::Any SAL_CALL
155 SwVbaDocument::Variables( const uno::Any& rIndex ) throw ( uno::RuntimeException ) in Variables()
157uno::Reference< document::XDocumentPropertiesSupplier > xDocumentPropertiesSupplier( getModel(),un… in Variables()
158uno::Reference< document::XDocumentProperties > xDocumentProperties = xDocumentPropertiesSupplier… in Variables()
159uno::Reference< beans::XPropertyAccess > xUserDefined( xDocumentProperties->getUserDefinedProperti… in Variables()
161 uno::Reference< XCollection > xVariables( new SwVbaVariables( this, mxContext, xUserDefined ) ); in Variables()
162 if ( rIndex.getValueTypeClass() == uno::TypeClass_VOID ) in Variables()
163 return uno::makeAny( xVariables ); in Variables()
165 return uno::Any( xVariables->Item( rIndex, uno::Any() ) ); in Variables()
168 uno::Any SAL_CALL
169 SwVbaDocument::Paragraphs( const uno::Any& index ) throw (uno::RuntimeException) in Paragraphs()
171uno::Reference< XCollection > xCol( new SwVbaParagraphs( mxParent, mxContext, mxTextDocument ) ); in Paragraphs()
173 return xCol->Item( index, uno::Any() ); in Paragraphs()
174 return uno::makeAny( xCol ); in Paragraphs()
177 uno::Any SAL_CALL
178 SwVbaDocument::Styles( const uno::Any& index ) throw (uno::RuntimeException) in Styles()
180 uno::Reference< XCollection > xCol( new SwVbaStyles( mxParent, mxContext, getModel() ) ); in Styles()
182 return xCol->Item( index, uno::Any() ); in Styles()
183 return uno::makeAny( xCol ); in Styles()
186 uno::Any SAL_CALL
187 SwVbaDocument::Fields( const uno::Any& index ) throw (uno::RuntimeException) in Fields()
189 uno::Reference< XCollection > xCol( new SwVbaFields( mxParent, mxContext, getModel() ) ); in Fields()
191 return xCol->Item( index, uno::Any() ); in Fields()
192 return uno::makeAny( xCol ); in Fields()
195 uno::Any SAL_CALL
196 SwVbaDocument::Shapes( const uno::Any& index ) throw (uno::RuntimeException) in Shapes()
198uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( getModel(), uno::UNO_QUERY_THROW ); in Shapes()
200uno::Reference< container::XIndexAccess > xIndexAccess( xDrawPageSupplier->getDrawPage(), uno::UNO… in Shapes()
201 uno::Reference< frame::XModel > xModel( mxTextDocument, uno::UNO_QUERY_THROW ); in Shapes()
202 uno::Reference< XCollection > xCol( new ScVbaShapes( this, mxContext, xIndexAccess, xModel ) ); in Shapes()
205 return xCol->Item( index, uno::Any() ); in Shapes()
206 return uno::makeAny( xCol ); in Shapes()
209 uno::Any SAL_CALL
210 SwVbaDocument::Sections( const uno::Any& index ) throw (uno::RuntimeException) in Sections()
212 uno::Reference< XCollection > xCol( new SwVbaSections( mxParent, mxContext, getModel() ) ); in Sections()
214 return xCol->Item( index, uno::Any() ); in Sections()
215 return uno::makeAny( xCol ); in Sections()
218 uno::Any SAL_CALL
219 SwVbaDocument::PageSetup( ) throw (uno::RuntimeException) in PageSetup()
221uno::Reference< beans::XPropertySet > xPageProps( word::getCurrentPageStyle( mxModel ), uno::UNO_Q… in PageSetup()
222 …return uno::makeAny( uno::Reference< word::XPageSetup >( new SwVbaPageSetup( this, mxContext, mxMo… in PageSetup()
231 uno::Any SAL_CALL
232 SwVbaDocument::getAttachedTemplate() throw (uno::RuntimeException) in getAttachedTemplate()
234 uno::Reference< word::XTemplate > xTemplate; in getAttachedTemplate()
235uno::Reference< document::XDocumentInfoSupplier > xDocInfoSupp( getModel(), uno::UNO_QUERY_THROW ); in getAttachedTemplate()
236uno::Reference< document::XDocumentPropertiesSupplier > xDocPropSupp( xDocInfoSupp->getDocumentInf… in getAttachedTemplate()
237uno::Reference< document::XDocumentProperties > xDocProps( xDocPropSupp->getDocumentProperties(), in getAttachedTemplate()
241 return uno::makeAny( xTemplate ); in getAttachedTemplate()
245 SwVbaDocument::setAttachedTemplate( const css::uno::Any& /*_attachedtemplate*/ ) throw (uno::Runtim… in setAttachedTemplate()
247 throw uno::RuntimeException(); in setAttachedTemplate()
250 uno::Any SAL_CALL
251 SwVbaDocument::Tables( const css::uno::Any& aIndex ) throw (uno::RuntimeException) in Tables()
253 uno::Reference< frame::XModel > xModel( mxTextDocument, uno::UNO_QUERY_THROW ); in Tables()
254 uno::Reference< XCollection > xColl( new SwVbaTables( mxParent, mxContext, xModel ) ); in Tables()
257 return xColl->Item( aIndex, uno::Any() ); in Tables()
258 return uno::makeAny( xColl ); in Tables()
261 void SAL_CALL SwVbaDocument::Activate() throw (uno::RuntimeException) in Activate()
266 uno::Any
269uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( mxTextDocument, uno::UNO_QUERY_THR… in getControlShape()
270uno::Reference< container::XIndexAccess > xIndexAccess( xDrawPageSupplier->getDrawPage(), uno::UNO… in getControlShape()
275 uno::Any aUnoObj = xIndexAccess->getByIndex( index ); in getControlShape()
277 uno::Reference< drawing::XControlShape > xControlShape( aUnoObj, uno::UNO_QUERY ); in getControlShape()
280uno::Reference< container::XNamed > xNamed( xControlShape->getControl(), uno::UNO_QUERY_THROW ); in getControlShape()
287 return uno::Any(); in getControlShape()
290 uno::Reference< beans::XIntrospectionAccess > SAL_CALL
291 SwVbaDocument::getIntrospection( ) throw (uno::RuntimeException) in getIntrospection()
293 return uno::Reference< beans::XIntrospectionAccess >(); in getIntrospection()
296 uno::Any SAL_CALL
297uno::Sequence< uno::Any >& /*aParams*/, uno::Sequence< ::sal_Int16 >& /*aOutParamIndex*/, uno::Seq… in invoke()
302 throw uno::RuntimeException(); // unsupported operation in invoke()
306 …, const uno::Any& /*aValue*/ ) throw (beans::UnknownPropertyException, script::CannotConvertExcept… in setValue()
308 throw uno::RuntimeException(); // unsupported operation in setValue()
310 uno::Any SAL_CALL
311 …nst ::rtl::OUString& aPropertyName ) throw (beans::UnknownPropertyException, uno::RuntimeException) in getValue()
313uno::Reference< drawing::XControlShape > xControlShape( getControlShape( aPropertyName ), uno::UNO… in getValue()
315uno::Reference<lang::XMultiComponentFactory > xServiceManager( mxContext->getServiceManager(), uno in getValue()
316uno::Reference< XControlProvider > xControlProvider( xServiceManager->createInstanceWithContext( r… in getValue()
317uno::Reference< msforms::XControl > xControl( xControlProvider->createControl( xControlShape, get… in getValue()
318 return uno::makeAny( xControl ); in getValue()
322 SwVbaDocument::hasMethod( const ::rtl::OUString& /*aName*/ ) throw (uno::RuntimeException) in hasMethod()
328 SwVbaDocument::hasProperty( const ::rtl::OUString& aName ) throw (uno::RuntimeException) in hasProperty()
330 uno::Reference< container::XNameAccess > xFormControls( getFormControls() ); in hasProperty()
336 uno::Reference< container::XNameAccess >
339 uno::Reference< container::XNameAccess > xFormControls; in getFormControls()
342uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( mxTextDocument, uno::UNO_QUERY_THR… in getFormControls()
343uno::Reference< form::XFormsSupplier > xFormSupplier( xDrawPageSupplier->getDrawPage(), uno::UNO_… in getFormControls()
344uno::Reference< container::XIndexAccess > xIndexAccess( xFormSupplier->getForms(), uno::UNO_QUERY_… in getFormControls()
348 xFormControls.set( xIndexAccess->getByIndex(0), uno::UNO_QUERY_THROW ); in getFormControls()
350 catch( uno::Exception& ) in getFormControls()
356 uno::Sequence< rtl::OUString >
359 static uno::Sequence< rtl::OUString > aServiceNames; in getServiceNames()