20 #ifndef INCLUDED_SW_INC_ANNOTATIONWIN_HXX
21 #define INCLUDED_SW_INC_ANNOTATIONWIN_HXX
49 class SidebarTextControl;
50 class AnchorOverlayObject;
51 class ShadowOverlayObject;
65 virtual void dispose()
override;
72 void UpdateText(
const OUString& aText);
74 OUString GetAuthor()
const;
78 sal_uInt32 MoveCaret();
81 sal_uInt32 CalcParent();
84 bool IsProtected()
const;
86 void SetSize(
const Size& rNewSize );
94 void TranslateTopPosition(
const tools::Long aAmount);
107 bool HasScrollbar()
const;
108 bool IsScrollbarVisible()
const;
115 void SwitchToPostIt(sal_uInt16 aDirection);
116 void SwitchToFieldPos();
118 void ExecuteCommand(sal_uInt16 nSlot);
124 void SetVirtualPosSize(
const Point& aPoint,
const Size& aSize);
128 void ShowAnchorOnly(
const Point &aPoint);
132 void ResetAttributes();
135 void SetReadonly(
bool bSet);
149 void SetFollow(
bool bIsFollow) { mbIsFollow = bIsFollow; };
151 sal_Int32 GetMetaHeight()
const;
152 sal_Int32 GetMinimumSizeWithMeta()
const;
153 sal_Int32 GetMinimumSizeWithoutMeta()
const;
154 int GetPrefScrollbarWidth()
const;
155 sal_Int32 GetNumFields()
const;
157 void SetSpellChecking();
159 void ToggleInsMode();
161 void ActivatePostIt();
162 void DeactivatePostIt();
165 const Color& aColor);
173 void ChangeSidebarItem(
SwSidebarItem const & rSidebarItem );
174 virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible()
override;
176 void DrawForPage(
OutputDevice* pDev,
const Point& rPos);
180 bool IsHitWindow(
const Point& rPointLogic);
182 void SetCursorLogicPosition(
const Point& rPosition,
bool bPoint,
bool bClearMark);
185 void SetResolved(
bool resolved);
186 void ToggleResolved();
187 void ToggleResolvedForThread();
189 bool IsResolved()
const;
190 bool IsThreadResolved();
194 bool SetActiveSidebarWin();
196 void UnsetActiveSidebarWin();
209 void SetSizePixel(
const Size& rNewSize )
override;
216 DECL_LINK(SelectHdl,
const OString&,
void);
220 sal_uInt32 CountFollowing();
241 std::unique_ptr<sw::sidebarwindows::AnchorOverlayObject>
mpAnchor;
242 std::unique_ptr<sw::sidebarwindows::ShadowOverlayObject>
mpShadow;
std::unique_ptr< weld::Label > mxMetadataDate
Base class of the Writer layout elements.
std::unique_ptr< weld::ScrolledWindow > mxVScrollbar
std::vector< basegfx::B2DRange > maAnnotationTextRanges
std::unique_ptr< weld::Label > mxMetadataResolved
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
const SwRect & GetAnchorRect() const
#define DECL_LINK(Member, ArgType, RetType)
SwPostItHelper::SwLayoutStatus mLayoutStatus
::sw::overlay::OverlayRanges * TextRange()
SwSidebarItem & GetSidebarItem()
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
const Color & ColorLight()
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
Any GetTime(const OUString &val)
std::unique_ptr< sw::sidebarwindows::ShadowOverlayObject > mpShadow
tools::Rectangle mPosSize
Of course Writer needs its own rectangles.
const SwPostItField * GetPostItField() const
SwSidebarItem & mrSidebarItem
std::unique_ptr< weld::MenuButton > mxMenuButton
std::unique_ptr< sw::overlay::OverlayRanges > mpTextRangeOverlay
std::unique_ptr< Outliner > mpOutliner
bool IsAnchorRectChanged() const
std::unique_ptr< OutlinerView > mpOutlinerView
const SwFrame * mpAnchorFrame
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
const Color & GetChangeColor() const
Point const & GetAnchorPos()
::sw::sidebarwindows::AnchorOverlayObject * Anchor()
void SetFollow(bool bIsFollow)
std::unique_ptr< weld::CustomWeld > mxSidebarTextControlWin
SwFormatField * mpFormatField
sw::sidebarwindows::SidebarPosition meSidebarPosition
bool mbResolvedStateUpdated
const std::vector< basegfx::B2DRange > & GetAnnotationTextRanges() const
std::unique_ptr< sw::sidebarwindows::AnchorOverlayObject > mpAnchor
void ResetAnchorRectChanged()
bool IsMouseOverSidebarWin() const
OutlinerView * GetOutlinerView()
::sw::sidebarwindows::ShadowOverlayObject * Shadow()
void SetLanguage(SwWrtShell &rWrtSh, std::u16string_view rLangText, bool bIsForSelection, SfxItemSet &rCoreSet)
std::unique_ptr< sw::sidebarwindows::SidebarTextControl > mxSidebarTextControl
std::unique_ptr< weld::Label > mxMetadataAuthor
const Color & ColorDark()