LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwVbaFields Class Reference

#include <vbafield.hxx>

Inheritance diagram for SwVbaFields:
[legend]
Collaboration diagram for SwVbaFields:
[legend]

Public Member Functions

 SwVbaFields (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XModel > &xModel)
 
virtual css::uno::Reference< ::ooo::vba::word::XField > SAL_CALL Add (const css::uno::Reference< ::ooo::vba::word::XRange > &Range, const css::uno::Any &Type, const css::uno::Any &Text, const css::uno::Any &PreserveFormatting) override
 
virtual sal_Int32 SAL_CALL Update () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Any createCollectionObject (const css::uno::Any &aSource) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
- Public Member Functions inherited from CollTestImplHelper< Ifc >
 CollTestImplHelper (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess, bool bIgnoreCase=false)
 
- Public Member Functions inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >
 ScVbaCollectionBase (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess, bool bIgnoreCase=false)
 
virtual ::sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL Item (const css::uno::Any &Index1, const css::uno::Any &) override
 
OUString SAL_CALL getDefaultMethodName () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< Ifc... >
 InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ::sal_Int32 SAL_CALL getCreator () override
 
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent () override
 
virtual css::uno::Any SAL_CALL Application () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

css::uno::Reference< css::text::XTextField > Create_Field_FileName (const OUString &rText)
 
css::uno::Reference< css::text::XTextField > Create_Field_DocProperty (const OUString &_text)
 

Private Attributes

css::uno::Reference< css::frame::XModel > mxModel
 
css::uno::Reference< css::lang::XMultiServiceFactory > mxMSF
 

Additional Inherited Members

- Protected Member Functions inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >
virtual css::uno::Any getItemByStringIndex (const OUString &sIndex)
 
virtual css::uno::Any getItemByIntIndex (const sal_Int32 nIndex)
 
void UpdateCollectionIndex (const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess)
 
- Protected Attributes inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >
css::uno::Reference< css::container::XIndexAccess > m_xIndexAccess
 
css::uno::Reference< css::container::XNameAccess > m_xNameAccess
 
bool const mbIgnoreCase
 
- Protected Attributes inherited from InheritedHelperInterfaceImpl< Ifc... >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 45 of file vbafield.hxx.

Constructor & Destructor Documentation

SwVbaFields::SwVbaFields ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::frame::XModel > &  xModel 
)

Definition at line 301 of file vbafield.cxx.

References mxModel, mxModel, mxMSF, and Reference.

Member Function Documentation

uno::Reference< word::XField > SAL_CALL SwVbaFields::Add ( const css::uno::Reference< ::ooo::vba::word::XRange > &  Range,
const css::uno::Any &  Type,
const css::uno::Any &  Text,
const css::uno::Any &  PreserveFormatting 
)
overridevirtual
uno::Reference< text::XTextField > SwVbaFields::Create_Field_DocProperty ( const OUString &  _text)
private
Exceptions
css::uno::RuntimeException

Definition at line 412 of file vbafield.cxx.

References SwVbaReadFieldParams::GetResult(), mxMSF, SAL_INFO, DocPropertyTable::sDocPropertyName, and SwVbaReadFieldParams::SkipToNextToken().

Referenced by Add().

uno::Reference< text::XTextField > SwVbaFields::Create_Field_FileName ( const OUString &  rText)
private
Exceptions
css::uno::RuntimeException
css::script::BasicErrorException

Definition at line 343 of file vbafield.cxx.

References ERRCODE_BASIC_BAD_ARGUMENT, mxMSF, and SwVbaReadFieldParams::SkipToNextToken().

Referenced by Add().

uno::Any SwVbaFields::createCollectionObject ( const css::uno::Any &  aSource)
overridevirtual
uno::Reference< container::XEnumeration > SAL_CALL SwVbaFields::createEnumeration ( )
overridevirtual
uno::Type SAL_CALL SwVbaFields::getElementType ( )
overridevirtual
OUString SwVbaFields::getServiceImplName ( )
overridevirtual

Implements InheritedHelperInterfaceImpl< Ifc... >.

Definition at line 505 of file vbafield.cxx.

uno::Sequence< OUString > SwVbaFields::getServiceNames ( )
overridevirtual

Implements InheritedHelperInterfaceImpl< Ifc... >.

Definition at line 518 of file vbafield.cxx.

sal_Int32 SAL_CALL SwVbaFields::Update ( )
overridevirtual

Definition at line 486 of file vbafield.cxx.

References mxModel.

Member Data Documentation

css::uno::Reference< css::frame::XModel > SwVbaFields::mxModel
private

Definition at line 47 of file vbafield.hxx.

Referenced by createCollectionObject(), SwVbaFields(), and Update().

css::uno::Reference< css::lang::XMultiServiceFactory > SwVbaFields::mxMSF
private

Definition at line 48 of file vbafield.hxx.

Referenced by Create_Field_DocProperty(), Create_Field_FileName(), and SwVbaFields().


The documentation for this class was generated from the following files: