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 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 ()
 

Private Attributes

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

Detailed Description

Definition at line 34 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 92 of file vbadocument.cxx.

Member Function Documentation

void SAL_CALL SwVbaDocument::Activate ( )
overridevirtual

Definition at line 340 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 190 of file vbadocument.cxx.

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

Definition at line 172 of file vbadocument.cxx.

References uno::Any::hasValue().

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

Definition at line 639 of file vbadocument.cxx.

References i, and mvSinks.

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 181 of file vbadocument.cxx.

References uno::Any::hasValue().

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

Definition at line 234 of file vbadocument.cxx.

References uno::Any::hasValue().

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

Definition at line 649 of file vbadocument.cxx.

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

Definition at line 274 of file vbadocument.cxx.

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

Definition at line 450 of file vbadocument.cxx.

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

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

Definition at line 294 of file vbadocument.cxx.

sal_Bool SAL_CALL SwVbaDocument::getAutoHyphenation ( )
overridevirtual

Definition at line 367 of file vbadocument.cxx.

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

TypeAndIID SAL_CALL SwVbaDocument::GetConnectionPoint ( )
overridevirtual

Definition at line 626 of file vbadocument.cxx.

sal_Int32 SAL_CALL SwVbaDocument::getConsecutiveHyphensLimit ( )
override

Definition at line 394 of file vbadocument.cxx.

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

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

Definition at line 120 of file vbadocument.cxx.

References mxTextDocument.

Referenced by Range().

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

Definition at line 522 of file vbadocument.cxx.

References index, and mxTextDocument.

Referenced by getValue().

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

Definition at line 590 of file vbadocument.cxx.

References mxTextDocument.

Referenced by hasProperty().

sal_Int32 SAL_CALL SwVbaDocument::getHyphenationZone ( )
override

Definition at line 383 of file vbadocument.cxx.

OUString SAL_CALL SwVbaDocument::getIID ( )
overridevirtual

Definition at line 612 of file vbadocument.cxx.

OUString SAL_CALL SwVbaDocument::GetIIDForClassItselfNotCoclass ( )
overridevirtual

Definition at line 620 of file vbadocument.cxx.

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

Definition at line 546 of file vbadocument.cxx.

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

Definition at line 410 of file vbadocument.cxx.

References SwVbaMailMerge::get().

sal_Int32 SAL_CALL SwVbaDocument::getProtectionType ( )
override

Definition at line 345 of file vbadocument.cxx.

OUString SwVbaDocument::getServiceImplName ( )
overridevirtual

Definition at line 288 of file vbadocument.cxx.

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

Definition at line 677 of file vbadocument.cxx.

sal_Bool SAL_CALL SwVbaDocument::getUpdateStylesOnOpen ( )
overridevirtual

Definition at line 356 of file vbadocument.cxx.

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

Definition at line 564 of file vbadocument.cxx.

References getControlShape().

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

Definition at line 575 of file vbadocument.cxx.

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

Definition at line 581 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 552 of file vbadocument.cxx.

References SAL_INFO.

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

Definition at line 281 of file vbadocument.cxx.

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

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

Definition at line 216 of file vbadocument.cxx.

References uno::Any::hasValue(), 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 421 of file vbadocument.cxx.

void SAL_CALL SwVbaDocument::PrintPreview ( )
overridevirtual

Definition at line 426 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 415 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 111 of file vbadocument.cxx.

References mvSinks.

Referenced by SwVbaDocumentOutgoingConnectionPoint::Unadvise().

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

Definition at line 439 of file vbadocument.cxx.

References uno::Any::hasValue(), 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 516 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
uno::Any SAL_CALL SwVbaDocument::Sections ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 256 of file vbadocument.cxx.

References uno::Any::hasValue().

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

Definition at line 307 of file vbadocument.cxx.

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

void SAL_CALL SwVbaDocument::setAutoHyphenation ( sal_Bool  _autohyphenation)
overridevirtual

Definition at line 376 of file vbadocument.cxx.

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

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

Definition at line 403 of file vbadocument.cxx.

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

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

Definition at line 389 of file vbadocument.cxx.

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

Definition at line 351 of file vbadocument.cxx.

void SAL_CALL SwVbaDocument::setUpdateStylesOnOpen ( sal_Bool  _updatestylesonopen)
overridevirtual

Definition at line 362 of file vbadocument.cxx.

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

Definition at line 559 of file vbadocument.cxx.

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

Definition at line 243 of file vbadocument.cxx.

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

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

Definition at line 225 of file vbadocument.cxx.

References uno::Any::hasValue().

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

Definition at line 330 of file vbadocument.cxx.

References mxTextDocument, and xModel.

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

Definition at line 265 of file vbadocument.cxx.

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

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

Definition at line 202 of file vbadocument.cxx.

Member Data Documentation

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

Definition at line 39 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: