LibreOffice Module sw (master)
1
|
#include <AnnotationWin.hxx>
Private Member Functions | |
virtual void | LoseFocus () override |
virtual void | GetFocus () override |
void | SetSizePixel (const Size &rNewSize) override |
SfxItemSet | DefaultItem () |
DECL_DLLPRIVATE_LINK (ModifyHdl, LinkParamNone *, void) | |
DECL_DLLPRIVATE_LINK (ScrollHdl, weld::ScrolledWindow &, void) | |
DECL_DLLPRIVATE_LINK (DeleteHdl, void *, void) | |
DECL_DLLPRIVATE_LINK (ToggleHdl, weld::Toggleable &, void) | |
DECL_DLLPRIVATE_LINK (SelectHdl, const OString &, void) | |
DECL_DLLPRIVATE_LINK (KeyInputHdl, const KeyEvent &, bool) | |
DECL_DLLPRIVATE_LINK (MouseMoveHdl, const MouseEvent &, bool) | |
sal_uInt32 | CountFollowing () |
SvxLanguageItem | GetLanguage () const |
void | SetMenuButtonColors () |
Additional Inherited Members | |
![]() | |
static SAL_DLLPRIVATE void | ImplInitAppFontData (vcl::Window const *pWindow) |
static SAL_DLLPRIVATE void | ImplCalcSymbolRect (tools::Rectangle &rRect) |
static DockingManager * | GetDockingManager () |
static VclPtr< vcl::Window > | SaveFocus () |
static void | EndSaveFocus (const VclPtr< vcl::Window > &xFocusWin) |
static VclPtr< vcl::Window > | FindLOKWindow (vcl::LOKWindowId nWindowId) |
static bool | IsLOKWindowsEmpty () |
static OUString | GetNonMnemonicString (const OUString &rStr) |
![]() | |
InterimItemWindow (vcl::Window *pParent, const OUString &rUIXMLDescription, const OString &rID, bool bAllowCycleFocusOut=true, sal_uInt64 nLOKWindowId=0) | |
void | InitControlBase (weld::Widget *pWidget) |
bool | ChildKeyInput (const KeyEvent &rKEvt) |
virtual void | Layout () |
void | UnclipVisibleSysObj () |
![]() | |
Control (WindowType nType) | |
virtual void | FillLayoutData () const |
void | AppendLayoutData (const Control &rSubControl) const |
void | CreateLayoutData () const |
bool | HasLayoutData () const |
bool | ImplCallEventListenersAndHandler (VclEventId nEvent, std::function< void()> const &callHandler) |
void | CallEventListeners (VclEventId nEvent, void *pData=nullptr) |
tools::Rectangle | DrawControlText (OutputDevice &_rTargetDevice, const tools::Rectangle &_rRect, const OUString &_rStr, DrawTextFlags _nStyle, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText, const Size *i_pDeviceSize=nullptr) const |
tools::Rectangle | GetControlTextRect (OutputDevice &_rTargetDevice, const tools::Rectangle &rRect, const OUString &_rStr, DrawTextFlags _nStyle, Size *o_pDeviceSize=nullptr) const |
virtual const vcl::Font & | GetCanonicalFont (const StyleSettings &_rStyle) const |
virtual const Color & | GetCanonicalTextColor (const StyleSettings &_rStyle) const |
void | ImplInitSettings () |
virtual void | ApplySettings (vcl::RenderContext &rRenderContext) override |
![]() | |
SAL_DLLPRIVATE void | ImplInit (vcl::Window *pParent, WinBits nStyle, SystemParentData *pSystemParentData) |
SAL_DLLPRIVATE Point | ImplOutputToFrame (const Point &rPos) |
SAL_DLLPRIVATE void | ImplInvalidateParentFrameRegion (const vcl::Region &rRegion) |
SAL_DLLPRIVATE void | ImplValidateFrameRegion (const vcl::Region *rRegion, ValidateFlags nFlags) |
SAL_DLLPRIVATE void | ImplValidate () |
SAL_DLLPRIVATE void | ImplMoveInvalidateRegion (const tools::Rectangle &rRect, tools::Long nHorzScroll, tools::Long nVertScroll, bool bChildren) |
SAL_DLLPRIVATE void | ImplMoveAllInvalidateRegions (const tools::Rectangle &rRect, tools::Long nHorzScroll, tools::Long nVertScroll, bool bChildren) |
SAL_DLLPRIVATE vcl::Window * | ImplGetBorderWindow () const |
SAL_DLLPRIVATE void | ImplInvalidate (const vcl::Region *rRegion, InvalidateFlags nFlags) |
virtual WindowHitTest | ImplHitTest (const Point &rFramePos) |
SAL_DLLPRIVATE void | ImplSetMouseTransparent (bool bTransparent) |
SAL_DLLPRIVATE void | ImplScroll (const tools::Rectangle &rRect, tools::Long nHorzScroll, tools::Long nVertScroll, ScrollFlags nFlags) |
SAL_DLLPRIVATE bool | ImplSetClipFlagChildren (bool bSysObjOnlySmaller) |
SAL_DLLPRIVATE bool | ImplSetClipFlagOverlapWindows (bool bSysObjOnlySmaller=false) |
SAL_DLLPRIVATE void | PushPaintHelper (PaintHelper *pHelper, vcl::RenderContext &rRenderContext) |
SAL_DLLPRIVATE void | PopPaintHelper (PaintHelper const *pHelper) |
Window (WindowType nType) | |
void | SetCompoundControl (bool bCompound) |
void | CallEventListeners (VclEventId nEvent, void *pData=nullptr) |
virtual void | ImplAdjustNWFSizes () |
SAL_DLLPRIVATE float | approximate_char_width () const |
SAL_DLLPRIVATE vcl::Window * | getLegacyNonLayoutAccessibleRelationMemberOf () const |
SAL_DLLPRIVATE vcl::Window * | getLegacyNonLayoutAccessibleRelationLabeledBy () const |
SAL_DLLPRIVATE vcl::Window * | getLegacyNonLayoutAccessibleRelationLabelFor () const |
virtual vcl::Window * | getAccessibleRelationLabelFor () const |
virtual sal_uInt16 | getDefaultAccessibleRole () const |
virtual OUString | getDefaultAccessibleName () const |
void | InvalidateSizeCache () |
![]() | |
VclReferenceBase () | |
virtual | ~VclReferenceBase () |
![]() | |
std::unique_ptr< weld::Builder > | m_xBuilder |
VclPtr< vcl::Window > | m_xVclContentArea |
std::unique_ptr< weld::Container > | m_xContainer |
weld::Widget * | m_pWidget |
![]() | |
std::optional< vcl::ControlLayoutData > | mxLayoutData |
VclPtr< OutputDevice > | mpReferenceDevice |
Definition at line 58 of file AnnotationWin.hxx.
sw::annotation::SwAnnotationWin::SwAnnotationWin | ( | SwEditWin & | rEditWin, |
SwPostItMgr & | aMgr, | ||
SwSidebarItem & | rSidebarItem, | ||
SwFormatField * | aField | ||
) |
Definition at line 89 of file AnnotationWin.cxx.
References SwPostItMgr::ConnectSidebarWinToFrame(), sw::sidebarwindows::ShadowOverlayObject::CreateShadowOverlayObject(), false, SwSidebarItem::GetFormatField(), SwPostItField::GetPostItId(), LINK, InterimItemWindow::m_xContainer, SwSidebarItem::maLayoutInfo, SwLayoutInfo::mpAnchorFrame, mpField, mpShadow, mrMgr, mrSidebarItem, mrView, mrView, NONE, vcl::Window::set_id(), vcl::Window::SetParentClipMode(), and vcl::Window::SupportsDoubleBuffering().
|
overridevirtual |
Definition at line 132 of file AnnotationWin.cxx.
References VclReferenceBase::disposeOnce().
void sw::annotation::SwAnnotationWin::ActivatePostIt | ( | ) |
Definition at line 1001 of file AnnotationWin2.cxx.
References sw::sidebarwindows::EDIT, StyleSettings::GetHighContrastMode(), Application::GetSettings(), AllSettings::GetStyleSettings(), mrView, and WB_DIALOGCONTROL.
Referenced by SwPostItMgr::SetActiveSidebarWin().
|
inline |
Definition at line 110 of file AnnotationWin.hxx.
Referenced by SwPostItMgr::CorrectPositions(), SetPosAndSize(), and SetViewState().
sal_uInt32 sw::annotation::SwAnnotationWin::CalcParent | ( | ) |
Calculate parent postit id of current annotation window.
Definition at line 353 of file AnnotationWin.cxx.
References SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwPostItField::GetPostItId(), SwTextAttr::GetStart(), SwTextNode::GetTextAttrForCharAt(), SwFormatField::GetTextField(), SwTextField::GetTextNode(), mpFormatField, SwPosition::nContent, Postit, RES_TXTATR_ANNOTATION(), and SwField::Which().
Referenced by SwXTextDocument::getPostIts(), and SwPostItMgr::LayoutPostIts().
void sw::annotation::SwAnnotationWin::ChangeSidebarItem | ( | SwSidebarItem const & | rSidebarItem | ) |
Definition at line 1409 of file AnnotationWin2.cxx.
References SwSidebarItem::maLayoutInfo, SwLayoutInfo::mpAnchorFrame, and mpAnchorFrame.
Referenced by SwPostItMgr::LayoutPostIts().
void sw::annotation::SwAnnotationWin::CheckMetaText | ( | ) |
Definition at line 400 of file AnnotationWin2.cxx.
References aIndex, SwPostItMgr::GetColorAnchor(), SwPostItMgr::GetColorDark(), SwPostItMgr::GetColorLight(), LocaleDataWrapper::getDate(), SvtSysLocale::GetLocaleData(), GetTime(), LocaleDataWrapper::getTime(), Date::IsValidAndGregorian(), SW_MOD, and SwResId().
|
inline |
Definition at line 144 of file AnnotationWin.hxx.
Referenced by sw::sidebarwindows::SidebarTextControl::Paint().
|
inline |
Definition at line 145 of file AnnotationWin.hxx.
Referenced by sw::sidebarwindows::SidebarTextControl::Paint().
|
private |
Definition at line 373 of file AnnotationWin.cxx.
References SwFormatField::GetField(), SwTextAttr::GetFormatField(), SwTextAttr::GetStart(), SwTextNode::GetTextAttrForCharAt(), SwFormatField::GetTextField(), SwTextField::GetTextNode(), mpFormatField, SwPosition::nContent, Postit, RES_TXTATR_ANNOTATION(), and SwField::Which().
Referenced by MoveCaret().
|
overridevirtual |
Reimplemented from vcl::Window.
Definition at line 1435 of file AnnotationWin2.cxx.
References mrView.
void sw::annotation::SwAnnotationWin::DeactivatePostIt | ( | ) |
Definition at line 1026 of file AnnotationWin2.cxx.
References COL_TRANSPARENT(), Application::GetSettings(), comphelper::LibreOfficeKit::isTiledPainting(), LINK, ESelection::nEndPara, ESelection::nEndPos, sw::sidebarwindows::NORMAL, ESelection::nStartPara, ESelection::nStartPos, Application::PostUserEvent(), comphelper::LibreOfficeKit::setTiledPainting(), and WB_DIALOGCONTROL.
Referenced by SwPostItMgr::SetActiveSidebarWin().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 281 of file AnnotationWin2.cxx.
References EE_CHAR_FONTHEIGHT(), mrView, and SfxItemSet::Put().
Referenced by InitAnswer(), and SetPostItText().
void sw::annotation::SwAnnotationWin::Delete | ( | ) |
Definition at line 316 of file AnnotationWin.cxx.
References SwCursorShell::ClearMark(), SwWrtShell::DelRight(), vcl::Window::get_id(), SwPostItMgr::GetActiveSidebarWin(), SwView::GetWrtShellPtr(), SwWrtShell::GotoField(), vcl::Window::GrabFocusToDocument(), mnDeleteEventId, mpFormatField, mrMgr, mrView, Application::RemoveUserEvent(), and SwPostItMgr::SetActiveSidebarWin().
Referenced by SwPostItMgr::DeleteActiveSidebarWin(), and CommentUIObject::execute().
void sw::annotation::SwAnnotationWin::DeleteThread | ( | ) |
Definition at line 239 of file AnnotationWin.cxx.
References SwPostItMgr::GetNextPostIt(), GetTopReplyNote(), KEY_PAGEDOWN, LINK, mnDeleteEventId, mrMgr, and Application::PostUserEvent().
Referenced by SwPostItMgr::DeleteCommentThread().
Reimplemented from InterimItemWindow.
Definition at line 137 of file AnnotationWin.cxx.
References vcl::Window::Disable(), SwPostItMgr::DisconnectSidebarWinFromFrame(), InterimItemWindow::dispose(), SwSidebarItem::maLayoutInfo, mnDeleteEventId, mpAnchor, SwLayoutInfo::mpAnchorFrame, mpOutliner, mpOutlinerView, mpShadow, mpTextRangeOverlay, mrMgr, mrSidebarItem, mxMenuButton, mxMetadataAuthor, mxMetadataDate, mxMetadataResolved, mxSidebarTextControl, mxSidebarTextControlWin, mxVScrollbar, and Application::RemoveUserEvent().
void sw::annotation::SwAnnotationWin::DoResize | ( | ) |
Definition at line 742 of file AnnotationWin2.cxx.
References tools::Rectangle::GetHeight(), Height, and min().
void sw::annotation::SwAnnotationWin::DrawForPage | ( | OutputDevice * | pDev, |
const Point & | rPos | ||
) |
Definition at line 156 of file AnnotationWin2.cxx.
References vcl::CLIPREGION, drawinglayer::processor2d::createBaseProcessor2DFromOutputDevice(), OutputDevice::DrawRect(), OutputDevice::DrawText(), vcl::Font::GetFontHeight(), OutputDevice::IntersectClipRegion(), m_xContainer, Point, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), vcl::Font::SetFontHeight(), OutputDevice::SetLineColor(), OutputDevice::SetTextColor(), x, and y.
Referenced by SwPostItMgr::DrawNotesForPage().
SwEditWin & sw::annotation::SwAnnotationWin::EditWin | ( | ) |
Definition at line 1143 of file AnnotationWin2.cxx.
References mrView.
void sw::annotation::SwAnnotationWin::ExecuteCommand | ( | sal_uInt16 | nSlot | ) |
Definition at line 1078 of file AnnotationWin2.cxx.
References FN_DELETE_ALL_NOTES, FN_DELETE_COMMENT, FN_DELETE_COMMENT_THREAD, FN_DELETE_NOTE_AUTHOR, FN_FORMAT_ALL_NOTES, FN_HIDE_ALL_NOTES, FN_HIDE_NOTE_AUTHOR, FN_POSTIT, FN_REPLY, FN_RESOLVE_NOTE, FN_RESOLVE_NOTE_THREAD, LINK, mrView, and Application::PostUserEvent().
Referenced by SwAnnotationShell::NoteExec().
|
inline |
Definition at line 98 of file AnnotationWin.hxx.
References Point.
Referenced by sw::sidebarwindows::SidebarTextControl::RequestHelp().
|
inline |
Definition at line 99 of file AnnotationWin.hxx.
Referenced by SwXTextDocument::getPostIts().
|
inline |
Definition at line 102 of file AnnotationWin.hxx.
Referenced by SwXTextDocument::getPostIts().
OUString sw::annotation::SwAnnotationWin::GetAuthor | ( | ) | const |
Definition at line 492 of file AnnotationWin.cxx.
References SwPostItField::GetPar1(), and mpField.
Referenced by CommentUIObject::get_state(), SwAnnotationShell::GetNoteState(), InitAnswer(), and SwAnnotationShell::NoteExec().
|
inline |
Definition at line 169 of file AnnotationWin.hxx.
Referenced by sw::sidebarwindows::SidebarTextControl::DrawForPage(), and sw::sidebarwindows::SidebarTextControl::Paint().
Date sw::annotation::SwAnnotationWin::GetDate | ( | ) | const |
Definition at line 497 of file AnnotationWin.cxx.
References SwPostItField::GetDate(), and mpField.
Referenced by InitAnswer().
|
overrideprivatevirtual |
Reimplemented from InterimItemWindow.
Definition at line 958 of file AnnotationWin2.cxx.
|
private |
Definition at line 470 of file AnnotationWin.cxx.
References EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), SwField::GetLanguage(), SvtLanguageOptions::GetScriptTypeOfLanguage(), and mpField.
|
inline |
Definition at line 168 of file AnnotationWin.hxx.
Referenced by sw::sidebarwindows::SidebarTextControl::DrawForPage(), SwAnnotationShell::Exec(), SwAnnotationShell::ExecClpbrd(), SwAnnotationShell::GetLinguState(), SwAnnotationShell::GetState(), IsProtected(), sw::sidebarwindows::SidebarTextControl::Paint(), sw::sidebarwindows::SidebarTextControl::RequestHelp(), SwAnnotationShell::StateClpbrd(), SwAnnotationShell::StateInsert(), and SwAnnotationShell::StateUndo().
sal_Int32 sw::annotation::SwAnnotationWin::GetMetaHeight | ( | ) | const |
Definition at line 1238 of file AnnotationWin2.cxx.
References i.
Referenced by SwPostItMgr::LayoutPostIts().
sal_Int32 sw::annotation::SwAnnotationWin::GetMinimumSizeWithMeta | ( | ) | const |
Definition at line 1255 of file AnnotationWin2.cxx.
sal_Int32 sw::annotation::SwAnnotationWin::GetMinimumSizeWithoutMeta | ( | ) | const |
Definition at line 1260 of file AnnotationWin2.cxx.
References f, mrView, and POSTIT_MINIMUMSIZE_WITHOUT_META.
Referenced by SwPostItMgr::LayoutPostIts().
sal_Int32 sw::annotation::SwAnnotationWin::GetNumFields | ( | ) | const |
Definition at line 1250 of file AnnotationWin2.cxx.
|
inline |
Definition at line 107 of file AnnotationWin.hxx.
Referenced by CommentUIObject::execute(), and CommentUIObject::get_state().
|
inline |
Definition at line 106 of file AnnotationWin.hxx.
Referenced by sw::sidebarwindows::SidebarTextControl::DrawForPage(), SwAnnotationShell::Exec(), SwAnnotationShell::ExecClpbrd(), SwAnnotationShell::ExecLingu(), SwAnnotationShell::ExecRotateTransliteration(), SwAnnotationShell::ExecTransliteration(), CommentUIObject::execute(), SwPostItMgr::ExecuteFormatAllDialog(), SwPostItMgr::FinishSearchReplace(), CommentUIObject::get_state(), sw::sidebarwindows::SidebarTextControl::GetEditEngine(), sw::sidebarwindows::SidebarTextControl::GetEditView(), SwAnnotationShell::GetLinguState(), SwAnnotationShell::GetState(), SwAnnotationShell::GetUndoManager(), InitAnswer(), SwAnnotationShell::InsertSymbol(), SwPostItMgr::Replace(), SwPostItMgr::SearchReplace(), SetPostItText(), SwAnnotationShell::StateClpbrd(), SwAnnotationShell::StateInsert(), and UpdateText().
|
inline |
Definition at line 72 of file AnnotationWin.hxx.
Referenced by SwPostItMgr::Delete(), and SwXTextDocument::getPostIts().
tools::Long sw::annotation::SwAnnotationWin::GetPostItTextHeight | ( | ) |
Definition at line 1148 of file AnnotationWin2.cxx.
References Height.
Referenced by SwAnnotationShell::ExecClpbrd(), SwAnnotationShell::ExecUndo(), sw::sidebarwindows::SidebarTextControl::KeyInput(), and SwPostItMgr::LayoutPostIts().
int sw::annotation::SwAnnotationWin::GetPrefScrollbarWidth | ( | ) | const |
Definition at line 1232 of file AnnotationWin2.cxx.
References f, Application::GetSettings(), and mrView.
|
inline |
Definition at line 104 of file AnnotationWin.hxx.
tools::Time sw::annotation::SwAnnotationWin::GetTime | ( | ) | const |
Definition at line 502 of file AnnotationWin.cxx.
References SwPostItField::GetTime(), and mpField.
Referenced by InitAnswer().
SwAnnotationWin * sw::annotation::SwAnnotationWin::GetTopReplyNote | ( | ) |
Find the first annotation for the thread which this annotation is in.
This may be the same annotation as this one.
Definition at line 1363 of file AnnotationWin2.cxx.
References IsFollow(), and KEY_PAGEUP.
Referenced by DeleteThread(), IsThreadResolved(), SetViewState(), and ToggleResolvedForThread().
|
overridevirtual |
Reimplemented from vcl::Window.
Definition at line 507 of file AnnotationWin.cxx.
References CommentUIObject::create().
void sw::annotation::SwAnnotationWin::GotoPos | ( | ) |
Definition at line 338 of file AnnotationWin.cxx.
References SwView::GetDocShell(), SwDocShell::GetWrtShell(), SwWrtShell::GotoField(), mpFormatField, and mrView.
Referenced by SwPostItMgr::SetActiveSidebarWin().
bool sw::annotation::SwAnnotationWin::HasScrollbar | ( | ) | const |
Definition at line 1399 of file AnnotationWin2.cxx.
void sw::annotation::SwAnnotationWin::HideNote | ( | ) |
Definition at line 983 of file AnnotationWin2.cxx.
References sw::sidebarwindows::Tri.
Referenced by SwPostItMgr::CalcRects(), CommentUIObject::execute(), and SwPostItMgr::LayoutPostIts().
void sw::annotation::SwAnnotationWin::InitAnswer | ( | OutlinerParaObject const & | rText | ) |
Definition at line 399 of file AnnotationWin.cxx.
References SwRewriter::AddRule(), SwRewriter::Apply(), SwPostItField::Copy(), DefaultItem(), EE_CHAR_FONTHEIGHT(), EE_CHAR_ITALIC(), EE_PARA_ALL, EE_PARA_MAX_COUNT, EE_TEXTPOS_ALL, EE_TEXTPOS_MAX_COUNT, GetAuthor(), LocaleDataWrapper::getDate(), GetDate(), SwDocShell::GetDoc(), SwView::GetDocShell(), OutlinerView::GetEditView(), SwDoc::GetIDocumentUndoRedo(), SvtSysLocale::GetLocaleData(), SwPostItMgr::GetNextPostIt(), GetOutlinerView(), SfxShell::GetPool(), SwTextAttr::GetStart(), EditTextObject::GetText(), SwFormatField::GetTextField(), SwTextField::GetTextNode(), OutlinerParaObject::GetTextObject(), LocaleDataWrapper::getTime(), GetTime(), OutlinerView::InsertText(), EditView::InsertText(), comphelper::LibreOfficeKit::isActive(), comphelper::LibreOfficeKit::isTiledAnnotations(), ITALIC_NORMAL, KEY_PAGEUP, LINK, mpField, mpFormatField, mpOutliner, mrMgr, mrView, SwPosition::nContent, SfxItemSet::Put(), EditView::RemoveAttribsKeepLanguages(), OutlinerView::SetAttribs(), SwPostItField::SetPar2(), OutlinerView::SetSelection(), SwPostItField::SetTextObject(), SwResId(), and UndoArg1.
Referenced by SwPostItMgr::LayoutPostIts().
void sw::annotation::SwAnnotationWin::InitControls | ( | ) |
Definition at line 288 of file AnnotationWin2.cxx.
References SwRewriter::AddRule(), aIndex, SwRewriter::Apply(), COL_TRANSPARENT(), SwPostItMgr::GetColorAnchor(), SwPostItMgr::GetColorDark(), SwPostItMgr::GetColorLight(), SwDocShell::GetDoc(), StyleSettings::GetLabelFont(), SwLangHelper::GetLanguage(), AllSettings::GetLayoutRTL(), SfxShell::GetPool(), Application::GetSettings(), AllSettings::GetStyleSettings(), SwViewOption::IsFieldShadings(), SwViewOption::IsOnlineSpell(), LINK, METABUTTON_HEIGHT, METABUTTON_WIDTH, mrView, SwDoc::SetCalcFieldValueHdl(), vcl::Font::SetFontHeight(), SwLangHelper::SetLanguage(), SW_MOD, SwResId(), and UndoArg1.
Referenced by SwPostItMgr::LayoutPostIts().
|
inline |
Definition at line 100 of file AnnotationWin.hxx.
|
inline |
Definition at line 150 of file AnnotationWin.hxx.
Referenced by GetTopReplyNote(), and SwPostItMgr::LayoutPostIts().
bool sw::annotation::SwAnnotationWin::IsHitWindow | ( | const Point & | rPointLogic | ) |
Is there a matching sub-widget inside this sidebar widget for rPointLogic?
Definition at line 145 of file AnnotationWin2.cxx.
References tools::Rectangle::Contains().
Referenced by SwPostItMgr::IsHitSidebarWindow().
|
inline |
Definition at line 171 of file AnnotationWin.hxx.
Referenced by sw::sidebarwindows::SidebarTextControl::Paint().
bool sw::annotation::SwAnnotationWin::IsProtected | ( | ) | const |
Definition at line 485 of file AnnotationWin.cxx.
References SwPostItHelper::DELETED, GetLayoutStatus(), SwFormatField::IsProtect(), mbReadonly, and mpFormatField.
Referenced by sw::sidebarwindows::SidebarTextControl::Command(), SwAnnotationShell::GetNoteState(), and sw::sidebarwindows::SidebarTextControl::KeyInput().
|
inline |
Definition at line 138 of file AnnotationWin.hxx.
Referenced by CommentUIObject::get_state().
bool sw::annotation::SwAnnotationWin::IsResolved | ( | ) | const |
Definition at line 255 of file AnnotationWin.cxx.
References SwFormatField::GetField(), and mpFormatField.
Referenced by CommentUIObject::get_state(), SwAnnotationShell::GetNoteState(), IsThreadResolved(), SetResolved(), ToggleResolved(), and SwPostItMgr::UpdateResolvedStatus().
bool sw::annotation::SwAnnotationWin::IsScrollbarVisible | ( | ) | const |
Definition at line 1404 of file AnnotationWin2.cxx.
Referenced by sw::sidebarwindows::SidebarTextControl::Command().
bool sw::annotation::SwAnnotationWin::IsThreadResolved | ( | ) |
First Get the top note
Definition at line 260 of file AnnotationWin.cxx.
References SwPostItMgr::GetNextPostIt(), GetTopReplyNote(), IsResolved(), KEY_PAGEDOWN, and mrMgr.
Referenced by SwAnnotationShell::GetNoteState().
void sw::annotation::SwAnnotationWin::LockView | ( | bool | bLock | ) |
Definition at line 1203 of file AnnotationWin2.cxx.
References mrView.
Referenced by sw::sidebarwindows::SidebarTextControl::LoseFocus().
|
overrideprivatevirtual |
Reimplemented from vcl::Window.
Definition at line 964 of file AnnotationWin2.cxx.
sal_uInt32 sw::annotation::SwAnnotationWin::MoveCaret | ( | ) |
Definition at line 343 of file AnnotationWin.cxx.
References CountFollowing(), SwPostItMgr::IsAnswer(), and mrMgr.
void sw::annotation::SwAnnotationWin::PaintTile | ( | vcl::RenderContext & | rRenderContext, |
const tools::Rectangle & | rRect | ||
) |
Definition at line 108 of file AnnotationWin2.cxx.
References COL_BLACK, drawinglayer::processor2d::createBaseProcessor2DFromOutputDevice(), OutputDevice::DrawRect(), Application::GetSettings(), m_xContainer, vcl::NONE, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and tools::Rectangle::TopLeft().
Referenced by SwPostItMgr::PaintTile().
void sw::annotation::SwAnnotationWin::Rescale | ( | ) |
Definition at line 492 of file AnnotationWin2.cxx.
References vcl::Font::GetFontHeight(), comphelper::LibreOfficeKit::isActive(), comphelper::LibreOfficeKit::isTiledAnnotations(), mrView, Point, vcl::Font::SetFontHeight(), and MapMode::SetOrigin().
|
inline |
Definition at line 101 of file AnnotationWin.hxx.
void sw::annotation::SwAnnotationWin::ResetAttributes | ( | ) |
Definition at line 1225 of file AnnotationWin2.cxx.
Referenced by SwAnnotationShell::Exec().
void sw::annotation::SwAnnotationWin::ResizeIfNecessary | ( | tools::Long | aOldHeight, |
tools::Long | aNewHeight | ||
) |
Definition at line 828 of file AnnotationWin2.cxx.
References Height, Width, and Y.
Referenced by SwAnnotationShell::ExecClpbrd(), SwAnnotationShell::ExecUndo(), and sw::sidebarwindows::SidebarTextControl::KeyInput().
bool sw::annotation::SwAnnotationWin::SetActiveSidebarWin | ( | ) |
Definition at line 1183 of file AnnotationWin2.cxx.
References mrView.
Referenced by sw::sidebarwindows::SidebarTextControl::GetFocus(), and SwitchToFieldPos().
void sw::annotation::SwAnnotationWin::SetChangeTracking | ( | const SwPostItHelper::SwLayoutStatus | aStatus, |
const Color & | aColor | ||
) |
Definition at line 1387 of file AnnotationWin2.cxx.
Referenced by SwPostItMgr::LayoutPostIts().
void sw::annotation::SwAnnotationWin::SetColor | ( | Color | aColorDark, |
Color | aColorLight, | ||
Color | aColorAnchor | ||
) |
Definition at line 866 of file AnnotationWin2.cxx.
References Application::GetSettings(), and m_xContainer.
void sw::annotation::SwAnnotationWin::SetCursorLogicPosition | ( | const Point & | rPosition, |
bool | bPoint, | ||
bool | bClearMark | ||
) |
Allows adjusting the point or mark of the selection to a document coordinate.
Definition at line 151 of file AnnotationWin2.cxx.
|
inline |
Definition at line 151 of file AnnotationWin.hxx.
Referenced by SwPostItMgr::LayoutPostIts().
void sw::annotation::SwAnnotationWin::SetLanguage | ( | const SvxLanguageItem & | rNewItem | ) |
Definition at line 900 of file AnnotationWin2.cxx.
References aNewSelection, IDocumentUndoRedo::DoesUndo(), EE_TEXTPOS_ALL, SwViewOption::IsOnlineSpell(), mrView, and SfxItemSet::Put().
|
private |
Definition at line 449 of file AnnotationWin2.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), sw::annotation::ColorFromAlphaColor(), DecorationView::DrawSymbol(), VclPtr< reference_type >::get(), tools::Rectangle::GetHeight(), GetTextColor(), tools::Rectangle::GetWidth(), Size::Height(), METABUTTON_HEIGHT, METABUTTON_WIDTH, mrView, Point, and Size::Width().
void sw::annotation::SwAnnotationWin::SetPosAndSize | ( | ) |
Definition at line 524 of file AnnotationWin2.cxx.
References abs(), sw::sidebarwindows::All, Anchor(), SwIndex::Assign(), sw::sidebarwindows::AnchorOverlayObject::CreateAnchorOverlayObject(), sw::overlay::OverlayRanges::CreateOverlayRange(), sw::sidebarwindows::End, SwNode::FindTableBoxStartNode(), SwNode::GetDoc(), SwPaM::GetMark(), SwDoc::GetNodes(), SwTextField::GetpTextNode(), SwTextAttr::GetStart(), Height, comphelper::LibreOfficeKit::isActive(), sw::sidebarwindows::LEFT, mrView, SwPosition::nContent, SwTableCursor::NewTableSelection(), SwPosition::nNode, Point, sw::sidebarwindows::RIGHT, sw::sidebarwindows::AnchorOverlayObject::SetAnchorState(), SwShellCursor::SetMark(), SwShellTableCursor::SetMark(), sw::sidebarwindows::Tri, Width, X, and Y.
void sw::annotation::SwAnnotationWin::SetPosSizePixelRect | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
const SwRect & | aAnchorRect, | ||
const tools::Long | PageBorder | ||
) |
Definition at line 241 of file AnnotationWin2.cxx.
References Point.
Referenced by SwPostItMgr::LayoutPostIts().
void sw::annotation::SwAnnotationWin::SetPostItText | ( | ) |
Definition at line 169 of file AnnotationWin.cxx.
References DefaultItem(), EditView::GetCursor(), OutlinerView::GetEditView(), SwFormatField::GetField(), GetOutlinerView(), SwPostItField::GetPar2(), GetSelection(), SwPostItField::GetTextObject(), OutlinerView::InsertText(), vcl::Window::Invalidate(), vcl::Cursor::IsVisible(), LINK, mpField, mpFormatField, mpOutliner, OutlinerView::SetAttribs(), EditView::SetSelection(), and OutlinerView::ShowCursor().
void sw::annotation::SwAnnotationWin::SetReadonly | ( | bool | bSet | ) |
Definition at line 894 of file AnnotationWin2.cxx.
Referenced by SwPostItMgr::LayoutPostIts().
void sw::annotation::SwAnnotationWin::SetResolved | ( | bool | resolved | ) |
Definition at line 206 of file AnnotationWin.cxx.
References vcl::Window::get_id(), SwFormatField::GetField(), SwViewShell::GetViewOptions(), SwView::GetWrtShellPtr(), vcl::Window::Invalidate(), IsResolved(), SwViewOption::IsResolvedPostIts(), mbResolvedStateUpdated, SwSidebarItem::mbShow, mpFormatField, mpTextRangeOverlay, mrSidebarItem, mrView, mxMetadataResolved, and UpdateData().
Referenced by CommentUIObject::execute(), and ToggleResolved().
void sw::annotation::SwAnnotationWin::SetScrollbar | ( | ) |
Definition at line 823 of file AnnotationWin2.cxx.
Referenced by sw::sidebarwindows::SidebarTextControl::EditViewScrollStateChange().
void sw::annotation::SwAnnotationWin::SetSidebarPosition | ( | sw::sidebarwindows::SidebarPosition | eSidebarPosition | ) |
Definition at line 889 of file AnnotationWin2.cxx.
Referenced by SwPostItMgr::LayoutPostIts().
Definition at line 251 of file AnnotationWin2.cxx.
Reimplemented from vcl::Window.
Definition at line 808 of file AnnotationWin2.cxx.
References Height, comphelper::LibreOfficeKit::isActive(), Point, vcl::Window::SetSizePixel(), and Width.
void sw::annotation::SwAnnotationWin::SetSpellChecking | ( | ) |
Definition at line 1266 of file AnnotationWin2.cxx.
References SwViewOption::IsOnlineSpell(), and mrView.
void sw::annotation::SwAnnotationWin::SetViewState | ( | ::sw::sidebarwindows::ViewState | bViewState | ) |
Definition at line 1280 of file AnnotationWin2.cxx.
References sw::sidebarwindows::All, Anchor(), sw::sidebarwindows::EDIT, sw::sidebarwindows::End, GetTopReplyNote(), sw::overlay::OverlayRanges::HideSolidBorder(), sw::sidebarwindows::NORMAL, sw::sidebarwindows::AnchorOverlayObject::SetAnchorState(), sw::sidebarwindows::AnchorOverlayObject::setLineSolid(), sw::sidebarwindows::SS_EDIT, sw::sidebarwindows::SS_NORMAL, sw::sidebarwindows::SS_VIEW, TextRange(), and sw::sidebarwindows::VIEW.
Referenced by SwPostItMgr::SetShadowState().
void sw::annotation::SwAnnotationWin::SetVirtualPosSize | ( | const Point & | aPoint, |
const Size & | aSize | ||
) |
Definition at line 256 of file AnnotationWin2.cxx.
Referenced by SwPostItMgr::Scroll().
|
inline |
Definition at line 111 of file AnnotationWin.hxx.
Referenced by SwPostItMgr::SetShadowState().
void sw::annotation::SwAnnotationWin::ShowAnchorOnly | ( | const Point & | aPoint | ) |
Definition at line 266 of file AnnotationWin2.cxx.
References sw::sidebarwindows::All.
Referenced by SwPostItMgr::Scroll().
void sw::annotation::SwAnnotationWin::ShowNote | ( | ) |
Definition at line 968 of file AnnotationWin2.cxx.
Referenced by CommentUIObject::execute(), and SwPostItMgr::Scroll().
void sw::annotation::SwAnnotationWin::SwitchToFieldPos | ( | ) |
Definition at line 1375 of file AnnotationWin2.cxx.
References mrView, and SetActiveSidebarWin().
Referenced by CommentUIObject::execute(), IMPL_LINK(), and sw::sidebarwindows::SidebarTextControl::KeyInput().
void sw::annotation::SwAnnotationWin::SwitchToPostIt | ( | sal_uInt16 | aDirection | ) |
Definition at line 1153 of file AnnotationWin2.cxx.
References vcl::Window::GrabFocus().
Referenced by sw::sidebarwindows::SidebarTextControl::KeyInput().
|
inline |
Definition at line 112 of file AnnotationWin.hxx.
Referenced by SetViewState().
void sw::annotation::SwAnnotationWin::ToggleInsMode | ( | ) |
Definition at line 1063 of file AnnotationWin2.cxx.
References SfxBindings::Invalidate(), mrView, and SfxBindings::Update().
Referenced by sw::sidebarwindows::SidebarTextControl::KeyInput(), and SwPostItMgr::ToggleInsModeOnActiveSidebarWin().
void sw::annotation::SwAnnotationWin::ToggleResolved | ( | ) |
Definition at line 227 of file AnnotationWin.cxx.
References IsResolved(), and SetResolved().
Referenced by SwPostItMgr::ToggleResolved(), and ToggleResolvedForThread().
void sw::annotation::SwAnnotationWin::ToggleResolvedForThread | ( | ) |
Definition at line 232 of file AnnotationWin.cxx.
References GetTopReplyNote(), SwPostItMgr::LayoutPostIts(), mrMgr, ToggleResolved(), and SwPostItMgr::UpdateResolvedStatus().
Referenced by SwPostItMgr::ToggleResolvedForThread().
void sw::annotation::SwAnnotationWin::TranslateTopPosition | ( | const tools::Long | aAmount | ) |
Definition at line 261 of file AnnotationWin2.cxx.
Referenced by SwPostItMgr::Scroll().
void sw::annotation::SwAnnotationWin::UnsetActiveSidebarWin | ( | ) |
Definition at line 1194 of file AnnotationWin2.cxx.
References mrView.
void sw::annotation::SwAnnotationWin::UpdateData | ( | ) |
Definition at line 281 of file AnnotationWin.cxx.
References SfxBroadcaster::Broadcast(), CHANGED, SwPostItField::Copy(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwDoc::GetIDocumentUndoRedo(), SwTextAttr::GetStart(), SwFormatField::GetTextField(), SwTextField::GetTextNode(), mbResolvedStateUpdated, mpField, mpFormatField, mpOutliner, mrMgr, mrView, SwPosition::nContent, RESOLVED, SwPostItMgr::SetLayout(), SwDocShell::SetModified(), SwPostItField::SetPar2(), and SwPostItField::SetTextObject().
Referenced by sw::sidebarwindows::SidebarTextControl::KeyInput(), sw::sidebarwindows::SidebarTextControl::LoseFocus(), SetResolved(), SwPostItMgr::UpdateDataOnActiveSidebarWin(), and UpdateText().
void sw::annotation::SwAnnotationWin::UpdateText | ( | const OUString & | aText | ) |
Definition at line 463 of file AnnotationWin.cxx.
References GetOutlinerView(), OutlinerView::InsertText(), mpOutliner, and UpdateData().
Referenced by SwTextShell::ExecField().
|
inline |
Definition at line 127 of file AnnotationWin.hxx.
References Point.
Referenced by SwPostItMgr::Scroll().
|
inline |
Definition at line 128 of file AnnotationWin.hxx.
Referenced by SwPostItMgr::Scroll().
|
private |
Definition at line 263 of file AnnotationWin.hxx.
|
private |
Definition at line 239 of file AnnotationWin.hxx.
|
private |
Definition at line 257 of file AnnotationWin.hxx.
|
private |
Definition at line 259 of file AnnotationWin.hxx.
|
private |
Definition at line 269 of file AnnotationWin.hxx.
|
private |
Definition at line 265 of file AnnotationWin.hxx.
|
private |
Definition at line 268 of file AnnotationWin.hxx.
Referenced by IsProtected().
|
private |
Definition at line 261 of file AnnotationWin.hxx.
Referenced by SetResolved(), and UpdateData().
|
private |
Definition at line 252 of file AnnotationWin.hxx.
|
private |
Definition at line 249 of file AnnotationWin.hxx.
|
private |
Definition at line 250 of file AnnotationWin.hxx.
|
private |
Definition at line 251 of file AnnotationWin.hxx.
|
private |
Definition at line 254 of file AnnotationWin.hxx.
|
private |
Definition at line 266 of file AnnotationWin.hxx.
|
private |
Definition at line 231 of file AnnotationWin.hxx.
Referenced by Delete(), DeleteThread(), and dispose().
|
private |
Definition at line 258 of file AnnotationWin.hxx.
|
private |
Definition at line 245 of file AnnotationWin.hxx.
Referenced by dispose().
|
private |
Definition at line 272 of file AnnotationWin.hxx.
|
private |
Definition at line 275 of file AnnotationWin.hxx.
Referenced by GetAuthor(), GetDate(), GetLanguage(), GetTime(), InitAnswer(), SetPostItText(), SwAnnotationWin(), and UpdateData().
|
private |
Definition at line 274 of file AnnotationWin.hxx.
Referenced by CalcParent(), CountFollowing(), Delete(), GotoPos(), InitAnswer(), IsProtected(), IsResolved(), SetPostItText(), SetResolved(), and UpdateData().
|
private |
Definition at line 256 of file AnnotationWin.hxx.
|
private |
Definition at line 234 of file AnnotationWin.hxx.
Referenced by dispose(), InitAnswer(), SetPostItText(), UpdateData(), and UpdateText().
|
private |
Definition at line 233 of file AnnotationWin.hxx.
Referenced by dispose().
|
private |
Definition at line 246 of file AnnotationWin.hxx.
Referenced by dispose(), and SwAnnotationWin().
|
private |
Definition at line 247 of file AnnotationWin.hxx.
Referenced by dispose(), and SetResolved().
|
private |
Definition at line 228 of file AnnotationWin.hxx.
Referenced by Delete(), DeleteThread(), dispose(), InitAnswer(), IsThreadResolved(), MoveCaret(), SwAnnotationWin(), ToggleResolvedForThread(), and UpdateData().
|
private |
Definition at line 271 of file AnnotationWin.hxx.
Referenced by dispose(), SetResolved(), and SwAnnotationWin().
|
private |
Definition at line 229 of file AnnotationWin.hxx.
Referenced by Delete(), GotoPos(), InitAnswer(), SetResolved(), SwAnnotationWin(), and UpdateData().
|
private |
Definition at line 243 of file AnnotationWin.hxx.
Referenced by dispose().
|
private |
Definition at line 240 of file AnnotationWin.hxx.
Referenced by dispose().
|
private |
Definition at line 241 of file AnnotationWin.hxx.
Referenced by dispose().
|
private |
Definition at line 242 of file AnnotationWin.hxx.
Referenced by dispose(), and SetResolved().
|
private |
Definition at line 237 of file AnnotationWin.hxx.
Referenced by dispose().
|
private |
Definition at line 238 of file AnnotationWin.hxx.
Referenced by dispose().
|
private |
Definition at line 277 of file AnnotationWin.hxx.
|
private |
Definition at line 236 of file AnnotationWin.hxx.
Referenced by dispose().