LibreOffice Module sw (master) 1
Classes | Macros | Functions | Variables
content.cxx File Reference
#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>
Include dependency graph for content.cxx:

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 []
 

Macro Definition Documentation

◆ CTYPE_CNT

#define CTYPE_CNT   0

Definition at line 119 of file content.cxx.

◆ CTYPE_CTT

#define CTYPE_CTT   1

Definition at line 120 of file content.cxx.

Function Documentation

◆ IMPL_LINK() [1/8]

IMPL_LINK ( SwContentTree  ,
CollapseHdl  ,
const weld::TreeIter ,
rParent  ,
bool   
)

◆ IMPL_LINK() [2/8]

IMPL_LINK ( SwContentTree  ,
CommandHdl  ,
const CommandEvent ,
rCEvt  ,
bool   
)

◆ IMPL_LINK() [3/8]

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() [4/8]

IMPL_LINK ( SwContentTree  ,
ExpandHdl  ,
const weld::TreeIter ,
rParent  ,
bool   
)

Definition at line 2296 of file content.cxx.

References Expand.

◆ IMPL_LINK() [5/8]

IMPL_LINK ( SwContentTree  ,
KeyInputHdl  ,
const KeyEvent ,
rEvent  ,
bool   
)

◆ IMPL_LINK() [6/8]

IMPL_LINK ( SwContentTree  ,
MouseMoveHdl  ,
const MouseEvent ,
rMEvt  ,
bool   
)

Definition at line 1158 of file content.cxx.

References SwPostItHelper::HIDDEN.

◆ IMPL_LINK() [7/8]

IMPL_LINK ( SwContentTree  ,
MousePressHdl  ,
const MouseEvent ,
rMEvt  ,
bool   
)

Definition at line 1152 of file content.cxx.

◆ IMPL_LINK() [8/8]

IMPL_LINK ( SwContentTree  ,
QueryTooltipHdl  ,
const weld::TreeIter ,
rEntry  ,
OUString   
)

◆ IMPL_LINK_NOARG() [1/6]

IMPL_LINK_NOARG ( SwContentTree  ,
AsyncContentDoubleClickHdl  ,
void *  ,
void   
)

Definition at line 2373 of file content.cxx.

References SwPostItHelper::HIDDEN, and SwContent::IsInvisible().

◆ IMPL_LINK_NOARG() [2/6]

IMPL_LINK_NOARG ( SwContentTree  ,
ContentDoubleClickHdl  ,
weld::TreeView ,
bool   
)

◆ IMPL_LINK_NOARG() [3/6]

IMPL_LINK_NOARG ( SwContentTree  ,
FocusInHdl  ,
weld::Widget ,
void   
)

Definition at line 4239 of file content.cxx.

References SwView::GetWrtShellPtr().

◆ IMPL_LINK_NOARG() [4/6]

IMPL_LINK_NOARG ( SwContentTree  ,
OverlayObjectDelayTimerHdl  ,
Timer ,
void   
)

Definition at line 5594 of file content.cxx.

References SwView::GetDrawView().

◆ IMPL_LINK_NOARG() [5/6]

IMPL_LINK_NOARG ( SwContentTree  ,
SelectHdl  ,
weld::TreeView ,
void   
)

Definition at line 4916 of file content.cxx.

References Select.

◆ IMPL_LINK_NOARG() [6/6]

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().

◆ lcl_AssureStdModeAtShell()

static void lcl_AssureStdModeAtShell ( SwWrtShell pWrtShell)
static

◆ lcl_CalcOverlayRanges()

static void lcl_CalcOverlayRanges ( const SwTextFrame pStartFrame,
const SwTextFrame pEndFrame,
const SwPosition aStartPos,
const SwPosition aEndPos,
std::vector< basegfx::B2DRange > &  aRanges 
)
static

◆ lcl_GetOutlineKey()

static void * lcl_GetOutlineKey ( SwContentTree rTree,
SwOutlineContent const *  pContent 
)
static

◆ lcl_InsertExpandCollapseAllItem()

static bool lcl_InsertExpandCollapseAllItem ( const weld::TreeView rContentTree,
const weld::TreeIter rEntry,
weld::Menu rPop 
)
static

◆ lcl_SelectByContentTypeAndAddress()

static void lcl_SelectByContentTypeAndAddress ( SwContentTree pThis,
weld::TreeView rContentTree,
ContentTypeId  nType,
const void *  ptr 
)
static

◆ lcl_SelectByContentTypeAndName()

static void lcl_SelectByContentTypeAndName ( SwContentTree pThis,
weld::TreeView rContentTree,
std::u16string_view  rContentTypeName,
std::u16string_view  rName 
)
static

◆ lcl_SelectDrawObjectByName()

static void lcl_SelectDrawObjectByName ( weld::TreeView rContentTree,
std::u16string_view  rName 
)
static

◆ lcl_SetOutlineContentEntriesSensitivities()

static void lcl_SetOutlineContentEntriesSensitivities ( SwContentTree pThis,
const weld::TreeView rContentTree,
const weld::TreeIter rEntry,
weld::Menu rPop 
)
static

Variable Documentation

◆ STR_CONTENT_TYPE_ARY

const TranslateId STR_CONTENT_TYPE_ARY[]
Initial value:
=
{
STR_CONTENT_TYPE_OUTLINE,
STR_CONTENT_TYPE_TABLE,
STR_CONTENT_TYPE_FRAME,
STR_CONTENT_TYPE_GRAPHIC,
STR_CONTENT_TYPE_OLE,
STR_CONTENT_TYPE_BOOKMARK,
STR_CONTENT_TYPE_REGION,
STR_CONTENT_TYPE_URLFIELD,
STR_CONTENT_TYPE_REFERENCE,
STR_CONTENT_TYPE_INDEX,
STR_CONTENT_TYPE_POSTIT,
STR_CONTENT_TYPE_DRAWOBJECT,
STR_CONTENT_TYPE_TEXTFIELD,
STR_CONTENT_TYPE_FOOTNOTE,
STR_CONTENT_TYPE_ENDNOTE
}

Definition at line 246 of file content.cxx.

◆ STR_CONTENT_TYPE_SINGLE_ARY

const TranslateId STR_CONTENT_TYPE_SINGLE_ARY[]
Initial value:
=
{
STR_CONTENT_TYPE_SINGLE_OUTLINE,
STR_CONTENT_TYPE_SINGLE_TABLE,
STR_CONTENT_TYPE_SINGLE_FRAME,
STR_CONTENT_TYPE_SINGLE_GRAPHIC,
STR_CONTENT_TYPE_SINGLE_OLE,
STR_CONTENT_TYPE_SINGLE_BOOKMARK,
STR_CONTENT_TYPE_SINGLE_REGION,
STR_CONTENT_TYPE_SINGLE_URLFIELD,
STR_CONTENT_TYPE_SINGLE_REFERENCE,
STR_CONTENT_TYPE_SINGLE_INDEX,
STR_CONTENT_TYPE_SINGLE_POSTIT,
STR_CONTENT_TYPE_SINGLE_DRAWOBJECT,
STR_CONTENT_TYPE_SINGLE_TEXTFIELD,
STR_CONTENT_TYPE_SINGLE_FOOTNOTE,
STR_CONTENT_TYPE_SINGLE_ENDNOTE
}

Definition at line 265 of file content.cxx.

◆ STR_CONTEXT_ARY

const TranslateId STR_CONTEXT_ARY[]
Initial value:
=
{
STR_OUTLINE_LEVEL,
STR_DRAGMODE,
STR_HYPERLINK,
STR_LINK_REGION,
STR_COPY_REGION,
STR_DISPLAY,
STR_ACTIVE_VIEW,
STR_HIDDEN,
STR_ACTIVE,
STR_INACTIVE,
STR_EDIT_ENTRY,
STR_DELETE_ENTRY,
STR_SEND_OUTLINE_TO_CLIPBOARD_ENTRY,
STR_OUTLINE_TRACKING,
STR_OUTLINE_TRACKING_DEFAULT,
STR_OUTLINE_TRACKING_FOCUS,
STR_OUTLINE_TRACKING_OFF
}

Definition at line 1051 of file content.cxx.

Referenced by SwContentTree::SwContentTree().