33#include <unoprnms.hxx>
57#include <com/sun/star/beans/PropertyAttribute.hpp>
58#include <com/sun/star/drawing/ShapeCollection.hpp>
85using ::com::sun::star::util::URL;
119 uno::Reference<uno::XInterface>
const xInt(
static_cast<
121 lang::EventObject
aEvent(xInt);
133 uno::Reference< uno::XInterface > xInterface;
134 if (!
GetView() || !(aInterface >>= xInterface))
141 std::vector<SdrObject *> sdrObjects;
142 uno::Reference<awt::XControlModel>
const xCtrlModel(xInterface,
146 uno::Reference<awt::XControl> xControl;
150 sdrObjects.push_back(pSdrObject);
155 SwPaM * pPaM(
nullptr);
156 std::pair<OUString, FlyCntType> frame;
161 pPaM, frame,
tableName, pTableCursor, pMark, sdrObjects);
167 while (pPaM->
GetNext() != pPaM)
175 else if (!frame.first.isEmpty())
177 bool const bSuccess(rSh.
GotoFly(frame.first, frame.second));
191 else if (pTableCursor)
207 if (!sdrObjects.empty())
219 if (pPV && pSdrObject->getSdrPageFromSdrObject() == pPV->
GetPage())
221 pDrawView->
MarkObj(pSdrObject, pPV);
234 for (
size_t i = 1;
i < nMarkCount; ++
i)
238 if (pParent != pGroupParent)
240 pGroupParent =
nullptr;
249 pDrawView->
MarkObj(pGroupParent, pPV);
259 uno::Reference< uno::XInterface > aRef;
276 aRef.set(xCursor, uno::UNO_QUERY);
287 aRef.set(xPos, uno::UNO_QUERY);
296 *pFormat->
GetDoc(), pFormat).get());
306 *pFormat->
GetDoc(), pFormat).get());
316 *pFormat->
GetDoc(), pFormat).get());
325 uno::Reference< drawing::XShapes > xShCol = drawing::ShapeCollection::create(
335 aRef.set(xShCol, uno::UNO_QUERY);
346 const uno::Reference< view::XSelectionChangeListener > & rxListener)
353 const uno::Reference< view::XSelectionChangeListener > & rxListener)
360 const uno::Reference< awt::XControlModel > & xModel,
361 uno::Reference< awt::XControl >& xToFill )
368 OSL_ENSURE( pFormShell && pDrawView && pWindow,
"SwXTextView::GetControl: how could I?" );
371 if ( pFormShell && pDrawView && pWindow )
379 uno::Reference< awt::XControl > xRet;
392 OSL_ENSURE( pFormShell && pDrawView && pWindow,
"SwXTextView::getFormController: how could I?" );
394 uno::Reference< form::runtime::XFormController >
xController;
395 if ( pFormShell && pDrawView && pWindow )
422 throw uno::RuntimeException();
431uno::Reference<text::XTextRange>
436 Point aPixelPoint(rPixelPosition.X, rPixelPosition.Y);
456 aPosition = *pAnchor;
476 throw uno::RuntimeException();
498 return Sequence< Sequence< PropertyValue > > ();
503 Sequence< Sequence< PropertyValue > > aRet(
nCount);
504 Sequence< PropertyValue >* pRet = aRet.getArray();
510 const OUString& rEntryText = pEntry->
GetText();
514 PropertyValue*
pValues = pRet[
n].getArray();
516 pValues[0].Value <<= rEntryText;
533 const Sequence< Sequence< PropertyValue > >& rRubyList,
sal_Bool )
537 if(!
GetView() || !rRubyList.hasElements())
549 for(
const Sequence<PropertyValue>& rPropList : rRubyList)
553 for(
const PropertyValue& rProperty : rPropList)
557 rProperty.Value >>= sTmp;
558 pEntry->SetText(sTmp);
562 rProperty.Value >>= sTmp;
563 pEntry->GetRubyAttr().SetText(sTmp);
567 if(rProperty.Value >>= sTmp)
571 const sal_uInt16 nPoolId =
sName.isEmpty() ? 0
575 pEntry->GetRubyAttr().SetCharFormatName(
sName );
576 pEntry->GetRubyAttr().SetCharFormatId( nPoolId );
582 if(rProperty.Value >>= nTmp)
583 pEntry->GetRubyAttr().SetAdjustment(
static_cast<css::text::RubyAdjust
>(nTmp));
587 bool bValue = !rProperty.Value.hasValue() ||
588 *o3tl::doAccess<bool>(rProperty.Value);
589 pEntry->GetRubyAttr().SetPosition(bValue ? 0 : 1);
594 if(rProperty.Value >>= nTmp)
595 pEntry->GetRubyAttr().SetPosition( nTmp );
598 aList.push_back(std::move(pEntry));
617 pDocView->AttrChangedNotify(
nullptr);
642 OSL_ENSURE(
m_pView,
"view is missing" );
644 uno::Reference<uno::XInterface>
const xInt(
647 lang::EventObject
const aEvent(xInt);
649 &view::XSelectionChangeListener::selectionChanged,
aEvent);
658 [&
aURL] (
const uno::Reference<XSelectionChangeListener>& xListener)
660 uno::Reference<XDispatch>
xDispatch(xListener, UNO_QUERY);
674 const OUString& rPropertyName,
const uno::Any& rValue )
679 throw UnknownPropertyException(rPropertyName);
680 else if (pEntry->
nFlags & PropertyAttribute::READONLY)
681 throw PropertyVetoException();
684 switch (pEntry->
nWID)
693 if (!pOpt || !(rValue >>= bVal))
702 OSL_FAIL(
"unknown WID");
708 const OUString& rPropertyName )
716 throw UnknownPropertyException(rPropertyName);
718 sal_Int16 nWID = pEntry->
nWID;
748 OSL_FAIL(
"unknown WID");
756 const uno::Reference< beans::XPropertyChangeListener >& )
758 OSL_FAIL(
"not implemented");
763 const uno::Reference< beans::XPropertyChangeListener >& )
765 OSL_FAIL(
"not implemented");
770 const uno::Reference< beans::XVetoableChangeListener >& )
772 OSL_FAIL(
"not implemented");
777 const uno::Reference< beans::XVetoableChangeListener >& )
779 OSL_FAIL(
"not implemented");
784 return "SwXTextView";
794 return {
"com.sun.star.text.TextDocumentView",
"com.sun.star.view.OfficeDocumentView" };
819 OSL_ENSURE(
m_pView,
"m_pView is NULL ???");
834 OSL_FAIL(
"not implemented");
840 OSL_FAIL(
"not implemented");
848 throw uno::RuntimeException();
870 throw uno::RuntimeException();
873 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
892 throw uno::RuntimeException();
895 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
915 throw uno::RuntimeException();
918 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
932 throw uno::RuntimeException();
935 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
947 throw uno::RuntimeException();
950 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
959 const uno::Reference< text::XTextRange > & xRange,
964 throw uno::RuntimeException();
967 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
972 throw uno::RuntimeException();
994 OTextCursorHelper* pCursor =
dynamic_cast<OTextCursorHelper*
>(xRange.get());
1011 FindSttNodeByType(eSearchNodeType);
1013 const SwNode* pSrcNode =
nullptr;
1014 if(pCursor && pCursor->GetPaM())
1016 pSrcNode = &pCursor->GetPaM()->GetPointNode();
1044 (pOwnStartNode != pTmp ||
1049 throw uno::RuntimeException();
1058 auto [pParamLeft, pParamRight] = rDestPam.
StartEnd();
1060 if(aOwnRight > *pParamRight)
1063 *aOwnPaM.
GetPoint() = *pParamRight;
1065 if(aOwnLeft < *pParamLeft)
1066 *aOwnPaM.
GetMark() = aOwnLeft;
1068 *aOwnPaM.
GetMark() = *pParamLeft;
1092 throw uno::RuntimeException();
1095 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1106 throw uno::RuntimeException();
1109 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1120 throw uno::RuntimeException();
1139 throw uno::RuntimeException();
1159 throw uno::RuntimeException();
1171 throw uno::RuntimeException();
1183 throw uno::RuntimeException();
1195 throw uno::RuntimeException();
1207 throw uno::RuntimeException();
1219 throw uno::RuntimeException();
1223 nRet =
static_cast<sal_Int16
>(pShellCursor->
GetPageNum());
1233 throw uno::RuntimeException();
1248 throw uno::RuntimeException();
1261 uno::Reference< text::XText > xRet;
1263 throw uno::RuntimeException();
1266 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1279 uno::Reference< text::XTextRange > xRet;
1281 throw uno::RuntimeException();
1284 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1299 throw uno::RuntimeException();
1302 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1355 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1397 *pShellCursor, *
m_pPropSet, rPropertyName, aValue );
1418 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
1423 const OUString& ,
const uno::Reference< XPropertyChangeListener >& )
1428 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
1433 const OUString& ,
const uno::Reference< XVetoableChangeListener >& )
1440 PropertyState eState;
1453 const Sequence< OUString >& rPropertyNames )
1456 Sequence< PropertyState > aRet;
1499 throw uno::RuntimeException();
1502 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1515 throw uno::RuntimeException();
1518 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1530 throw uno::RuntimeException();
1533 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1545 throw uno::RuntimeException();
1548 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1559 throw uno::RuntimeException();
1562 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1572 throw uno::RuntimeException();
1575 throw uno::RuntimeException(
"no text selection",
static_cast < cppu::OWeakObject *
> (
this ) );
1583 return "SwXTextViewCursor";
1593 return {
"com.sun.star.text.TextViewCursor",
1594 "com.sun.star.style.CharacterProperties",
1595 "com.sun.star.style.CharacterPropertiesAsian",
1596 "com.sun.star.style.CharacterPropertiesComplex",
1597 "com.sun.star.style.ParagraphProperties",
1598 "com.sun.star.style.ParagraphPropertiesAsian",
1599 "com.sun.star.style.ParagraphPropertiesComplex" };
1626uno::Reference<datatransfer::XTransferable> SAL_CALL
1635 throw uno::RuntimeException(
"invalid text range");
1644 pTransfer->PrepareForCopyTextRange(aPam);
1667 pTransfer->PrepareForCopy();
1694 GetView()->AttrChangedNotify(
nullptr);
const PropertyValue * pValues
constexpr auto convertTwipToMm100(N n)
css::uno::Reference< css::datatransfer::XTransferable > GetTransferable() const
void InsertText(const OUString &rNew, bool bSelect=false, bool bLOKShowSelect=true)
Provides access to the formatting devices of a document.
virtual const JobSetup * getJobsetup() const =0
Returns the Jobsetup.
virtual SfxPrinter * getPrinter(bool bCreate) const =0
Return the printer set at the document.
virtual void setJobsetup(const JobSetup &rJobSetup)=0
Sets the Jobsetup.
EditView & GetEditView() const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
bool MarkObj(const Point &rPnt, short nTol=-2, bool bToggle=false, bool bDeep=false)
SdrObject * GetMarkedSdrObj() const
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false)
const OutlinerView * GetTextEditOutlinerView() const
size_t GetObjCount() const
virtual SdrObjList * getChildrenOfSdrObject() const
bool IsGroupObject() const
SdrPage * GetPage() const
SdrPageView * GetSdrPageView() const
const SfxItemPropertyMapEntry * getByName(std::u16string_view rName) const
const SfxItemPropertyMap & getPropertyMap() const
css::uno::Reference< css::beans::XPropertySetInfo > const & getPropertySetInfo() const
const SfxPoolItem * GetReturnValue() const
SfxItemPool & GetPool() const
SfxViewShell * GetViewShell() const
static SfxViewFrame * LoadHiddenDocument(SfxObjectShell const &i_rDoc, SfxInterfaceId i_nViewId)
tools::Long GetLeft() const
sal_uInt16 GetUpper() const
bool IsAtLeftMargin() const
const SwRect & GetCharRect() const
void SetSelection(const SwPaM &rCursor)
bool SttEndDoc(bool bStt)
virtual SwCursor & GetCurrentShellCursor() override
Return the current shell cursor.
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
const SwShellTableCursor * GetTableCursor() const
bool IsAtRightMargin() const
SwDoc * GetDoc()
returns Doc. But be careful!
void SetClipBoard(bool bNew)
static sal_uInt16 FillRubyList(const SwPaM &rPam, SwRubyList &rList)
void SetRubyList(const SwPaM &rPam, const SwRubyList &rList)
virtual void CalcLayout() override
To enable set up of StartActions and EndActions.
SwFrameFormat * GetTableFormat()
FrameTypeFlags GetFrameType(const Point *pPt, bool bStopAtFly) const
For return values see above FrameType.
bool IsFrameSelected() const
size_t GetCurPageDesc(const bool bCalcFrame=true) const
size_t IsObjSelected() const
const SwPageDesc & GetPageDesc(size_t i) const
const SwFrameFormat * GetFlyFrameFormat() const
Get FlyFrameFormat; for UI macro linkage at Flys.
static css::uno::Reference< css::drawing::XShape > GetShape(SdrObject *pObj)
Base class of the Writer document model elements.
SwFrameFormat * GetFlyFormat() const
If node is in a fly return the respective format.
bool IsSectionNode() const
SwStartNode * FindSttNodeByType(SwStartNodeType eTyp)
const SwStartNode * StartOfSectionNode() const
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
SwNode & GetPointNode() const
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
std::pair< const SwPosition *, const SwPosition * > StartEnd() const
Because sometimes the cost of the operator<= can add up.
const SwPosition * End() const
sal_uInt16 GetPageNum(bool bAtPoint=true, const Point *pLayPos=nullptr)
Get number of page which contains cursor.
const SwPosition * GetPoint() const
const SwPosition * Start() const
bool HasMark() const
A PaM marks a selection if Point and Mark are distinct positions.
SwFrameFormat & GetMaster()
Of course Writer needs its own rectangles.
void Top(const tools::Long nTop)
void Left(const tools::Long nLeft)
virtual bool GetModelPositionForViewPoint(SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const override
Primary passes the call to the first page.
const OUString & GetText() const
const SwFormatRuby & GetRubyAttr() const
Starts a section of nodes in the document model.
static SW_DLLPUBLIC sal_uInt16 GetPoolIdFromUIName(const OUString &rName, SwGetPoolIdFromName)
static void FillProgName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
static void FillUIName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
static bool Paste(SwWrtShell &, TransferableDataHelper &, RndStdIds nAnchorType=RndStdIds::FLY_AT_PARA, bool bIgnoreComments=false, PasteTableType ePasteTable=PasteTableType::PASTE_DEFAULT)
static bool IsPaste(const SwWrtShell &, const TransferableDataHelper &)
void SetOnlineSpell(bool b)
bool IsOnlineSpell() const
bool IsViewLocked() const
const SwViewOption * GetViewOptions() const
const IDocumentDeviceAccess & getIDocumentDeviceAccess() const
Provides access to the document device interface.
SwRootFrame * GetLayout() const
vcl::Window * GetWin() const
void FillPrtDoc(SwDoc &rPrtDoc, const SfxPrinter *pPrt)
sal_uInt16 GetPageCount() const
SwWrtShell & GetWrtShell() const
virtual SdrView * GetDrawView() const override
virtual FmFormShell * GetFormShell() override
void Execute(SfxRequest &)
SwWrtShell * GetWrtShellPtr() const
ShellMode GetShellMode() const
SwDocShell * GetDocShell()
Used by the UI to modify the document model.
bool IsSelFrameMode() const
bool Down(bool bSelect, sal_uInt16 nCount=1, bool bBasicCall=false)
bool EndPg(bool bSelect=false)
void EnterSelFrameMode(const Point *pStartDrag=nullptr)
bool EndPrvPg(bool bSelect=false)
bool Right(SwCursorSkipMode nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
bool GotoPage(sal_uInt16 nPage, bool bRecord)
void GotoMark(const ::sw::mark::IMark *const pMark)
bool Left(SwCursorSkipMode nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
bool GotoFly(const OUString &rName, FlyCntType eType=FLYCNTTYPE_ALL, bool bSelFrame=true)
SelectionType GetSelectionType() const
bool SttNxtPg(bool bSelect=false)
bool SttPg(bool bSelect=false)
bool GotoTable(const OUString &rName)
bool RightMargin(bool bSelect, bool bBasicCall)
virtual void ApplyViewOptions(const SwViewOption &rOpt) override
Apply ViewOptions with Start-/EndAction.
bool LeftMargin(bool bSelect, bool bBasicCall)
bool Up(bool bSelect, sal_uInt16 nCount=1, bool bBasicCall=false)
bool HasSelection() const
bool EndOfSection(bool bSelect=false)
bool StartOfSection(bool bSelect=false)
static const char * GetDBChangeURL()
const SwTextNode * GetTextNode() const
static rtl::Reference< SwXTextEmbeddedObject > CreateXTextEmbeddedObject(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
static SW_DLLPUBLIC rtl::Reference< SwXTextFrame > CreateXTextFrame(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
static rtl::Reference< SwXTextGraphicObject > CreateXTextGraphicObject(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
virtual sal_Bool SAL_CALL jumpToNextPage() override
virtual sal_Bool SAL_CALL jumpToFirstPage() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL collapseToEnd() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual css::awt::Point SAL_CALL getPosition() override
virtual sal_Bool SAL_CALL isCollapsed() override
virtual ~SwXTextViewCursor() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL gotoEndOfLine(sal_Bool bExpand) override
const SfxItemPropertySet * m_pPropSet
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
SwXTextViewCursor(SwView *pVw)
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
bool IsTextSelection(bool bAllowTables=true) const
virtual const SwDoc * GetDoc() const override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override
virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand) override
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual sal_Bool SAL_CALL isAtEndOfLine() override
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL goRight(sal_Int16 nCount, sal_Bool bExpand) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL isVisible() override
virtual OUString SAL_CALL getString() override
virtual void SAL_CALL collapseToStart() override
virtual void SAL_CALL gotoStart(sal_Bool bExpand) override
virtual sal_Bool SAL_CALL jumpToStartOfPage() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Int16 SAL_CALL getPage() override
virtual sal_Bool SAL_CALL screenDown() override
virtual void SAL_CALL gotoStartOfLine(sal_Bool bExpand) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
virtual sal_Bool SAL_CALL jumpToLastPage() override
virtual void SAL_CALL setString(const OUString &aString) override
virtual sal_Bool SAL_CALL isAtStartOfLine() override
virtual sal_Bool SAL_CALL goLeft(sal_Int16 nCount, sal_Bool bExpand) override
virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand) override
virtual void SAL_CALL setVisible(sal_Bool bVisible) override
virtual sal_Bool SAL_CALL jumpToEndOfPage() override
virtual sal_Bool SAL_CALL jumpToPreviousPage() override
virtual sal_Bool SAL_CALL screenUp() override
virtual const SwPaM * GetPaM() const override
virtual void SAL_CALL gotoRange(const css::uno::Reference< css::text::XTextRange > &xRange, sal_Bool bExpand) override
virtual void SAL_CALL gotoEnd(sal_Bool bExpand) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override
virtual sal_Bool SAL_CALL jumpToPage(sal_Int16 nPage) override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
virtual void SAL_CALL insertTransferable(const css::uno::Reference< css::datatransfer::XTransferable > &xTrans) override
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getViewSettings() override
css::uno::Reference< css::beans::XPropertySet > mxViewSettings
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL getTransferableForTextRange(css::uno::Reference< css::text::XTextRange > const &xTextRange) override
virtual ~SwXTextView() override
virtual css::uno::Reference< css::text::XTextViewCursor > SAL_CALL getViewCursor() override
virtual void SAL_CALL setRubyList(const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &RubyList, sal_Bool bAutomatic) override
virtual css::uno::Any SAL_CALL getSelection() override
virtual css::uno::Reference< css::awt::XControl > SAL_CALL getControl(const css::uno::Reference< css::awt::XControlModel > &Model) override
virtual void SAL_CALL removeSelectionChangeListener(const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override
virtual css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > SAL_CALL getRubyList(sal_Bool bAutomatic) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL addSelectionChangeListener(const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
SfxObjectShellLock BuildTmpSelectionDoc()
virtual sal_Bool SAL_CALL isFormDesignMode() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
SdrObject * GetControl(const css::uno::Reference< css::awt::XControlModel > &Model, css::uno::Reference< css::awt::XControl > &xToFill)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL getTransferable() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
css::uno::Reference< css::text::XTextViewCursor > mxTextViewCursor
::comphelper::OInterfaceContainerHelper3< css::view::XSelectionChangeListener > m_SelChangedListeners
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual sal_Bool SAL_CALL select(const css::uno::Any &rInterface) override
SwXTextView(SwView *pSwView)
virtual css::uno::Reference< css::form::runtime::XFormController > SAL_CALL getFormController(const css::uno::Reference< css::form::XForm > &Form) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL setFormDesignMode(sal_Bool DesignMode) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL createTextRangeByPixelPosition(const css::awt::Point &rPixelPosition) override
const SfxItemPropertySet * m_pPropSet
Implements com.sun.star.text.ViewSettings: UNO access to per-view settings (e.g.
sal_Int32 addInterface(const css::uno::Reference< ListenerT > &rxIFace)
void disposeAndClear(const css::lang::EventObject &rEvt)
sal_Int32 removeInterface(const css::uno::Reference< ListenerT > &rxIFace)
void notifyEach(void(SAL_CALL ListenerT::*NotificationMethod)(const EventT &), const EventT &Event)
void forEach(FuncT const &func)
::OutputDevice const * GetOutDev() const
Point PixelToLogic(const Point &rDevicePt) const
Reference< XDispatch > xDispatch
std::vector< std::unique_ptr< SwRubyListEntry > > SwRubyList
EmbeddedObjectRef * pObject
FrameTypeFlags
values can be combined via logical or
#define SAL_WARN(area, stream)
void SetPropertyValue(SwPaM &rPaM, const SfxItemPropertySet &rPropSet, const OUString &rPropertyName, const css::uno::Any &rValue, const SetAttrMode nAttrMode=SetAttrMode::DEFAULT)
css::beans::PropertyState GetPropertyState(SwPaM &rPaM, const SfxItemPropertySet &rPropSet, const OUString &rPropertyName)
void SetPropertyToDefault(SwPaM &rPaM, const SfxItemPropertySet &rPropSet, std::u16string_view rPropertyName)
void SetString(SwCursor &rCursor, std::u16string_view aString)
css::uno::Any GetPropertyValue(SwPaM &rPaM, const SfxItemPropertySet &rPropSet, std::u16string_view rPropertyName)
void GetTextFromPam(SwPaM &rPam, OUString &rBuffer, SwRootFrame const *pLayout=nullptr)
css::uno::Sequence< css::beans::PropertyState > GetPropertyStates(SwPaM &rPaM, const SfxItemPropertySet &rPropSet, const css::uno::Sequence< OUString > &rPropertyNames, const SwGetPropertyStatesCaller eCaller=SW_PROPERTY_STATE_CALLER_DEFAULT)
void GetSelectableFromAny(uno::Reference< uno::XInterface > const &xIfc, SwDoc &rTargetDoc, SwPaM *&o_rpPaM, std::pair< OUString, FlyCntType > &o_rFrame, OUString &o_rTableName, SwUnoTableCursor const *&o_rpTableCursor, ::sw::mark::IMark const *&o_rpMark, std::vector< SdrObject * > &o_rSdrObjects)
css::uno::Any GetPropertyDefault(SwPaM const &rPaM, const SfxItemPropertySet &rPropSet, std::u16string_view rPropertyName)
Reference< XComponentContext > getProcessComponentContext()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
uno::Reference< text::XText > CreateParentXText(SwDoc &rDoc, const SwPosition &rPos)
bool XTextRangeToSwPaM(SwUnoInternalPaM &rToFill, const uno::Reference< text::XTextRange > &xTextRange, ::sw::TextRangeMode const eMode)
constexpr auto SFX_INTERFACE_NONE
Marks a position in the document model.
Reference< XController > xController
Reference< XModel > xModel
constexpr SwTwips DOCUMENTBORDER
SwUnoPropertyMapProvider aSwMapProvider
#define PROPERTY_MAP_TEXT_CURSOR
#define WID_IS_CONSTANT_SPELLCHECK
#define WID_IS_HIDE_SPELL_MARKS
#define PROPERTY_MAP_TEXT_VIEW
constexpr OUStringLiteral UNO_NAME_RUBY_POSITION
constexpr OUStringLiteral UNO_NAME_RUBY_ADJUST
constexpr OUStringLiteral UNO_NAME_RUBY_TEXT
constexpr OUStringLiteral UNO_NAME_RUBY_IS_ABOVE
constexpr OUStringLiteral UNO_NAME_RUBY_BASE_TEXT
constexpr OUStringLiteral UNO_NAME_RUBY_CHAR_STYLE_NAME
cppu::ImplInheritanceHelper< SfxBaseController, css::view::XSelectionSupplier, css::lang::XServiceInfo, css::view::XFormLayerAccess, css::text::XTextViewCursorSupplier, css::text::XTextViewTextRangeSupplier, css::text::XRubySelection, css::view::XViewSettingsSupplier, css::beans::XPropertySet, css::datatransfer::XTransferableSupplier, css::datatransfer::XTransferableTextSupplier > SwXTextView_Base