23#include <com/sun/star/text/XTextRange.hpp>
24#include <com/sun/star/text/XTextTable.hpp>
25#include <com/sun/star/text/XTextTableCursor.hpp>
26#include <com/sun/star/table/XCell.hpp>
28#include <ooo/vba/word/WdUnits.hpp>
29#include <ooo/vba/word/WdMovementType.hpp>
30#include <ooo/vba/word/WdGoToItem.hpp>
31#include <ooo/vba/word/WdGoToDirection.hpp>
32#include <ooo/vba/word/XBookmark.hpp>
33#include <ooo/vba/word/XApplication.hpp>
34#include <ooo/vba/word/WdCollapseDirection.hpp>
35#include <com/sun/star/text/XPageCursor.hpp>
39#include <com/sun/star/view/XViewCursor.hpp>
40#include <com/sun/star/view/XLineCursor.hpp>
41#include <com/sun/star/text/XWordCursor.hpp>
42#include <com/sun/star/text/XParagraphCursor.hpp>
43#include <ooo/vba/word/WdInformation.hpp>
44#include <ooo/vba/word/WdHeaderFooterIndex.hpp>
45#include <ooo/vba/word/WdSeekView.hpp>
51#include <com/sun/star/drawing/ShapeCollection.hpp>
52#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
53#include <com/sun/star/drawing/XDrawPage.hpp>
79 uno::Reference< text::XTextRange > xTextRange;
80 uno::Reference< lang::XServiceInfo > xServiceInfo(
mxModel->getCurrentSelection(), uno::UNO_QUERY_THROW );
81 if( !xServiceInfo->supportsService(
"com.sun.star.text.TextRanges") )
83 throw uno::RuntimeException(
"Not implemented" );
86 uno::Reference< container::XIndexAccess > xTextRanges( xServiceInfo, uno::UNO_QUERY_THROW );
87 if( xTextRanges->getCount() > 0 )
90 xTextRange.set( xTextRanges->getByIndex( xTextRanges->getCount()-1 ), uno::UNO_QUERY_THROW );
96uno::Reference< word::XRange > SAL_CALL
100 uno::Reference< text::XTextDocument > xDocument(
mxModel, uno::UNO_QUERY_THROW );
126 sal_Int32 nUnit = word::WdUnits::wdLine;
127 sal_Int32 nExtend = word::WdMovementType::wdMove;
130 bool bExtend = nExtend == word::WdMovementType::wdExtend;
134 case word::WdUnits::wdStory:
144 case word::WdUnits::wdLine:
147 uno::Reference< view::XLineCursor > xLineCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
148 xLineCursor->gotoStartOfLine( bExtend );
153 throw uno::RuntimeException(
"Not implemented" );
161 sal_Int32 nUnit = word::WdUnits::wdLine;
162 sal_Int32 nExtend = word::WdMovementType::wdMove;
165 bool bExtend = nExtend == word::WdMovementType::wdExtend;
169 case word::WdUnits::wdStory:
175 uno::Reference< text::XTextRange > xEnd = xCurrentText->getEnd();
179 case word::WdUnits::wdLine:
182 uno::Reference< view::XLineCursor > xLineCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
183 xLineCursor->gotoEndOfLine( bExtend );
188 throw uno::RuntimeException(
"Not implemented" );
196 sal_Int32 nUnit = word::WdUnits::wdLine;
205 case word::WdUnits::wdCharacter:
214 throw uno::RuntimeException(
"Not implemented" );
224 sal_Int32 nUnit = word::WdUnits::wdCharacter;
226 sal_Int32 nExtend = word::WdMovementType::wdMove;
238 bool bExpand = nExtend != word::WdMovementType::wdMove;
242 case word::WdUnits::wdCell:
244 if( nExtend == word::WdMovementType::wdExtend )
252 case word::WdUnits::wdLine:
256 throw uno::RuntimeException(
"Not implemented" );
258 uno::Reference< view::XViewCursor > xViewCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
260 xViewCursor->goUp(
nCount, bExpand );
262 xViewCursor->goDown(
nCount, bExpand );
265 case word::WdUnits::wdCharacter:
269 throw uno::RuntimeException(
"Not implemented" );
275 uno::Reference< view::XViewCursor > xViewCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
280 uno::Reference< text::XTextTableCursor > xTextTableCursor(
mxModel->getCurrentSelection(), uno::UNO_QUERY );
281 if ( xTextTableCursor.is() )
283 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
284 uno::Reference< text::XTextTable > xTextTable;
285 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
286 if( xTextTable.is() )
288 uno::Reference< text::XTextRange > xRange( xTextTable->getCellByName( xTextTableCursor->getRangeName()), uno::UNO_QUERY_THROW );
293 xViewCursor->goLeft(
nCount, bExpand );
296 xViewCursor->goRight(
nCount, bExpand );
299 case word::WdUnits::wdWord:
300 case word::WdUnits::wdParagraph:
303 uno::Reference< text::XText > xText = xRange->getText();
304 uno::Reference< text::XTextCursor > xTextCursor = xText->createTextCursorByRange( xRange );
305 if( nUnit == word::WdUnits::wdParagraph )
309 throw uno::RuntimeException(
"Not implemented" );
311 uno::Reference< text::XParagraphCursor > xParagraphCursor( xTextCursor, uno::UNO_QUERY_THROW );
314 if( ( eDirection ==
word::MOVE_UP ) && !xParagraphCursor->gotoPreviousParagraph( bExpand ) )
316 else if( ( eDirection ==
word::MOVE_DOWN ) && !xParagraphCursor->gotoNextParagraph( bExpand ) )
320 else if( nUnit == word::WdUnits::wdWord )
324 throw uno::RuntimeException(
"Not implemented" );
326 uno::Reference< text::XWordCursor > xWordCursor( xTextCursor, uno::UNO_QUERY_THROW );
329 if( (eDirection ==
word::MOVE_LEFT ) && !xWordCursor->gotoPreviousWord( bExpand ) )
331 else if( ( eDirection ==
word::MOVE_RIGHT ) && !xWordCursor->gotoNextWord( bExpand ) )
341 throw uno::RuntimeException(
"Not implemented" );
348 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
349 uno::Reference< text::XTextTable > xTextTable;
350 uno::Reference< table::XCell > xCell;
351 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
352 xCursorProps->getPropertyValue(
"Cell") >>= xCell;
353 if( !xTextTable.is() || !xCell.is() )
358 uno::Reference< beans::XPropertySet > xCellProps( xCell, uno::UNO_QUERY_THROW );
360 xCellProps->getPropertyValue(
"CellName") >>= aCellName;
361 uno::Reference< text::XTextTableCursor > xTextTableCursor = xTextTable->createCursorByCellName( aCellName );
367 xTextTableCursor->goLeft(
nCount,
false );
372 xTextTableCursor->goRight(
nCount,
false );
377 xTextTableCursor->goUp(
nCount,
false );
382 xTextTableCursor->goDown(
nCount,
false );
392 xCell = xTextTable->getCellByName( xTextTableCursor->getRangeName() );
393 mxTextViewCursor->gotoRange( uno::Reference< text::XTextRange >( xCell, uno::UNO_QUERY_THROW ),
false );
496 getRange()->InsertParagraphBefore();
505uno::Reference< word::XParagraphFormat > SAL_CALL
508 return getRange()->getParagraphFormat();
514 return getRange()->setParagraphFormat( rParagraphFormat );
517uno::Reference< word::XFind > SAL_CALL
533 uno::Reference< beans::XPropertySet > xParaProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
537uno::Reference< word::XFont > SAL_CALL
552 if( !( _what >>= nWhat ) )
556 case word::WdGoToItem::wdGoToBookmark:
558 uno::Reference< word::XApplication > xApplication(
Application(), uno::UNO_QUERY_THROW );
559 uno::Reference< word::XBookmark > xBookmark( xApplication->getActiveDocument()->Bookmarks(_name), uno::UNO_QUERY_THROW );
563 case word::WdGoToItem::wdGoToPage:
565 uno::Reference< text::XPageCursor > xPageCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
566 sal_Int32 nCurrPage = xPageCursor->getPage();
571 sal_Int32 nWhich = 0;
577 case word::WdGoToDirection::wdGoToLast:
582 case word::WdGoToDirection::wdGoToNext:
585 nPage = nCurrPage +
nCount;
587 nPage = nCurrPage + 1;
590 case word::WdGoToDirection::wdGoToPrevious:
593 nPage = nCurrPage -
nCount;
595 nPage = nCurrPage - 1;
607 sal_Int32 nName =
sName.toInt32();
613 if( nPage > nLastPage )
615 xPageCursor->jumpToPage(
static_cast<sal_Int16
>(nPage) );
618 case word::WdGoToItem::wdGoToSection:
620 uno::Reference< text::XPageCursor > xPageCursor(
mxTextViewCursor, uno::UNO_QUERY_THROW );
624 sal_Int32 nWhich = 0;
630 case word::WdGoToDirection::wdGoToAbsolute:
643 throw uno::RuntimeException(
"Not implemented" );
644 xPageCursor->jumpToPage(
static_cast<sal_Int16
>(nPage) );
648 throw uno::RuntimeException(
"Not implemented" );
660 getRange()->setLanguageID( _languageid );
668 case word::WdInformation::wdActiveEndPageNumber:
673 case word::WdInformation::wdNumberOfPagesInDocument:
678 case word::WdInformation::wdVerticalPositionRelativeToPage:
683 case word::WdInformation::wdWithInTable:
685 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
686 uno::Reference< text::XTextTable > xTextTable;
687 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
688 result <<= xTextTable.is();
691 case word::WdInformation::wdHeaderFooterType:
694 sal_Int32 nView = xView->getSeekView();
695 sal_Int32 nHeaderFooterType = 0;
698 case word::WdSeekView::wdSeekMainDocument:
700 nHeaderFooterType = -1;
703 case word::WdSeekView::wdSeekEvenPagesHeader:
705 nHeaderFooterType = 0;
708 case word::WdSeekView::wdSeekPrimaryHeader:
710 nHeaderFooterType = 1;
713 case word::WdSeekView::wdSeekEvenPagesFooter:
715 nHeaderFooterType = 2;
718 case word::WdSeekView::wdSeekPrimaryFooter:
720 nHeaderFooterType = 3;
723 case word::WdSeekView::wdSeekFirstPageHeader:
724 case word::WdSeekView::wdSeekFirstPageFooter:
726 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
727 OUString aPageStyleName;
728 xCursorProps->getPropertyValue(
"PageStyleName") >>= aPageStyleName;
729 bool bFirstPage =
false;
730 if ( aPageStyleName ==
"First Page" )
732 if( nView == word::WdSeekView::wdSeekFirstPageHeader )
735 nHeaderFooterType = 4;
737 nHeaderFooterType = 1;
742 nHeaderFooterType = 5;
744 nHeaderFooterType = 3;
750 nHeaderFooterType = -1;
753 result <<= nHeaderFooterType;
757 throw uno::RuntimeException(
"Not implemented" );
764 getRange()->InsertBreak( _breakType );
773 throw uno::RuntimeException();
781 throw uno::RuntimeException();
783 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
784 uno::Reference< text::XTextTable > xTextTable;
785 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
786 if( xTextTable.is() )
788 uno::Reference< css::text::XTextDocument > xTextDoc(
mxModel, uno::UNO_QUERY_THROW );
795 uno::Reference< text::XTextTableCursor > xTextTableCursor(
mxModel->getCurrentSelection(), uno::UNO_QUERY_THROW );
803 uno::Reference< css::text::XTextDocument > xTextDoc(
mxModel, uno::UNO_QUERY_THROW );
816 if (
index.hasValue() )
821uno::Reference< word::XHeaderFooter > SAL_CALL
827 sal_Int32
nIndex = word::WdHeaderFooterIndex::wdHeaderFooterPrimary;
830 nIndex = word::WdHeaderFooterIndex::wdHeaderFooterEvenPages;
832 nIndex = word::WdHeaderFooterIndex::wdHeaderFooterFirstPage;
837 return uno::Reference< word::XHeaderFooter >();
843 uno::Reference< drawing::XShapes > xShapes(
mxModel->getCurrentSelection(), uno::UNO_QUERY );
846 uno::Reference< drawing::XShape > xShape(
mxModel->getCurrentSelection(), uno::UNO_QUERY_THROW );
847 xShapes.set( drawing::ShapeCollection::create(
mxContext) );
848 xShapes->add( xShape );
851 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier(
mxModel, uno::UNO_QUERY_THROW );
852 uno::Reference< drawing::XDrawPage > xDrawPage = xDrawPageSupplier->getDrawPage();
853 uno::Reference< container::XIndexAccess > xShapesAccess( xShapes, uno::UNO_QUERY_THROW );
878 uno::Reference< word::XRows > xRows(
Rows(
uno::Any() ), uno::UNO_QUERY_THROW );
884 uno::Reference< word::XColumns > xColumns(
Columns(
uno::Any() ), uno::UNO_QUERY_THROW );
894 sal_Int32 nStartRow = 0;
895 sal_Int32 nEndRow = 0;
896 uno::Reference< text::XTextTable > xTextTable =
GetXTextTable();
899 if( !sBRName.isEmpty() )
908 uno::Reference< XCollection > xCol(
new SwVbaRows(
this,
mxContext, xTextTable, xTextTable->getRows(), nStartRow, nEndRow ) );
909 if (
index.hasValue() )
919 sal_Int32 nStartColumn = 0;
920 sal_Int32 nEndColumn = 0;
922 uno::Reference< text::XTextTable > xTextTable =
GetXTextTable();
925 if( !sBRName.isEmpty() )
931 nEndColumn = nStartColumn;
934 uno::Reference< XCollection > xCol(
new SwVbaColumns(
this,
mxContext, xTextTable, xTextTable->getColumns(), nStartColumn, nEndColumn ) );
935 if (
index.hasValue() )
942 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
943 uno::Reference< text::XTextTable > xTextTable;
944 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
950 uno::Reference< text::XTextTable > xTextTable =
GetXTextTable();
951 return xTextTable.is();
958 uno::Reference< text::XTextRangeCompare > xTRC(
mxTextViewCursor->getText(), uno::UNO_QUERY_THROW );
959 return xTRC->compareRegionStarts( xStart, xEnd ) != 0 || xTRC->compareRegionEnds( xStart, xEnd ) != 0;
964 uno::Reference< beans::XPropertySet > xCursorProps(
mxTextViewCursor, uno::UNO_QUERY_THROW );
965 uno::Reference< text::XTextTable > xTextTable;
966 xCursorProps->getPropertyValue(
"TextTable") >>= xTextTable;
967 if( !xTextTable.is() )
968 throw uno::RuntimeException( );
970 uno::Reference< text::XTextTableCursor > xTextTableCursor(
mxModel->getCurrentSelection(), uno::UNO_QUERY );
971 if( xTextTableCursor.is() )
973 const OUString sRange( xTextTableCursor->getRangeName() );
974 if (!sRange.isEmpty())
977 sTLName = sRange.getToken(0,
':', nIdx);
978 sBRName = sRange.getToken(0,
':', nIdx);
981 if( sTLName.isEmpty() )
983 uno::Reference< table::XCell > xCell;
984 xCursorProps->getPropertyValue(
"Cell") >>= xCell;
987 throw uno::RuntimeException( );
989 uno::Reference< beans::XPropertySet > xCellProps( xCell, uno::UNO_QUERY_THROW );
990 xCellProps->getPropertyValue(
"CellName") >>= sTLName;
1001 sal_Int32 nRight = 0;
1002 sal_Int32 nBottom = 0;
1004 uno::Reference< text::XTextTable > xTextTable =
GetXTextTable();
1008 if( !sBRName.isEmpty() )
1019 uno::Reference< XCollection > xCol(
new SwVbaCells(
this,
mxContext, xTextTable, nLeft, nTop, nRight, nBottom ) );
1020 if (
index.hasValue() )
1046 sal_Int32 nDirection = word::WdCollapseDirection::wdCollapseStart;
1051 if( nDirection == word::WdCollapseDirection::wdCollapseStart )
1054 uno::Reference< text::XTextRange > xTextRange =
mxTextViewCursor->getStart();
1055 xTextViewCursor->gotoRange( xTextRange,
false );
1056 xTextViewCursor->collapseToStart();
1058 else if( nDirection == word::WdCollapseDirection::wdCollapseEnd )
1060 uno::Reference< text::XTextRange > xTextRange =
mxTextViewCursor->getEnd();
1061 xTextViewCursor->gotoRange( xTextRange,
false );
1062 xTextViewCursor->collapseToEnd();
1066 throw uno::RuntimeException();
1075 uno::Reference< container::XEnumerationAccess > xParaAccess( xText, uno::UNO_QUERY_THROW );
1076 uno::Reference< container::XEnumeration> xParaEnum = xParaAccess->createEnumeration();
1077 if( xParaEnum->hasMoreElements() )
1079 uno::Reference< text::XTextTable > xTextTable( xParaEnum->nextElement(), uno::UNO_QUERY );
1080 if( xTextTable.is() )
1088 uno::Reference< text::XTextRange > xStart = xText->getStart();
1089 uno::Reference< text::XTextRange > xEnd = xText->getEnd();
1102 throw uno::RuntimeException();
1120 if ( !
aIndex.hasValue() )
1121 throw uno::RuntimeException();
1129 throw uno::RuntimeException();
1131 uno::Reference< text::XTextRange > xTextRange =
mxTextViewCursor->getStart();
1132 uno::Reference< text::XText > xText = xTextRange->getText();
1133 uno::Reference< text::XParagraphCursor > xParaCursor( xText->createTextCursor(), uno::UNO_QUERY_THROW );
1134 xParaCursor->gotoStartOfParagraph(
false );
1135 xParaCursor->gotoStartOfParagraph(
true );
1137 uno::Reference< text::XTextDocument > xTextDoc(
mxModel, uno::UNO_QUERY_THROW );
1138 uno::Reference< text::XTextRange > xParaRange( xParaCursor, uno::UNO_QUERY_THROW );
1141 aRet <<= xParagraph;
1148 return "SwVbaSelection";
1151uno::Sequence< OUString >
1156 "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!
void SplitTable(SplitTable_HeadlineOption eMode)
Split table at cursor position.
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, const css::uno::Reference< css::frame::XModel > &rModel)
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