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

#include <vbarows.hxx>

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

Public Member Functions

 SwVbaRows (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::text::XTextTable > xTextTable, const css::uno::Reference< css::table::XTableRows > &xTableRows)
 
 SwVbaRows (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::text::XTextTable > xTextTable, const css::uno::Reference< css::table::XTableRows > &xTableRows, sal_Int32 nStarIndex, sal_Int32 nEndIndex)
 
virtual ::sal_Int32 SAL_CALL getAlignment () override
 get the alignment of the rows: SO format com.sun.star.text.HoriOrientation is mapped to WdRowAlignment in Word More...
 
virtual void SAL_CALL setAlignment (::sal_Int32 _alignment) override
 
virtual css::uno::Any SAL_CALL getAllowBreakAcrossPages () override
 
virtual void SAL_CALL setAllowBreakAcrossPages (const css::uno::Any &_allowbreakacrosspages) override
 
virtual float SAL_CALL getSpaceBetweenColumns () override
 
virtual void SAL_CALL setSpaceBetweenColumns (float _spacebetweencolumns) override
 
virtual void SAL_CALL Delete () override
 
virtual void SAL_CALL SetLeftIndent (float LeftIndent, ::sal_Int32 RulerStyle) override
 
virtual void SAL_CALL Select () override
 
virtual ::sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL Item (const css::uno::Any &Index1, const css::uno::Any &) 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< typename... 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, 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 css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override=0
 
virtual css::uno::Type SAL_CALL getElementType () override=0
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Any createCollectionObject (const css::uno::Any &aSource)=0
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< Ifc... >
 InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual OUString getServiceImplName ()=0
 
virtual css::uno::Sequence< OUString > getServiceNames ()=0
 
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

void setIndentWithAdjustNone (sal_Int32 indent)
 
void setIndentWithAdjustFirstColumn (const css::uno::Reference< ooo::vba::word::XColumns > &xColumns, sal_Int32 indent)
 
void setIndentWithAdjustProportional (const css::uno::Reference< ooo::vba::word::XColumns > &xColumns, sal_Int32 indent)
 
void setIndentWithAdjustSameWidth (const css::uno::Reference< ooo::vba::word::XColumns > &xColumns, sal_Int32 indent)
 

Private Attributes

css::uno::Reference< css::text::XTextTable > mxTextTable
 
css::uno::Reference< css::table::XTableRows > mxTableRows
 
sal_Int32 mnStartRowIndex
 
sal_Int32 mnEndRowIndex
 

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 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 30 of file vbarows.hxx.

Constructor & Destructor Documentation

◆ SwVbaRows() [1/2]

SwVbaRows::SwVbaRows ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
css::uno::Reference< css::text::XTextTable >  xTextTable,
const css::uno::Reference< css::table::XTableRows > &  xTableRows 
)
Exceptions
css::uno::RuntimeException

◆ SwVbaRows() [2/2]

SwVbaRows::SwVbaRows ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
css::uno::Reference< css::text::XTextTable >  xTextTable,
const css::uno::Reference< css::table::XTableRows > &  xTableRows,
sal_Int32  nStarIndex,
sal_Int32  nEndIndex 
)
Exceptions
css::uno::RuntimeException

Member Function Documentation

◆ createCollectionObject()

uno::Any SwVbaRows::createCollectionObject ( const css::uno::Any &  aSource)
overridevirtual

◆ createEnumeration()

uno::Reference< container::XEnumeration > SwVbaRows::createEnumeration ( )
overridevirtual

◆ Delete()

void SAL_CALL SwVbaRows::Delete ( )
overridevirtual

Definition at line 197 of file vbarows.cxx.

References getCount(), mnStartRowIndex, and mxTableRows.

◆ getAlignment()

sal_Int32 SAL_CALL SwVbaRows::getAlignment ( )
override

get the alignment of the rows: SO format com.sun.star.text.HoriOrientation is mapped to WdRowAlignment in Word

Returns
the alignment

Definition at line 84 of file vbarows.cxx.

References mxTextTable.

◆ getAllowBreakAcrossPages()

uno::Any SAL_CALL SwVbaRows::getAllowBreakAcrossPages ( )
overridevirtual

Definition at line 134 of file vbarows.cxx.

References index, mnEndRowIndex, mnStartRowIndex, and mxTableRows.

◆ getCount()

sal_Int32 SAL_CALL SwVbaRows::getCount ( )
override

Definition at line 317 of file vbarows.cxx.

References mnEndRowIndex, and mnStartRowIndex.

Referenced by Delete(), and Item().

◆ getElementType()

uno::Type SwVbaRows::getElementType ( )
overridevirtual

◆ getServiceImplName()

OUString SwVbaRows::getServiceImplName ( )
overridevirtual

Implements InheritedHelperInterfaceImpl< Ifc... >.

Definition at line 355 of file vbarows.cxx.

◆ getServiceNames()

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

Implements InheritedHelperInterfaceImpl< Ifc... >.

Definition at line 361 of file vbarows.cxx.

◆ getSpaceBetweenColumns()

float SAL_CALL SwVbaRows::getSpaceBetweenColumns ( )
overridevirtual

Definition at line 167 of file vbarows.cxx.

References mnStartRowIndex, and mxTextTable.

◆ Item()

uno::Any SAL_CALL SwVbaRows::Item ( const css::uno::Any &  Index1,
const css::uno::Any &   
)
overridevirtual

◆ Select()

void SAL_CALL SwVbaRows::Select ( )
overridevirtual

◆ setAlignment()

void SAL_CALL SwVbaRows::setAlignment ( ::sal_Int32  _alignment)
overridevirtual

Definition at line 110 of file vbarows.cxx.

References mxTextTable.

◆ setAllowBreakAcrossPages()

void SAL_CALL SwVbaRows::setAllowBreakAcrossPages ( const css::uno::Any &  _allowbreakacrosspages)
overridevirtual

Definition at line 155 of file vbarows.cxx.

References index, mnEndRowIndex, mnStartRowIndex, and mxTableRows.

◆ setIndentWithAdjustFirstColumn()

void SwVbaRows::setIndentWithAdjustFirstColumn ( const css::uno::Reference< ooo::vba::word::XColumns > &  xColumns,
sal_Int32  indent 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 244 of file vbarows.cxx.

References setIndentWithAdjustNone(), and xColumn.

Referenced by SetLeftIndent().

◆ setIndentWithAdjustNone()

void SwVbaRows::setIndentWithAdjustNone ( sal_Int32  indent)
private
Exceptions
css::uno::RuntimeException

Definition at line 235 of file vbarows.cxx.

References mxTextTable.

Referenced by setIndentWithAdjustFirstColumn(), setIndentWithAdjustProportional(), setIndentWithAdjustSameWidth(), and SetLeftIndent().

◆ setIndentWithAdjustProportional()

void SwVbaRows::setIndentWithAdjustProportional ( const css::uno::Reference< ooo::vba::word::XColumns > &  xColumns,
sal_Int32  indent 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 254 of file vbarows.cxx.

References i, mxTextTable, setIndentWithAdjustNone(), and xColumn.

Referenced by SetLeftIndent().

◆ setIndentWithAdjustSameWidth()

void SwVbaRows::setIndentWithAdjustSameWidth ( const css::uno::Reference< ooo::vba::word::XColumns > &  xColumns,
sal_Int32  indent 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 289 of file vbarows.cxx.

References i, mxTextTable, setIndentWithAdjustNone(), and xColumn.

Referenced by SetLeftIndent().

◆ SetLeftIndent()

void SAL_CALL SwVbaRows::SetLeftIndent ( float  LeftIndent,
::sal_Int32  RulerStyle 
)
overridevirtual

◆ setSpaceBetweenColumns()

void SAL_CALL SwVbaRows::setSpaceBetweenColumns ( float  _spacebetweencolumns)
overridevirtual

Member Data Documentation

◆ mnEndRowIndex

sal_Int32 SwVbaRows::mnEndRowIndex
private

◆ mnStartRowIndex

sal_Int32 SwVbaRows::mnStartRowIndex
private

◆ mxTableRows

css::uno::Reference< css::table::XTableRows > SwVbaRows::mxTableRows
private

Definition at line 34 of file vbarows.hxx.

Referenced by Delete(), getAllowBreakAcrossPages(), and setAllowBreakAcrossPages().

◆ mxTextTable

css::uno::Reference< css::text::XTextTable > SwVbaRows::mxTextTable
private

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