21#include <rtl/ustrbuf.hxx>
27#include <svtools/strings.hrc>
28#include <osl/diagnose.h>
62 bool bCreateXSelection =
false;
73 bCreateXSelection =
true;
75 else if ( bFrameSelected )
78 bCreateXSelection =
true;
84 bCreateXSelection =
true;
87 if( bCreateXSelection )
112 return SvtResId(pResStr) + aUndoStr;
130 for (
const OUString & comment : comments)
132 OSL_ENSURE(!comment.isEmpty(),
"no Undo/Redo Text set");
133 buf.append(comment +
"\n");
135 rStrs.
SetString(buf.makeStringAndClear());
void SetString(const OUString &)
const SwRect & GetCharRect() const
sal_uInt16 GetCntType() const
Determine form of content. Return Type at CurrentCursor->SPoint.
void StartAllAction()
For all views of this document.
void Repeat(sal_uInt16 const nCount)
bool GetFirstRedoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
bool GetLastUndoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
void Redo(sal_uInt16 const nCount=1)
void Undo(sal_uInt16 const nCount=1, sal_uInt16 nOffset=0)
void DoUndo(bool bOn=true)
Undo.
SwUndoId GetRepeatInfo(OUString *const o_pStr) const
bool IsFrameSelected() const
size_t IsObjSelected() const
bool SelectObj(const Point &rSelPt, sal_uInt8 nFlag=0, SdrObject *pObj=nullptr)
If an object has been given, exactly this object is selected (instead of searching over position).
static void CreateSelection(SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
IDocumentUndoRedo const & GetIDocumentUndoRedo() const
Provides access to the document undo/redo interface.
SAL_DLLPRIVATE tools::Long SetCursorKillSel(const Point *, bool bProp)
void EnterSelFrameMode(const Point *pStartDrag=nullptr)
OUString GetRepeatString() const
void GetDoStrings(DoType eDoType, SfxStringListItem &rStrLstItem) const
void Do(DoType eDoType, sal_uInt16 nCnt=1, sal_uInt16 nOffset=0)
tools::Long ResetSelect(const Point *, bool)
OUString GetDoString(DoType eDoType) const
SVT_DLLPUBLIC OUString SvtResId(TranslateId aId)
std::vector< OUString > SwUndoComments_t