LibreOffice Module sw (master) 1
|
#include <comphelper/string.hxx>
#include <editeng/frmdiritem.hxx>
#include <svl/urlbmk.hxx>
#include <osl/thread.h>
#include <sal/log.hxx>
#include <tools/urlobj.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/event.hxx>
#include <sfx2/viewfrm.hxx>
#include <o3tl/enumrange.hxx>
#include <o3tl/sorted_vector.hxx>
#include <utility>
#include <vcl/commandevent.hxx>
#include <vcl/weldutils.hxx>
#include <sot/formats.hxx>
#include <o3tl/string_view.hxx>
#include <uiitems.hxx>
#include <fmtanchr.hxx>
#include <fmtinfmt.hxx>
#include <txtinet.hxx>
#include <fmtfld.hxx>
#include <swmodule.hxx>
#include <wrtsh.hxx>
#include <view.hxx>
#include <docsh.hxx>
#include <drawdoc.hxx>
#include <content.hxx>
#include <frmatr.hxx>
#include <frmfmt.hxx>
#include <fldbas.hxx>
#include <IMark.hxx>
#include <section.hxx>
#include <tox.hxx>
#include <navipi.hxx>
#include <navicont.hxx>
#include <navicfg.hxx>
#include <edtwin.hxx>
#include <doc.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <IDocumentOutlineNodes.hxx>
#include <unotxvw.hxx>
#include <cmdid.h>
#include <helpids.h>
#include <strings.hrc>
#include <com/sun/star/text/XTextSectionsSupplier.hpp>
#include <com/sun/star/text/XTextGraphicObjectsSupplier.hpp>
#include <com/sun/star/text/XTextTablesSupplier.hpp>
#include <com/sun/star/text/XDocumentIndexesSupplier.hpp>
#include <com/sun/star/text/XDocumentIndex.hpp>
#include <com/sun/star/text/XBookmarksSupplier.hpp>
#include <com/sun/star/text/XTextEmbeddedObjectsSupplier.hpp>
#include <com/sun/star/text/XTextFramesSupplier.hpp>
#include <com/sun/star/ui/XSidebarProvider.hpp>
#include <com/sun/star/ui/XDecks.hpp>
#include <com/sun/star/ui/XDeck.hpp>
#include <com/sun/star/ui/XPanels.hpp>
#include <com/sun/star/ui/XPanel.hpp>
#include <svx/svdpage.hxx>
#include <svx/svdview.hxx>
#include <SwRewriter.hxx>
#include <hints.hxx>
#include <numrule.hxx>
#include <swundo.hxx>
#include <ndtxt.hxx>
#include <PostItMgr.hxx>
#include <postithelper.hxx>
#include <swabstdlg.hxx>
#include <bitmaps.hlst>
#include <AnnotationWin.hxx>
#include <memory>
#include <fmtcntnt.hxx>
#include <docstat.hxx>
#include <viewopt.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <txtfld.hxx>
#include <fldmgr.hxx>
#include <frameformats.hxx>
#include <ftnidx.hxx>
#include <txtftn.hxx>
#include <fmtftn.hxx>
#include <txtannotationfld.hxx>
#include <txtfrm.hxx>
#include <txtrfmrk.hxx>
#include <svx/sdr/overlay/overlayselection.hxx>
#include <svx/sdr/overlay/overlayobject.hxx>
#include <svx/sdr/overlay/overlaymanager.hxx>
#include <svx/sdrpaintwindow.hxx>
#include <node2lay.hxx>
Go to the source code of this file.
Classes | |
class | SwContentArr |
Macros | |
#define | CTYPE_CNT 0 |
#define | CTYPE_CTT 1 |
Functions | |
IMPL_LINK (SwContentTree, MousePressHdl, const MouseEvent &, rMEvt, bool) | |
IMPL_LINK (SwContentTree, MouseMoveHdl, const MouseEvent &, rMEvt, bool) | |
IMPL_LINK (SwContentTree, DragBeginHdl, bool &, rUnsetDragIcon, bool) | |
static void * | lcl_GetOutlineKey (SwContentTree &rTree, SwOutlineContent const *pContent) |
static bool | lcl_InsertExpandCollapseAllItem (const weld::TreeView &rContentTree, const weld::TreeIter &rEntry, weld::Menu &rPop) |
static void | lcl_SetOutlineContentEntriesSensitivities (SwContentTree *pThis, const weld::TreeView &rContentTree, const weld::TreeIter &rEntry, weld::Menu &rPop) |
IMPL_LINK (SwContentTree, CommandHdl, const CommandEvent &, rCEvt, bool) | |
IMPL_LINK (SwContentTree, ExpandHdl, const weld::TreeIter &, rParent, bool) | |
IMPL_LINK (SwContentTree, CollapseHdl, const weld::TreeIter &, rParent, bool) | |
IMPL_LINK_NOARG (SwContentTree, ContentDoubleClickHdl, weld::TreeView &, bool) | |
IMPL_LINK_NOARG (SwContentTree, AsyncContentDoubleClickHdl, void *, void) | |
static void | lcl_SelectByContentTypeAndAddress (SwContentTree *pThis, weld::TreeView &rContentTree, ContentTypeId nType, const void *ptr) |
static void | lcl_SelectByContentTypeAndName (SwContentTree *pThis, weld::TreeView &rContentTree, std::u16string_view rContentTypeName, std::u16string_view rName) |
static void | lcl_SelectDrawObjectByName (weld::TreeView &rContentTree, std::u16string_view rName) |
IMPL_LINK_NOARG (SwContentTree, TimerUpdate, Timer *, void) | |
No idle with focus or while dragging. More... | |
IMPL_LINK_NOARG (SwContentTree, FocusInHdl, weld::Widget &, void) | |
IMPL_LINK (SwContentTree, KeyInputHdl, const KeyEvent &, rEvent, bool) | |
IMPL_LINK (SwContentTree, QueryTooltipHdl, const weld::TreeIter &, rEntry, OUString) | |
IMPL_LINK_NOARG (SwContentTree, SelectHdl, weld::TreeView &, void) | |
static void | lcl_AssureStdModeAtShell (SwWrtShell *pWrtShell) |
IMPL_LINK_NOARG (SwContentTree, OverlayObjectDelayTimerHdl, Timer *, void) | |
static void | lcl_CalcOverlayRanges (const SwTextFrame *pStartFrame, const SwTextFrame *pEndFrame, const SwPosition &aStartPos, const SwPosition &aEndPos, std::vector< basegfx::B2DRange > &aRanges) |
Variables | |
const TranslateId | STR_CONTENT_TYPE_ARY [] |
const TranslateId | STR_CONTENT_TYPE_SINGLE_ARY [] |
const TranslateId | STR_CONTEXT_ARY [] |
#define CTYPE_CNT 0 |
Definition at line 119 of file content.cxx.
#define CTYPE_CTT 1 |
Definition at line 120 of file content.cxx.
IMPL_LINK | ( | SwContentTree | , |
CollapseHdl | , | ||
const weld::TreeIter & | , | ||
rParent | , | ||
bool | |||
) |
Definition at line 2302 of file content.cxx.
References SwViewShell::getIDocumentOutlineNodesAccess(), IDocumentOutlineNodes::getOutlineNode(), SwContentType::GetType(), SwPostItHelper::HIDDEN, and nPos.
IMPL_LINK | ( | SwContentTree | , |
CommandHdl | , | ||
const CommandEvent & | , | ||
rCEvt | , | ||
bool | |||
) |
Definition at line 1540 of file content.cxx.
References BOOKMARK, bVisible, Application::CreateBuilder(), DRAWOBJECT, ENDNOTE, FOOTNOTE, FRAME, GetActiveView(), SwView::GetDocShell(), SwModule::GetFirstView(), SwContentType::GetMemberCount(), SwModule::GetNextView(), SwContentType::GetSortType(), SfxObjectShell::GetTitle(), SwContentType::GetType(), GRAPHIC, SwPostItHelper::HIDDEN, i, INDEX, SwContentType::IsDeletable(), SwContentType::IsEditable(), SwTOXBase::IsTOXBaseInReadonly(), SwEditShell::IsTOXBaseReadonly(), lcl_InsertExpandCollapseAllItem(), lcl_SetOutlineContentEntriesSensitivities(), MAXLEVEL, nId, OLE, OUTLINE, POSTIT, PROTECT_BOOKMARKS, REFERENCE, REGION, SwResId(), TABLE, TEXTFIELD, and URLFIELD.
IMPL_LINK | ( | SwContentTree | , |
DragBeginHdl | , | ||
bool & | , | ||
rUnsetDragIcon | , | ||
bool | |||
) |
Definition at line 1188 of file content.cxx.
References DND_ACTION_COPYMOVE, DND_ACTION_LINK, and OUTLINE.
IMPL_LINK | ( | SwContentTree | , |
ExpandHdl | , | ||
const weld::TreeIter & | , | ||
rParent | , | ||
bool | |||
) |
Definition at line 2296 of file content.cxx.
References Expand.
IMPL_LINK | ( | SwContentTree | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rEvent | , | ||
bool | |||
) |
Definition at line 4265 of file content.cxx.
References DELETE, DRAWOBJECT, vcl::KeyCode::GetCode(), SwDrawModel::GetDoc(), IDocumentDrawModelAccess::GetDrawModel(), SwView::GetEditWin(), SwDoc::getIDocumentDrawModelAccess(), vcl::KeyCode::GetModifier(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrObject::GetObjIdentifier(), SdrModel::GetPage(), SwContent::GetParent(), SdrPaintView::GetSdrPageView(), SwContentType::GetType(), SwEditWin::GetView(), SwPostItHelper::HIDDEN, i, vcl::KeyCode::IsMod1(), SdrMarkView::IsObjMarked(), vcl::KeyCode::IsShift(), KEY_C, KEY_DELETE, KEY_DOWN, KEY_ESCAPE, KEY_LEFT, KEY_MOD1, KEY_MOD2, KEY_MULTIPLY, KEY_RETURN, KEY_RIGHT, KEY_SHIFT, KEY_SPACE, KEY_UP, KeyInput, SdrMarkView::MarkObj(), nCount, OUTLINE, pObject, SdrObjEditView::SdrEndTextEdit(), and u.
IMPL_LINK | ( | SwContentTree | , |
MouseMoveHdl | , | ||
const MouseEvent & | , | ||
rMEvt | , | ||
bool | |||
) |
Definition at line 1158 of file content.cxx.
References SwPostItHelper::HIDDEN.
IMPL_LINK | ( | SwContentTree | , |
MousePressHdl | , | ||
const MouseEvent & | , | ||
rMEvt | , | ||
bool | |||
) |
Definition at line 1152 of file content.cxx.
IMPL_LINK | ( | SwContentTree | , |
QueryTooltipHdl | , | ||
const weld::TreeIter & | , | ||
rEntry | , | ||
OUString | |||
) |
Definition at line 4451 of file content.cxx.
References SwDoc::CountWords(), ENDNOTE, SwNode::EndOfSectionNode(), FOOTNOTE, SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwTextAttr::GetFootnote(), GetName(), SwNodeIndex::GetNode(), SwNode::GetNodes(), SwSectionFormat::GetSection(), SwSection::GetSectionName(), GetURL(), GRAPHIC, SwNodes::IsDocNodes(), SwFormatFootnote::IsEndNote(), n, SwDocStat::nChar, nType, SwDocStat::nWord, OUTLINE, POSTIT, REGION, SwVectorModifyBase< Value >::size(), SwResId(), and URLFIELD.
IMPL_LINK_NOARG | ( | SwContentTree | , |
AsyncContentDoubleClickHdl | , | ||
void * | , | ||
void | |||
) |
Definition at line 2373 of file content.cxx.
References SwPostItHelper::HIDDEN, and SwContent::IsInvisible().
IMPL_LINK_NOARG | ( | SwContentTree | , |
ContentDoubleClickHdl | , | ||
weld::TreeView & | , | ||
bool | |||
) |
Definition at line 2346 of file content.cxx.
References SwContent::GetParent(), SwContentType::GetType(), SwPostItHelper::HIDDEN, SwContent::IsInvisible(), LINK, OUTLINE, Application::PostUserEvent(), and Application::RemoveUserEvent().
IMPL_LINK_NOARG | ( | SwContentTree | , |
FocusInHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 4239 of file content.cxx.
References SwView::GetWrtShellPtr().
IMPL_LINK_NOARG | ( | SwContentTree | , |
OverlayObjectDelayTimerHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 5594 of file content.cxx.
References SwView::GetDrawView().
IMPL_LINK_NOARG | ( | SwContentTree | , |
SelectHdl | , | ||
weld::TreeView & | , | ||
void | |||
) |
Definition at line 4916 of file content.cxx.
References Select.
IMPL_LINK_NOARG | ( | SwContentTree | , |
TimerUpdate | , | ||
Timer * | , | ||
void | |||
) |
No idle with focus or while dragging.
Definition at line 3713 of file content.cxx.
References SwViewShell::ActionPend(), SwViewShell::GetWin(), SwView::GetWrtShellPtr(), and vcl::Window::HasFocus().
|
static |
Definition at line 5279 of file content.cxx.
References SwWrtShell::DrawSelChanged(), SwFEShell::EndTextEdit(), SwWrtShell::EnterStdMode(), SwViewShell::GetDrawView(), SwWrtShell::GetView(), SwFEShell::IsObjSelected(), SwWrtShell::IsSelFrameMode(), SwViewShell::IsViewLocked(), SwView::LeaveDrawCreate(), SwWrtShell::LeaveSelFrameMode(), SwViewShell::LockView(), SwFEShell::SelectObj(), SwView::StopShellTimer(), SW_LEAVE_FRAME, and SwWrtShell::UnSelectFrame().
Referenced by SwContentTree::CopyOutlineSelections(), and SwContentTree::GotoContent().
|
static |
Definition at line 5898 of file content.cxx.
References SwRect::Bottom(), SwTextFrame::GetCharRect(), SwFrameAreaDefinition::getFrameArea(), SwRect::Left(), SwRect::Right(), and SwRect::Top().
Referenced by SwContentTree::BringBookmarksToAttention(), SwContentTree::BringFootnotesToAttention(), SwContentTree::BringPostItFieldsToAttention(), SwContentTree::BringReferencesToAttention(), SwContentTree::BringTextFieldsToAttention(), and SwContentTree::BringURLFieldsToAttention().
|
static |
Definition at line 1279 of file content.cxx.
References SwViewShell::getIDocumentOutlineNodesAccess(), IDocumentOutlineNodes::getOutlineNode(), SwOutlineContent::GetOutlinePos(), SwContentTree::GetWrtShell(), and nPos.
Referenced by SwContentTree::ExecuteDrop().
|
static |
Definition at line 1407 of file content.cxx.
References weld::TreeView::get_children_on_demand(), weld::TreeView::iter_has_child(), weld::Menu::set_label(), and SwResId().
Referenced by IMPL_LINK().
|
static |
Definition at line 3553 of file content.cxx.
References weld::TreeView::count_selected_rows(), ENDNOTE, weld::TreeView::expand_row(), FOOTNOTE, weld::TreeView::get_id(), weld::TreeView::get_iter_first(), weld::TreeView::get_selected(), SwFormatField::GetField(), SwTextFieldContent::GetFormatField(), SwURLFieldContent::GetINetAttr(), SwPostItContent::GetPostIt(), SwTextFootnoteContent::GetTextFootnote(), weld::TreeView::iter_compare(), weld::TreeView::iter_next(), weld::TreeView::iter_next_sibling(), weld::TreeView::make_iterator(), nType, p, POSTIT, SwContentTree::Select(), weld::TreeView::set_cursor(), TEXTFIELD, and URLFIELD.
Referenced by SwContentTree::UpdateTracking().
|
static |
Definition at line 3647 of file content.cxx.
References weld::TreeView::count_selected_rows(), weld::TreeView::expand_row(), weld::TreeView::get_iter_first(), weld::TreeView::get_selected(), weld::TreeView::get_text(), weld::TreeView::iter_compare(), weld::TreeView::iter_next(), weld::TreeView::iter_next_sibling(), weld::TreeView::make_iterator(), SwContentTree::Select(), and weld::TreeView::set_cursor().
Referenced by SwContentTree::UpdateTracking().
|
static |
Definition at line 3683 of file content.cxx.
References weld::TreeView::expand_row(), weld::TreeView::get_iter_first(), weld::TreeView::get_text(), weld::TreeView::is_selected(), weld::TreeView::iter_next(), weld::TreeView::iter_next_sibling(), weld::TreeView::make_iterator(), weld::TreeView::scroll_to_row(), weld::TreeView::select(), and SwResId().
Referenced by SwContentTree::UpdateTracking().
|
static |
Definition at line 1417 of file content.cxx.
References SwNodeIndex::Assign(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::back(), weld::TreeView::count_selected_rows(), weld::TreeView::get_children_on_demand(), weld::GetAbsPos(), SwContentTree::GetActiveWrtShell(), SwNodes::GetEndOfContent(), SwViewShell::getIDocumentOutlineNodesAccess(), SwViewShell::GetNodes(), IDocumentOutlineNodes::getOutlineLevel(), SwNodes::GetOutLineNds(), SwContentTree::GetWrtShell(), SwNodes::GoNext(), SwWrtShell::IsOutlineContentVisible(), weld::TreeView::iter_has_child(), nPos, weld::Menu::set_sensitive(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by IMPL_LINK().
const TranslateId STR_CONTENT_TYPE_ARY[] |
Definition at line 246 of file content.cxx.
const TranslateId STR_CONTENT_TYPE_SINGLE_ARY[] |
Definition at line 265 of file content.cxx.
const TranslateId STR_CONTEXT_ARY[] |
Definition at line 1051 of file content.cxx.
Referenced by SwContentTree::SwContentTree().