24#include <com/sun/star/text/XTextRange.hpp>
25#include <com/sun/star/text/XTextTable.hpp>
26#include <com/sun/star/text/XTextTableCursor.hpp>
27#include <com/sun/star/table/XCell.hpp>
29#include <ooo/vba/word/WdUnits.hpp>
30#include <ooo/vba/word/WdMovementType.hpp>
31#include <ooo/vba/word/WdGoToItem.hpp>
32#include <ooo/vba/word/WdGoToDirection.hpp>
33#include <ooo/vba/word/XBookmark.hpp>
34#include <ooo/vba/word/XApplication.hpp>
35#include <ooo/vba/word/WdCollapseDirection.hpp>
36#include <com/sun/star/text/XPageCursor.hpp>
40#include <com/sun/star/view/XViewCursor.hpp>
41#include <com/sun/star/view/XLineCursor.hpp>
42#include <com/sun/star/text/XWordCursor.hpp>
43#include <com/sun/star/text/XParagraphCursor.hpp>
44#include <ooo/vba/word/WdInformation.hpp>
45#include <ooo/vba/word/WdHeaderFooterIndex.hpp>
46#include <ooo/vba/word/WdSeekView.hpp>
52#include <com/sun/star/drawing/ShapeCollection.hpp>
53#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
54#include <com/sun/star/drawing/XDrawPage.hpp>
81 uno::Reference< text::XTextRange > xTextRange;
82 uno::Reference< lang::XServiceInfo > xServiceInfo(
mxModel->getCurrentSelection(), uno::UNO_QUERY_THROW );
83 if( !xServiceInfo->supportsService(
"com.sun.star.text.TextRanges") )
85 throw uno::RuntimeException(
"Not implemented" );
88 uno::Reference< container::XIndexAccess > xTextRanges( xServiceInfo, uno::UNO_QUERY_THROW );
89 if( xTextRanges->getCount() > 0 )
92 xTextRange.set( xTextRanges->getByIndex( xTextRanges->getCount()-1 ), uno::UNO_QUERY_THROW );
98uno::Reference< word::XRange > SAL_CALL
102 uno::Reference< text::XTextDocument > xDocument(
mxModel, uno::UNO_QUERY_THROW );
128 sal_Int32 nUnit = word::WdUnits::wdLine;
129 sal_Int32 nExtend = word::WdMovementType::wdMove;
132 bool bExtend = nExtend == word::WdMovementType::wdExtend;
136 case word::WdUnits::wdStory:
146 case word::WdUnits::wdLine:
149 uno::Reference< view::XLineCursor > xLineCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
150 xLineCursor->gotoStartOfLine( bExtend );
155 throw uno::RuntimeException(
"Not implemented" );
163 sal_Int32 nUnit = word::WdUnits::wdLine;
164 sal_Int32 nExtend = word::WdMovementType::wdMove;
167 bool bExtend = nExtend == word::WdMovementType::wdExtend;
171 case word::WdUnits::wdStory:
177 uno::Reference< text::XTextRange > xEnd = xCurrentText->getEnd();
181 case word::WdUnits::wdLine:
184 uno::Reference< view::XLineCursor > xLineCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
185 xLineCursor->gotoEndOfLine( bExtend );
190 throw uno::RuntimeException(
"Not implemented" );
198 sal_Int32 nUnit = word::WdUnits::wdLine;
207 case word::WdUnits::wdCharacter:
216 throw uno::RuntimeException(
"Not implemented" );
226 sal_Int32 nUnit = word::WdUnits::wdCharacter;
228 sal_Int32 nExtend = word::WdMovementType::wdMove;
240 bool bExpand = nExtend != word::WdMovementType::wdMove;
244 case word::WdUnits::wdCell:
246 if( nExtend == word::WdMovementType::wdExtend )
254 case word::WdUnits::wdLine:
258 throw uno::RuntimeException(
"Not implemented" );
260 uno::Reference< view::XViewCursor > xViewCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
262 xViewCursor->goUp(
nCount, bExpand );
264 xViewCursor->goDown(
nCount, bExpand );
267 case word::WdUnits::wdCharacter:
271 throw uno::RuntimeException(
"Not implemented" );
277 uno::Reference< view::XViewCursor > xViewCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
282 uno::Reference< text::XTextTableCursor > xTextTableCursor(
mxModel->getCurrentSelection(), uno::UNO_QUERY );
283 if ( xTextTableCursor.is() )
285 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
286 uno::Reference< text::XTextTable > xTextTable;
287 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
288 if( xTextTable.is() )
290 uno::Reference< text::XTextRange > xRange( xTextTable->getCellByName( xTextTableCursor->getRangeName()), uno::UNO_QUERY_THROW );
295 xViewCursor->goLeft(
nCount, bExpand );
298 xViewCursor->goRight(
nCount, bExpand );
301 case word::WdUnits::wdWord:
302 case word::WdUnits::wdParagraph:
305 uno::Reference< text::XText > xText = xRange->getText();
306 uno::Reference< text::XTextCursor > xTextCursor = xText->createTextCursorByRange( xRange );
307 if( nUnit == word::WdUnits::wdParagraph )
311 throw uno::RuntimeException(
"Not implemented" );
313 uno::Reference< text::XParagraphCursor > xParagraphCursor( xTextCursor, uno::UNO_QUERY_THROW );
316 if( ( eDirection ==
word::MOVE_UP ) && !xParagraphCursor->gotoPreviousParagraph( bExpand ) )
318 else if( ( eDirection ==
word::MOVE_DOWN ) && !xParagraphCursor->gotoNextParagraph( bExpand ) )
322 else if( nUnit == word::WdUnits::wdWord )
326 throw uno::RuntimeException(
"Not implemented" );
328 uno::Reference< text::XWordCursor > xWordCursor( xTextCursor, uno::UNO_QUERY_THROW );
331 if( (eDirection ==
word::MOVE_LEFT ) && !xWordCursor->gotoPreviousWord( bExpand ) )
333 else if( ( eDirection ==
word::MOVE_RIGHT ) && !xWordCursor->gotoNextWord( bExpand ) )
343 throw uno::RuntimeException(
"Not implemented" );
350 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
351 uno::Reference< text::XTextTable > xTextTable;
352 uno::Reference< table::XCell > xCell;
353 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
354 xCursorProps->getPropertyValue(
"Cell") >>= xCell;
355 if( !xTextTable.is() || !xCell.is() )
360 uno::Reference< beans::XPropertySet > xCellProps( xCell, uno::UNO_QUERY_THROW );
362 xCellProps->getPropertyValue(
"CellName") >>= aCellName;
363 uno::Reference< text::XTextTableCursor > xTextTableCursor = xTextTable->createCursorByCellName( aCellName );
369 xTextTableCursor->goLeft(
nCount,
false );
374 xTextTableCursor->goRight(
nCount,
false );
379 xTextTableCursor->goUp(
nCount,
false );
384 xTextTableCursor->goDown(
nCount,
false );
394 xCell = xTextTable->getCellByName( xTextTableCursor->getRangeName() );
395 mxTextViewCursor->gotoRange( uno::Reference< text::XTextRange >( xCell, uno::UNO_QUERY_THROW ),
false );
498 getRange()->InsertParagraphBefore();
507uno::Reference< word::XParagraphFormat > SAL_CALL
510 return getRange()->getParagraphFormat();
516 return getRange()->setParagraphFormat( rParagraphFormat );
519uno::Reference< word::XFind > SAL_CALL
523 uno::Reference< text::XTextRange > xStart = xTextRange->getStart();
524 uno::Reference< text::XTextRange > xEnd = xTextRange->getEnd();
525 uno::Reference< text::XTextRangeCompare > xTRC( xTextRange->getText(), uno::UNO_QUERY_THROW );
526 int n = xTRC->compareRegionStarts( xStart, xEnd);
544 uno::Reference< beans::XPropertySet > xParaProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
548uno::Reference< word::XFont > SAL_CALL
563 if( !( _what >>= nWhat ) )
567 case word::WdGoToItem::wdGoToBookmark:
569 uno::Reference< word::XApplication > xApplication(
Application(), uno::UNO_QUERY_THROW );
570 uno::Reference< word::XBookmark > xBookmark( xApplication->getActiveDocument()->Bookmarks(_name), uno::UNO_QUERY_THROW );
574 case word::WdGoToItem::wdGoToPage:
576 uno::Reference< text::XPageCursor > xPageCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
577 sal_Int32 nCurrPage = xPageCursor->getPage();
582 sal_Int32 nWhich = 0;
588 case word::WdGoToDirection::wdGoToLast:
593 case word::WdGoToDirection::wdGoToNext:
596 nPage = nCurrPage +
nCount;
598 nPage = nCurrPage + 1;
601 case word::WdGoToDirection::wdGoToPrevious:
604 nPage = nCurrPage -
nCount;
606 nPage = nCurrPage - 1;
618 sal_Int32 nName =
sName.toInt32();
624 if( nPage > nLastPage )
626 xPageCursor->jumpToPage(
static_cast<sal_Int16
>(nPage) );
629 case word::WdGoToItem::wdGoToSection:
631 uno::Reference< text::XPageCursor > xPageCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
635 sal_Int32 nWhich = 0;
641 case word::WdGoToDirection::wdGoToAbsolute:
654 throw uno::RuntimeException(
"Not implemented" );
655 xPageCursor->jumpToPage(
static_cast<sal_Int16
>(nPage) );
659 throw uno::RuntimeException(
"Not implemented" );
671 getRange()->setLanguageID( _languageid );
679 case word::WdInformation::wdActiveEndPageNumber:
684 case word::WdInformation::wdNumberOfPagesInDocument:
689 case word::WdInformation::wdVerticalPositionRelativeToPage:
694 case word::WdInformation::wdWithInTable:
696 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
697 uno::Reference< text::XTextTable > xTextTable;
698 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
699 result <<= xTextTable.is();
702 case word::WdInformation::wdHeaderFooterType:
705 sal_Int32 nView = xView->getSeekView();
706 sal_Int32 nHeaderFooterType = 0;
709 case word::WdSeekView::wdSeekMainDocument:
711 nHeaderFooterType = -1;
714 case word::WdSeekView::wdSeekEvenPagesHeader:
716 nHeaderFooterType = 0;
719 case word::WdSeekView::wdSeekPrimaryHeader:
721 nHeaderFooterType = 1;
724 case word::WdSeekView::wdSeekEvenPagesFooter:
726 nHeaderFooterType = 2;
729 case word::WdSeekView::wdSeekPrimaryFooter:
731 nHeaderFooterType = 3;
734 case word::WdSeekView::wdSeekFirstPageHeader:
735 case word::WdSeekView::wdSeekFirstPageFooter:
737 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
738 OUString aPageStyleName;
739 xCursorProps->getPropertyValue(
"PageStyleName") >>= aPageStyleName;
740 bool bFirstPage =
false;
741 if ( aPageStyleName ==
"First Page" )
743 if( nView == word::WdSeekView::wdSeekFirstPageHeader )
746 nHeaderFooterType = 4;
748 nHeaderFooterType = 1;
753 nHeaderFooterType = 5;
755 nHeaderFooterType = 3;
761 nHeaderFooterType = -1;
764 result <<= nHeaderFooterType;
768 throw uno::RuntimeException(
"Not implemented" );
775 getRange()->InsertBreak( _breakType );
784 throw uno::RuntimeException();
792 throw uno::RuntimeException();
794 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
795 uno::Reference< text::XTextTable > xTextTable;
796 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
797 if( xTextTable.is() )
799 uno::Reference< css::text::XTextDocument > xTextDoc(
mxModel, uno::UNO_QUERY_THROW );
806 uno::Reference< text::XTextTableCursor > xTextTableCursor(
mxModel->getCurrentSelection(), uno::UNO_QUERY_THROW );
814 uno::Reference< css::text::XTextDocument > xTextDoc(
mxModel, uno::UNO_QUERY_THROW );
827 if (
index.hasValue() )
832uno::Reference< word::XHeaderFooter > SAL_CALL
838 sal_Int32
nIndex = word::WdHeaderFooterIndex::wdHeaderFooterPrimary;
841 nIndex = word::WdHeaderFooterIndex::wdHeaderFooterEvenPages;
843 nIndex = word::WdHeaderFooterIndex::wdHeaderFooterFirstPage;
848 return uno::Reference< word::XHeaderFooter >();
854 uno::Reference< drawing::XShapes > xShapes(
mxModel->getCurrentSelection(), uno::UNO_QUERY );
857 uno::Reference< drawing::XShape > xShape(
mxModel->getCurrentSelection(), uno::UNO_QUERY_THROW );
858 xShapes.set( drawing::ShapeCollection::create(
mxContext) );
859 xShapes->add( xShape );
862 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier(
mxModel, uno::UNO_QUERY_THROW );
863 uno::Reference< drawing::XDrawPage > xDrawPage = xDrawPageSupplier->getDrawPage();
864 uno::Reference< container::XIndexAccess > xShapesAccess( xShapes, uno::UNO_QUERY_THROW );
889 uno::Reference< word::XRows > xRows(
Rows(
uno::Any() ), uno::UNO_QUERY_THROW );
895 uno::Reference< word::XColumns > xColumns(
Columns(
uno::Any() ), uno::UNO_QUERY_THROW );
905 sal_Int32 nStartRow = 0;
906 sal_Int32 nEndRow = 0;
907 uno::Reference< text::XTextTable > xTextTable =
GetXTextTable();
910 if( !sBRName.isEmpty() )
919 uno::Reference< XCollection > xCol(
new SwVbaRows(
this,
mxContext, xTextTable, xTextTable->getRows(), nStartRow, nEndRow ) );
920 if (
index.hasValue() )
930 sal_Int32 nStartColumn = 0;
931 sal_Int32 nEndColumn = 0;
933 uno::Reference< text::XTextTable > xTextTable =
GetXTextTable();
936 if( !sBRName.isEmpty() )
942 nEndColumn = nStartColumn;
945 uno::Reference< XCollection > xCol(
new SwVbaColumns(
this,
mxContext, xTextTable, xTextTable->getColumns(), nStartColumn, nEndColumn ) );
946 if (
index.hasValue() )
953 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
954 uno::Reference< text::XTextTable > xTextTable;
955 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
961 uno::Reference< text::XTextTable > xTextTable =
GetXTextTable();
962 return xTextTable.is();
969 uno::Reference< text::XTextRangeCompare > xTRC(
mxTextViewCursor->getText(), uno::UNO_QUERY_THROW );
970 return xTRC->compareRegionStarts( xStart, xEnd ) != 0 || xTRC->compareRegionEnds( xStart, xEnd ) != 0;
975 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
976 uno::Reference< text::XTextTable > xTextTable;
977 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
978 if( !xTextTable.is() )
979 throw uno::RuntimeException( );
981 uno::Reference< text::XTextTableCursor > xTextTableCursor(
mxModel->getCurrentSelection(), uno::UNO_QUERY );
982 if( xTextTableCursor.is() )
984 const OUString sRange( xTextTableCursor->getRangeName() );
985 if (!sRange.isEmpty())
988 sTLName = sRange.getToken(0,
':', nIdx);
989 sBRName = sRange.getToken(0,
':', nIdx);
992 if( sTLName.isEmpty() )
994 uno::Reference< table::XCell > xCell;
995 xCursorProps->getPropertyValue(
"Cell") >>= xCell;
998 throw uno::RuntimeException( );
1000 uno::Reference< beans::XPropertySet > xCellProps( xCell, uno::UNO_QUERY_THROW );
1001 xCellProps->getPropertyValue(
"CellName") >>= sTLName;
1010 sal_Int32 nLeft = 0;
1012 sal_Int32 nRight = 0;
1013 sal_Int32 nBottom = 0;
1015 uno::Reference< text::XTextTable > xTextTable =
GetXTextTable();
1019 if( !sBRName.isEmpty() )
1030 uno::Reference< XCollection > xCol(
new SwVbaCells(
this,
mxContext, xTextTable, nLeft, nTop, nRight, nBottom ) );
1031 if (
index.hasValue() )
1057 sal_Int32 nDirection = word::WdCollapseDirection::wdCollapseStart;
1062 if( nDirection == word::WdCollapseDirection::wdCollapseStart )
1065 uno::Reference< text::XTextRange > xTextRange =
mxTextViewCursor->getStart();
1066 xTextViewCursor->gotoRange( xTextRange,
false );
1067 xTextViewCursor->collapseToStart();
1069 else if( nDirection == word::WdCollapseDirection::wdCollapseEnd )
1071 uno::Reference< text::XTextRange > xTextRange =
mxTextViewCursor->getEnd();
1072 xTextViewCursor->gotoRange( xTextRange,
false );
1073 xTextViewCursor->collapseToEnd();
1077 throw uno::RuntimeException();
1086 uno::Reference< container::XEnumerationAccess > xParaAccess( xText, uno::UNO_QUERY_THROW );
1087 uno::Reference< container::XEnumeration> xParaEnum = xParaAccess->createEnumeration();
1088 if( xParaEnum->hasMoreElements() )
1090 uno::Reference< text::XTextTable > xTextTable( xParaEnum->nextElement(), uno::UNO_QUERY );
1091 if( xTextTable.is() )
1099 uno::Reference< text::XTextRange > xStart = xText->getStart();
1100 uno::Reference< text::XTextRange > xEnd = xText->getEnd();
1113 throw uno::RuntimeException();
1128 if ( !
aIndex.hasValue() )
1129 throw uno::RuntimeException();
1137 throw uno::RuntimeException();
1139 uno::Reference< text::XTextRange > xTextRange =
mxTextViewCursor->getStart();
1140 uno::Reference< text::XText > xText = xTextRange->getText();
1141 uno::Reference< text::XParagraphCursor > xParaCursor( xText->createTextCursor(), uno::UNO_QUERY_THROW );
1142 xParaCursor->gotoStartOfParagraph(
false );
1143 xParaCursor->gotoStartOfParagraph(
true );
1145 uno::Reference< text::XTextDocument > xTextDoc(
mxModel, uno::UNO_QUERY_THROW );
1146 uno::Reference< text::XTextRange > xParaRange( xParaCursor, uno::UNO_QUERY_THROW );
1149 aRet <<= xParagraph;
1156 return "SwVbaSelection";
1159uno::Sequence< OUString >
1164 "ooo.vba.word.Selection"
css::uno::Reference< css::frame::XModel2 > mxModel
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::WeakReference< ov::XHelperInterface > mxParent
virtual css::uno::Any SAL_CALL Application() override
SwFEShell * GetFEShell()
For Core - it knows the DocShell but not the WrtShell!
static css::uno::Reference< ooo::vba::word::XFind > GetOrCreateFind(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< com::sun::star::uno::XComponentContext > &rContext, const css::uno::Reference< com::sun::star::frame::XModel > &xModel, const css::uno::Reference< css::text::XTextRange > &xTextRange)
virtual css::uno::Any SAL_CALL Paragraphs(const css::uno::Any &aIndex) override
virtual void SAL_CALL Collapse(const css::uno::Any &Direction) override
virtual void SAL_CALL SelectColumn() override
virtual void SAL_CALL WholeStory() override
virtual void SAL_CALL InsertParagraphBefore() override
css::uno::Reference< css::frame::XModel > mxModel
virtual css::uno::Reference< ooo::vba::word::XHeaderFooter > SAL_CALL getHeaderFooter() override
virtual void SAL_CALL setStart(::sal_Int32 _start) override
virtual void SAL_CALL MoveDown(const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend) override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual void SAL_CALL Copy() override
virtual void SAL_CALL setText(const OUString &rText) override
virtual void SAL_CALL Paste() override
virtual css::uno::Any SAL_CALL Fields(const css::uno::Any &aIndex) override
virtual css::uno::Reference< ooo::vba::word::XParagraphFormat > SAL_CALL getParagraphFormat() override
virtual ::sal_Int32 SAL_CALL getLanguageID() override
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL getRange() override
virtual void SAL_CALL CopyAsPicture() override
virtual void SAL_CALL TypeText(const OUString &rText) override
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL GoTo(const css::uno::Any &_what, const css::uno::Any &_which, const css::uno::Any &_count, const css::uno::Any &_name) override
void Move(const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend, ooo::vba::word::E_DIRECTION eDirection)
virtual ~SwVbaSelection() override
virtual ::sal_Int32 SAL_CALL getEnd() override
virtual void SAL_CALL TypeParagraph() override
virtual void SAL_CALL setParagraphFormat(const css::uno::Reference< ooo::vba::word::XParagraphFormat > &rParagraphFormat) override
virtual css::uno::Any SAL_CALL getStyle() override
css::uno::Reference< css::text::XTextViewCursor > mxTextViewCursor
virtual sal_Bool SAL_CALL InRange(const css::uno::Reference< ::ooo::vba::word::XRange > &Range) override
virtual void SAL_CALL EndKey(const css::uno::Any &_unit, const css::uno::Any &_extend) override
virtual css::uno::Any SAL_CALL Information(sal_Int32 _type) override
virtual void SAL_CALL HomeKey(const css::uno::Any &_unit, const css::uno::Any &_extend) override
virtual css::uno::Any SAL_CALL Rows(const css::uno::Any &aIndex) override
virtual void SAL_CALL SplitTable() override
virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() override
virtual css::uno::Reference< ooo::vba::word::XFind > SAL_CALL getFind() override
css::uno::Reference< css::text::XTextTable > GetXTextTable() const
virtual css::uno::Any SAL_CALL Cells(const css::uno::Any &aIndex) override
virtual void SAL_CALL InsertBreak(const css::uno::Any &_breakType) override
virtual void SAL_CALL SelectRow() override
virtual void SAL_CALL MoveLeft(const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend) override
virtual css::uno::Any SAL_CALL ShapeRange() override
virtual void SAL_CALL TypeBackspace() override
virtual void SAL_CALL setStyle(const css::uno::Any &_xStyle) override
virtual css::uno::Any SAL_CALL Columns(const css::uno::Any &aIndex) override
css::uno::Reference< css::text::XTextRange > GetSelectedRange()
virtual void SAL_CALL setLanguageID(::sal_Int32 _languageid) override
virtual OUString getServiceImplName() override
virtual css::uno::Any SAL_CALL Tables(const css::uno::Any &aIndex) override
virtual void SAL_CALL setEnd(::sal_Int32 _end) override
SwVbaSelection(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::frame::XModel > xModel)
void NextCell(sal_Int32 nCount, ooo::vba::word::E_DIRECTION eDirection)
void GetSelectedCellRange(OUString &sTLName, OUString &sBRName)
virtual void SAL_CALL Delete(const css::uno::Any &_unit, const css::uno::Any &_count) override
virtual void SAL_CALL InsertParagraphAfter() override
virtual void SAL_CALL MoveUp(const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend) override
virtual void SAL_CALL InsertParagraph() override
virtual OUString SAL_CALL getText() override
virtual void SAL_CALL MoveRight(const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend) override
virtual ::sal_Int32 SAL_CALL getStart() override
static void setStyle(const css::uno::Reference< css::beans::XPropertySet > &xParaProps, const css::uno::Any &xStyle)
sal_Int32 getTabColIndex(const OUString &sCellName)
sal_Int32 getTabRowIndex(const OUString &sCellName)
SwFrameFormat * GetFrameFormat() const
static css::uno::Reference< css::text::XTextTable > GetObject(SwFrameFormat &rFormat)
std::deque< AttacherIndex_Impl > aIndex
Sequence< OUString > aServiceNames
uno::Reference< text::XTextViewCursor > getXTextViewCursor(const uno::Reference< frame::XModel > &xModel)
bool gotoSelectedObjectAnchor(const uno::Reference< frame::XModel > &xModel)
uno::Reference< text::XText > getCurrentXText(const uno::Reference< frame::XModel > &xModel)
uno::Reference< text::XTextRange > getFirstObjectPosition(const uno::Reference< text::XText > &xText)
SwDocShell * getDocShell(const uno::Reference< frame::XModel > &xModel)
uno::Reference< style::XStyle > getCurrentPageStyle(const uno::Reference< frame::XModel > &xModel)
sal_Int32 getPageCount(const uno::Reference< frame::XModel > &xModel)
VBAHELPER_DLLPUBLIC void dispatchRequests(const css::uno::Reference< css::frame::XModel > &xModel, const OUString &aUrl)
#define ERRCODE_BASIC_BAD_ARGUMENT
Reference< XModel > xModel