32#include <com/sun/star/accessibility/XAccessible.hpp>
36#include <drawview.hxx>
38#include <document.hxx>
55 bool bLeftEdge =
false;
89 pFoundContent = pAction;
105 GetFromRange().MakeRange( rDoc );
118 pFound = pFoundContent;
136 if(!aComStr.isEmpty())
138 aTrackText += aComStr +
"\n( ";
142 if(!aComStr.isEmpty())
151 if ( (!aTrackText.isEmpty()) || (pNote && !pNote->
IsCaptionShown()) )
180 OSL_ENSURE( pLeft,
"ScGridWindow::ShowNoteMarker - missing top-left grid window" );
187 if( (
this == pRight) || (
this == pDiagonal) )
189 if( (
this == pBottom) || (
this == pDiagonal) )
194 &rDoc, aCellPos, aTrackText,
195 aMapMode, bLeftEdge, bFast, bKeyboard));
207 OUString aFormulaText;
209 bool bHelpEnabled = bool(rHEvt.
GetMode() & ( HelpEventMode::BALLOON | HelpEventMode::QUICK ));
211 bool bDrawTextEdit =
false;
215 if ( bHelpEnabled && !bDrawTextEdit )
227 Window::RequestHelp( rHEvt );
233 aFormulaText = rDoc.
GetFormula( nPosX, nPosY, nTab );
234 if ( !aFormulaText.isEmpty() ) {
253 if ( !aFormulaText.isEmpty() )
257 if ( rHEvt.
GetMode() & HelpEventMode::BALLOON )
259 else if ( rHEvt.
GetMode() & HelpEventMode::QUICK )
278 if ( eHit != SdrHitKind::NONE && aVEvt.
mpObj !=
nullptr )
291 if (aHelpText.isEmpty())
297 if ( aHelpText.isEmpty() )
299 if( aVEvt.
meEvent == SdrEventKind::ExecuteUrl )
330 if ( aHelpText.isEmpty() )
333 if (
GetEditUrl( aPosPixel,
nullptr, &aUrl ) )
350 if ( !aHelpText.isEmpty() )
355 if ( rHEvt.
GetMode() & HelpEventMode::BALLOON )
357 else if ( rHEvt.
GetMode() & HelpEventMode::QUICK )
366 if ( pDrView && bHelpEnabled && !bDone )
369 OSL_ENSURE( pPV,
"SdrPageView* is NULL" );
381 Window::RequestHelp( rHEvt );
395css::uno::Reference< css::accessibility::XAccessible >
398 css::uno::Reference< css::accessibility::XAccessible > xAcc=
GetAccessible(
false);
407 pAccessibleDocument->PreInit();
409 xAcc = pAccessibleDocument;
412 pAccessibleDocument->Init();
static bool RequestHelp(vcl::Window *pWin, SdrView const *pView, const HelpEvent &rEvt)
HelpEventMode GetMode() const
const Point & GetMousePosPixel() const
static bool IsQuickHelpEnabled()
static void ShowQuickHelp(vcl::Window *pParent, const tools::Rectangle &rScreenRect, const OUString &rHelpText, QuickHelpFlags nStyle=QuickHelpFlags::NONE)
static void ShowBalloon(vcl::Window *pParent, const Point &rScreenPos, const tools::Rectangle &, const OUString &rHelpText)
const OUString & GetAltText() const
const OUString & GetURL() const
static OUString decode(std::u16string_view rText, DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
OUString getDate(const Date &rDate) const
OUString getTime(const tools::Time &rTime, bool bSec=true, bool b100Sec=false) const
void SetOrigin(const Point &rOrigin)
const Point & GetOrigin() const
constexpr tools::Long Y() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
ScRange MakeRange(const ScDocument &rDoc) const
const OUString & GetComment() const
ScBigRange & GetBigRange()
sal_uLong GetActionNumber() const
ScChangeActionType GetType() const
virtual OUString GetDescription(ScDocument &rDoc, bool bSplitRange=false, bool bWarning=true) const
ScChangeAction * GetNext() const
SC_DLLPUBLIC DateTime GetDateTime() const
const OUString & GetUser() const
ScChangeAction * GetFirst() const
SC_DLLPUBLIC ScPostIt * GetNote(const ScAddress &rPos)
ScChangeViewSettings * GetChangeViewSettings() const
SC_DLLPUBLIC ScDrawLayer * GetDrawLayer()
SC_DLLPUBLIC OUString GetFormula(SCCOL nCol, SCROW nRow, SCTAB nTab) const
ScChangeTrack * GetChangeTrack() const
SC_DLLPUBLIC const ScPatternAttr * GetPattern(SCCOL nCol, SCROW nRow, SCTAB nTab) const
static SC_DLLPUBLIC const LocaleDataWrapper & getLocaleData()
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
bool IsMyModel(const SdrEditView *pSdrView)
bool ShowNoteMarker(SCCOL nPosX, SCROW nPosY, bool bKeyboard)
MapMode GetDrawMapMode(bool bForce=false)
MapMode for the drawinglayer objects.
bool GetEditUrl(const Point &rPos, OUString *pName=nullptr, OUString *pUrl=nullptr, OUString *pTarget=nullptr)
std::unique_ptr< ScNoteMarker, o3tl::default_delete< ScNoteMarker > > mpNoteMarker
virtual void RequestHelp(const HelpEvent &rEvt) override
Additional class containing cell annotation data.
bool IsCaptionShown() const
Returns true, if the caption object is visible.
bool Contains(const ScAddress &) const
is Address& fully in Range?
vcl::Window * GetWindowByPos(ScSplitPos ePos) const
const ScViewOptions & GetOptions() const
ScDocument & GetDocument() const
ScRefType GetRefType() const
ScSplitMode GetHSplitMode() const
void GetPosFromPixel(tools::Long nClickX, tools::Long nClickY, ScSplitPos eWhich, SCCOL &rPosX, SCROW &rPosY, bool bTestMerge=true, bool bRepair=false, SCTAB nForTab=-1)
ScTabViewShell * GetViewShell() const
ScDBFunc * GetView() const
ScSplitMode GetVSplitMode() const
tools::Rectangle GetEditArea(ScSplitPos eWhich, SCCOL nPosX, SCROW nPosY, vcl::Window *pWin, const ScPatternAttr *pPattern, bool bForceToTop, bool bInPrintTwips=false)
ScDrawView * GetScDrawView()
bool GetOption(ScViewOption eOpt) const
static bool IsActionShown(const ScChangeAction &rAction, const ScChangeViewSettings &rSettings, ScDocument &rDocument)
SdrObject * PickObj(const Point &rPnt, short nTol, SdrPageView *&rpPV, SdrSearchOptions nOptions, SdrObject **ppRootObj, bool *pbHitPassDirect=nullptr) const
virtual bool IsTextEdit() const final override
const OUString & getHyperlink() const
bool IsGroupObject() const
virtual const tools::Rectangle & GetLogicRect() const
SdrPageView * GetSdrPageView() const
SdrModel & GetModel() const
sal_uInt16 getHitTolLog() const
SdrHitKind PickAnything(const MouseEvent &rMEvt, SdrMouseEventKind nMouseDownOrMoveOrUp, SdrViewEvent &rVEvt) const
static OUString GetURLHelpText(std::u16string_view)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
static SvxIMapInfo * GetIMapInfo(const SdrObject *pObject)
static IMapObject * GetHitIMapObject(const SdrObject *pObj, const Point &rWinPoint, const OutputDevice *pCmpWnd=nullptr)
const OUString & GetURL() const
Point OutputToScreenPixel(const Point &rPos) const
Point LogicToPixel(const Point &rLogicPt) const
void SetAccessible(const css::uno::Reference< css::accessibility::XAccessible > &)
vcl::Window * GetAccessibleParentWindow() const
::OutputDevice const * GetOutDev() const
Point PixelToLogic(const Point &rDevicePt) const
css::uno::Reference< css::accessibility::XAccessible > GetAccessible(bool bCreate=true)
Size GetOutputSizePixel() const
Point ScreenToOutputPixel(const Point &rPos) const
const SvxURLField * mpURLField