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

#include <vbadocument.hxx>

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

Public Member Functions

 SwVbaDocument (const css::uno::Reference< ooo::vba::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &m_xContext, css::uno::Reference< css::frame::XModel > const &xModel)
 
 SwVbaDocument (css::uno::Sequence< css::uno::Any > const &aArgs, css::uno::Reference< css::uno::XComponentContext >const &xContext)
 
virtual ~SwVbaDocument () override
 
sal_uInt32 AddSink (const css::uno::Reference< ooo::vba::XSink > &xSink)
 
void RemoveSink (sal_uInt32 nNumber)
 
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL getContent () override
 
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL Range (const css::uno::Any &rStart, const css::uno::Any &rEnd) override
 
virtual css::uno::Any SAL_CALL BuiltInDocumentProperties (const css::uno::Any &index) override
 
virtual css::uno::Any SAL_CALL CustomDocumentProperties (const css::uno::Any &index) override
 
virtual css::uno::Any SAL_CALL Bookmarks (const css::uno::Any &rIndex) override
 
virtual css::uno::Any SAL_CALL Variables (const css::uno::Any &rIndex) override
 
virtual css::uno::Any SAL_CALL getAttachedTemplate () override
 
virtual void SAL_CALL setAttachedTemplate (const css::uno::Any &_attachedtemplate) override
 
virtual css::uno::Any SAL_CALL Paragraphs (const css::uno::Any &rIndex) override
 
virtual css::uno::Any SAL_CALL Styles (const css::uno::Any &rIndex) override
 
virtual css::uno::Any SAL_CALL Tables (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Fields (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Shapes (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Sections (const css::uno::Any &aIndex) override
 
virtual void SAL_CALL Activate () override
 
virtual css::uno::Any SAL_CALL PageSetup () override
 
virtual css::uno::Any SAL_CALL TablesOfContents (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL FormFields (const css::uno::Any &aIndex) override
 
virtual ::sal_Int32 SAL_CALL getProtectionType () override
 
virtual void SAL_CALL setProtectionType (::sal_Int32 _protectiontype) override
 
virtual sal_Bool SAL_CALL getUpdateStylesOnOpen () override
 
virtual void SAL_CALL setUpdateStylesOnOpen (sal_Bool _updatestylesonopen) override
 
virtual sal_Bool SAL_CALL getAutoHyphenation () override
 
virtual void SAL_CALL setAutoHyphenation (sal_Bool _autohyphenation) override
 
virtual ::sal_Int32 SAL_CALL getHyphenationZone () override
 
virtual void SAL_CALL setHyphenationZone (::sal_Int32 _hyphenationzone) override
 
virtual ::sal_Int32 SAL_CALL getConsecutiveHyphensLimit () override
 
virtual void SAL_CALL setConsecutiveHyphensLimit (::sal_Int32 _consecutivehyphenslimit) override
 
virtual css::uno::Reference< ooo::vba::word::XMailMerge > SAL_CALL getMailMerge () override
 
virtual void SAL_CALL Protect (::sal_Int32 Type, const css::uno::Any &NOReset, const css::uno::Any &Password, const css::uno::Any &UseIRM, const css::uno::Any &EnforceStyleLock) override
 
virtual void SAL_CALL PrintOut (const css::uno::Any &Background, const css::uno::Any &Append, const css::uno::Any &Range, const css::uno::Any &OutputFileName, const css::uno::Any &From, const css::uno::Any &To, const css::uno::Any &Item, const css::uno::Any &Copies, const css::uno::Any &Pages, const css::uno::Any &PageType, const css::uno::Any &PrintToFile, const css::uno::Any &Collate, const css::uno::Any &FileName, const css::uno::Any &ActivePrinterMacGX, const css::uno::Any &ManualDuplexPrint, const css::uno::Any &PrintZoomColumn, const css::uno::Any &PrintZoomRow, const css::uno::Any &PrintZoomPaperWidth, const css::uno::Any &PrintZoomPaperHeight) override
 
virtual void SAL_CALL PrintPreview () override
 
virtual void SAL_CALL ClosePrintPreview () override
 
virtual css::uno::Any SAL_CALL Revisions (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Frames (const css::uno::Any &aIndex) override
 
virtual void SAL_CALL SaveAs2000 (const css::uno::Any &FileName, const css::uno::Any &FileFormat, const css::uno::Any &LockComments, const css::uno::Any &Password, const css::uno::Any &AddToRecentFiles, const css::uno::Any &WritePassword, const css::uno::Any &ReadOnlyRecommended, const css::uno::Any &EmbedTrueTypeFonts, const css::uno::Any &SaveNativePictureFormat, const css::uno::Any &SaveFormsData, const css::uno::Any &SaveAsAOCELetter) override
 
virtual void SAL_CALL SaveAs (const css::uno::Any &FileName, const css::uno::Any &FileFormat, const css::uno::Any &LockComments, const css::uno::Any &Password, const css::uno::Any &AddToRecentFiles, const css::uno::Any &WritePassword, const css::uno::Any &ReadOnlyRecommended, const css::uno::Any &EmbedTrueTypeFonts, const css::uno::Any &SaveNativePictureFormat, const css::uno::Any &SaveFormsData, const css::uno::Any &SaveAsAOCELetter, const css::uno::Any &Encoding, const css::uno::Any &InsertLineBreaks, const css::uno::Any &AllowSubstitutions, const css::uno::Any &LineEnding, const css::uno::Any &AddBiDiMarks) override
 
virtual void SAL_CALL Close (const css::uno::Any &SaveChanges, const css::uno::Any &OriginalFormat, const css::uno::Any &RouteDocument) override
 
virtual void SAL_CALL SavePreviewPngAs (const css::uno::Any &FileName) override
 
virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection () override
 
virtual css::uno::Any SAL_CALL invoke (const OUString &aFunctionName, const css::uno::Sequence< css::uno::Any > &aParams, css::uno::Sequence< ::sal_Int16 > &aOutParamIndex, css::uno::Sequence< css::uno::Any > &aOutParam) override
 
virtual void SAL_CALL setValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getValue (const OUString &aPropertyName) override
 
virtual sal_Bool SAL_CALL hasMethod (const OUString &aName) override
 
virtual sal_Bool SAL_CALL hasProperty (const OUString &aName) override
 
virtual OUString SAL_CALL getIID () override
 
virtual OUString SAL_CALL GetIIDForClassItselfNotCoclass () override
 
virtual ov::TypeAndIID SAL_CALL GetConnectionPoint () override
 
virtual css::uno::Reference< ov::XConnectionPoint > SAL_CALL FindConnectionPoint () override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
virtual void SAL_CALL CallSinks (const OUString &Method, css::uno::Sequence< css::uno::Any > &Arguments) override
 

Private Member Functions

void Initialize ()
 
css::uno::Any getControlShape (const OUString &sName)
 
css::uno::Reference< css::container::XNameAccess > getFormControls () const
 

Private Attributes

css::uno::Reference< css::text::XTextDocument > mxTextDocument
 
std::vector< css::uno::Reference< ooo::vba::XSink > > mvSinks
 

Detailed Description

Definition at line 33 of file vbadocument.hxx.

Constructor & Destructor Documentation

SwVbaDocument::SwVbaDocument ( const css::uno::Reference< ooo::vba::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  m_xContext,
css::uno::Reference< css::frame::XModel > const &  xModel 
)
SwVbaDocument::SwVbaDocument ( css::uno::Sequence< css::uno::Any > const &  aArgs,
css::uno::Reference< css::uno::XComponentContext >const &  xContext 
)
SwVbaDocument::~SwVbaDocument ( )
overridevirtual

Definition at line 93 of file vbadocument.cxx.

Member Function Documentation

void SAL_CALL SwVbaDocument::Activate ( )
overridevirtual

Definition at line 341 of file vbadocument.cxx.

References VbaDocumentBase::Activate().

sal_uInt32 SwVbaDocument::AddSink ( const css::uno::Reference< ooo::vba::XSink > &  xSink)
uno::Any SAL_CALL SwVbaDocument::Bookmarks ( const css::uno::Any &  rIndex)
overridevirtual

Definition at line 191 of file vbadocument.cxx.

References mxContext.

uno::Any SAL_CALL SwVbaDocument::BuiltInDocumentProperties ( const css::uno::Any &  index)
overridevirtual

Definition at line 173 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, and mxParent.

void SAL_CALL SwVbaDocument::CallSinks ( const OUString &  Method,
css::uno::Sequence< css::uno::Any > &  Arguments 
)
overridevirtual

Definition at line 662 of file vbadocument.cxx.

References i, and mvSinks.

void SAL_CALL SwVbaDocument::Close ( const css::uno::Any &  SaveChanges,
const css::uno::Any &  OriginalFormat,
const css::uno::Any &  RouteDocument 
)
overridevirtual

Definition at line 523 of file vbadocument.cxx.

References VbaDocumentBase::Close().

void SAL_CALL SwVbaDocument::ClosePrintPreview ( )
overridevirtual

Definition at line 432 of file vbadocument.cxx.

References dispatchRequests(), and mxModel.

uno::Any SAL_CALL SwVbaDocument::CustomDocumentProperties ( const css::uno::Any &  index)
overridevirtual

Definition at line 182 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, and mxParent.

uno::Any SAL_CALL SwVbaDocument::Fields ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 235 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, and mxParent.

uno::Reference< XConnectionPoint > SAL_CALL SwVbaDocument::FindConnectionPoint ( )
overridevirtual

Definition at line 672 of file vbadocument.cxx.

uno::Any SAL_CALL SwVbaDocument::FormFields ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 275 of file vbadocument.cxx.

uno::Any SAL_CALL SwVbaDocument::Frames ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 449 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, and mxTextDocument.

uno::Any SAL_CALL SwVbaDocument::getAttachedTemplate ( )
overridevirtual

Definition at line 295 of file vbadocument.cxx.

References mxContext.

sal_Bool SAL_CALL SwVbaDocument::getAutoHyphenation ( )
overridevirtual

Definition at line 368 of file vbadocument.cxx.

References ooo::vba::word::getDefaultParagraphStyle().

TypeAndIID SAL_CALL SwVbaDocument::GetConnectionPoint ( )
overridevirtual

Definition at line 649 of file vbadocument.cxx.

sal_Int32 SAL_CALL SwVbaDocument::getConsecutiveHyphensLimit ( )
override

Definition at line 395 of file vbadocument.cxx.

References ooo::vba::word::getDefaultParagraphStyle().

uno::Reference< word::XRange > SAL_CALL SwVbaDocument::getContent ( )
overridevirtual

Definition at line 121 of file vbadocument.cxx.

References mxContext, and mxTextDocument.

Referenced by Range().

uno::Any SwVbaDocument::getControlShape ( const OUString &  sName)
private

Definition at line 545 of file vbadocument.cxx.

References index, mxTextDocument, and nCount.

Referenced by getValue().

uno::Reference< container::XNameAccess > SwVbaDocument::getFormControls ( ) const
private

Definition at line 613 of file vbadocument.cxx.

References mxTextDocument.

Referenced by hasProperty().

sal_Int32 SAL_CALL SwVbaDocument::getHyphenationZone ( )
override

Definition at line 384 of file vbadocument.cxx.

OUString SAL_CALL SwVbaDocument::getIID ( )
overridevirtual

Definition at line 635 of file vbadocument.cxx.

OUString SAL_CALL SwVbaDocument::GetIIDForClassItselfNotCoclass ( )
overridevirtual

Definition at line 643 of file vbadocument.cxx.

uno::Reference< beans::XIntrospectionAccess > SAL_CALL SwVbaDocument::getIntrospection ( )
overridevirtual

Definition at line 569 of file vbadocument.cxx.

uno::Reference< ooo::vba::word::XMailMerge > SAL_CALL SwVbaDocument::getMailMerge ( )
overridevirtual

Definition at line 411 of file vbadocument.cxx.

References SwVbaMailMerge::get(), mxContext, and mxParent.

sal_Int32 SAL_CALL SwVbaDocument::getProtectionType ( )
override

Definition at line 346 of file vbadocument.cxx.

OUString SwVbaDocument::getServiceImplName ( )
overridevirtual

Definition at line 289 of file vbadocument.cxx.

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

Definition at line 700 of file vbadocument.cxx.

References aServiceNames.

sal_Bool SAL_CALL SwVbaDocument::getUpdateStylesOnOpen ( )
overridevirtual

Definition at line 357 of file vbadocument.cxx.

uno::Any SAL_CALL SwVbaDocument::getValue ( const OUString &  aPropertyName)
overridevirtual

Definition at line 587 of file vbadocument.cxx.

References getControlShape(), and mxContext.

sal_Bool SAL_CALL SwVbaDocument::hasMethod ( const OUString &  aName)
overridevirtual

Definition at line 598 of file vbadocument.cxx.

sal_Bool SAL_CALL SwVbaDocument::hasProperty ( const OUString &  aName)
overridevirtual

Definition at line 604 of file vbadocument.cxx.

References getFormControls().

void SwVbaDocument::Initialize ( )
private
uno::Any SAL_CALL SwVbaDocument::invoke ( const OUString &  aFunctionName,
const css::uno::Sequence< css::uno::Any > &  aParams,
css::uno::Sequence< ::sal_Int16 > &  aOutParamIndex,
css::uno::Sequence< css::uno::Any > &  aOutParam 
)
overridevirtual

Definition at line 575 of file vbadocument.cxx.

References SAL_INFO.

uno::Any SAL_CALL SwVbaDocument::PageSetup ( )
overridevirtual

Definition at line 282 of file vbadocument.cxx.

References ooo::vba::word::getCurrentPageStyle(), mxContext, and mxModel.

uno::Any SAL_CALL SwVbaDocument::Paragraphs ( const css::uno::Any &  rIndex)
overridevirtual

Definition at line 217 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, mxParent, and mxTextDocument.

void SAL_CALL SwVbaDocument::PrintOut ( const css::uno::Any &  Background,
const css::uno::Any &  Append,
const css::uno::Any &  Range,
const css::uno::Any &  OutputFileName,
const css::uno::Any &  From,
const css::uno::Any &  To,
const css::uno::Any &  Item,
const css::uno::Any &  Copies,
const css::uno::Any &  Pages,
const css::uno::Any &  PageType,
const css::uno::Any &  PrintToFile,
const css::uno::Any &  Collate,
const css::uno::Any &  FileName,
const css::uno::Any &  ActivePrinterMacGX,
const css::uno::Any &  ManualDuplexPrint,
const css::uno::Any &  PrintZoomColumn,
const css::uno::Any &  PrintZoomRow,
const css::uno::Any &  PrintZoomPaperWidth,
const css::uno::Any &  PrintZoomPaperHeight 
)
overridevirtual

Definition at line 422 of file vbadocument.cxx.

void SAL_CALL SwVbaDocument::PrintPreview ( )
overridevirtual

Definition at line 427 of file vbadocument.cxx.

References dispatchRequests(), and mxModel.

void SAL_CALL SwVbaDocument::Protect ( ::sal_Int32  Type,
const css::uno::Any &  NOReset,
const css::uno::Any &  Password,
const css::uno::Any &  UseIRM,
const css::uno::Any &  EnforceStyleLock 
)
overridevirtual

Definition at line 416 of file vbadocument.cxx.

uno::Reference< word::XRange > SAL_CALL SwVbaDocument::Range ( const css::uno::Any &  rStart,
const css::uno::Any &  rEnd 
)
overridevirtual
void SwVbaDocument::RemoveSink ( sal_uInt32  nNumber)

Definition at line 112 of file vbadocument.cxx.

References mvSinks.

uno::Any SAL_CALL SwVbaDocument::Revisions ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 438 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, and mxTextDocument.

void SAL_CALL SwVbaDocument::SaveAs ( const css::uno::Any &  FileName,
const css::uno::Any &  FileFormat,
const css::uno::Any &  LockComments,
const css::uno::Any &  Password,
const css::uno::Any &  AddToRecentFiles,
const css::uno::Any &  WritePassword,
const css::uno::Any &  ReadOnlyRecommended,
const css::uno::Any &  EmbedTrueTypeFonts,
const css::uno::Any &  SaveNativePictureFormat,
const css::uno::Any &  SaveFormsData,
const css::uno::Any &  SaveAsAOCELetter,
const css::uno::Any &  Encoding,
const css::uno::Any &  InsertLineBreaks,
const css::uno::Any &  AllowSubstitutions,
const css::uno::Any &  LineEnding,
const css::uno::Any &  AddBiDiMarks 
)
overridevirtual

Definition at line 517 of file vbadocument.cxx.

References SaveAs2000().

void SAL_CALL SwVbaDocument::SaveAs2000 ( const css::uno::Any &  FileName,
const css::uno::Any &  FileFormat,
const css::uno::Any &  LockComments,
const css::uno::Any &  Password,
const css::uno::Any &  AddToRecentFiles,
const css::uno::Any &  WritePassword,
const css::uno::Any &  ReadOnlyRecommended,
const css::uno::Any &  EmbedTrueTypeFonts,
const css::uno::Any &  SaveNativePictureFormat,
const css::uno::Any &  SaveFormsData,
const css::uno::Any &  SaveAsAOCELetter 
)
overridevirtual
void SAL_CALL SwVbaDocument::SavePreviewPngAs ( const css::uno::Any &  FileName)
overridevirtual

Definition at line 529 of file vbadocument.cxx.

uno::Any SAL_CALL SwVbaDocument::Sections ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 257 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, and mxParent.

void SAL_CALL SwVbaDocument::setAttachedTemplate ( const css::uno::Any &  _attachedtemplate)
overridevirtual

Definition at line 308 of file vbadocument.cxx.

References aURL, INetURLObject::GetProtocol(), and INetURLObject::SetURL().

void SAL_CALL SwVbaDocument::setAutoHyphenation ( sal_Bool  _autohyphenation)
overridevirtual

Definition at line 377 of file vbadocument.cxx.

References ooo::vba::word::getDefaultParagraphStyle().

void SAL_CALL SwVbaDocument::setConsecutiveHyphensLimit ( ::sal_Int32  _consecutivehyphenslimit)
overridevirtual

Definition at line 404 of file vbadocument.cxx.

References ooo::vba::word::getDefaultParagraphStyle().

void SAL_CALL SwVbaDocument::setHyphenationZone ( ::sal_Int32  _hyphenationzone)
overridevirtual

Definition at line 390 of file vbadocument.cxx.

void SAL_CALL SwVbaDocument::setProtectionType ( ::sal_Int32  _protectiontype)
overridevirtual

Definition at line 352 of file vbadocument.cxx.

void SAL_CALL SwVbaDocument::setUpdateStylesOnOpen ( sal_Bool  _updatestylesonopen)
overridevirtual

Definition at line 363 of file vbadocument.cxx.

void SAL_CALL SwVbaDocument::setValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 582 of file vbadocument.cxx.

uno::Any SAL_CALL SwVbaDocument::Shapes ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 244 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, mxTextDocument, and xModel.

uno::Any SAL_CALL SwVbaDocument::Styles ( const css::uno::Any &  rIndex)
overridevirtual

Definition at line 226 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, and mxParent.

uno::Any SAL_CALL SwVbaDocument::Tables ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 331 of file vbadocument.cxx.

References mxContext, mxParent, mxTextDocument, and xModel.

uno::Any SAL_CALL SwVbaDocument::TablesOfContents ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 266 of file vbadocument.cxx.

References uno::Any::hasValue(), mxContext, and mxTextDocument.

uno::Any SAL_CALL SwVbaDocument::Variables ( const css::uno::Any &  rIndex)
overridevirtual

Definition at line 203 of file vbadocument.cxx.

References mxContext.

Member Data Documentation

std::vector<css::uno::Reference< ooo::vba::XSink > > SwVbaDocument::mvSinks
private

Definition at line 38 of file vbadocument.hxx.

Referenced by AddSink(), CallSinks(), and RemoveSink().

css::uno::Reference< css::text::XTextDocument > SwVbaDocument::mxTextDocument
private

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