LibreOffice Module sw (master)  1
Classes | Macros | Enumerations | 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 <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 <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 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
 

Enumerations

enum  STR_CONTEXT_IDX
 

Functions

 IMPL_LINK (SwContentTree, DragBeginHdl, bool &, rUnsetDragIcon, bool)
 
static voidlcl_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)
 
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)
 

Variables

const TranslateId STR_CONTENT_TYPE_ARY []
 
const TranslateId STR_CONTENT_TYPE_SINGLE_ARY []
 
const TranslateId STR_CONTEXT_ARY []
 

Macro Definition Documentation

#define CTYPE_CNT   0

Definition at line 104 of file content.cxx.

#define CTYPE_CTT   1

Definition at line 105 of file content.cxx.

Enumeration Type Documentation

Definition at line 1001 of file content.cxx.

Function Documentation

IMPL_LINK ( SwContentTree  ,
DragBeginHdl  ,
bool &  ,
rUnsetDragIcon  ,
bool   
)

Definition at line 1108 of file content.cxx.

References DND_ACTION_COPYMOVE, DND_ACTION_LINK, m_xTreeView, and OUTLINE.

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

Definition at line 2132 of file content.cxx.

References Expand.

IMPL_LINK ( SwContentTree  ,
CollapseHdl  ,
const weld::TreeIter ,
rParent  ,
bool   
)
IMPL_LINK ( SwContentTree  ,
KeyInputHdl  ,
const KeyEvent ,
rEvent  ,
bool   
)
IMPL_LINK ( SwContentTree  ,
QueryTooltipHdl  ,
const weld::TreeIter ,
rEntry  ,
OUString   
)
IMPL_LINK_NOARG ( SwContentTree  ,
ContentDoubleClickHdl  ,
weld::TreeView ,
bool   
)

Definition at line 2182 of file content.cxx.

References SwPostItHelper::HIDDEN, m_xTreeView, and OUTLINE.

IMPL_LINK_NOARG ( SwContentTree  ,
TimerUpdate  ,
Timer ,
void   
)

No idle with focus or while dragging.

Definition at line 3563 of file content.cxx.

References SwViewShell::ActionPend(), SwViewShell::GetWin(), SwView::GetWrtShellPtr(), vcl::Window::HasFocus(), and m_xTreeView.

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

Definition at line 4046 of file content.cxx.

References SwView::GetWrtShellPtr().

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

Definition at line 4711 of file content.cxx.

References m_xTreeView, and Select.

static void lcl_AssureStdModeAtShell ( SwWrtShell pWrtShell)
static
static void* lcl_GetOutlineKey ( SwContentTree rTree,
SwOutlineContent const *  pContent 
)
static
static bool lcl_InsertExpandCollapseAllItem ( const weld::TreeView rContentTree,
const weld::TreeIter rEntry,
weld::Menu rPop 
)
static
static void lcl_SelectByContentTypeAndAddress ( SwContentTree pThis,
weld::TreeView rContentTree,
ContentTypeId  nType,
const void ptr 
)
static
static void lcl_SelectByContentTypeAndName ( SwContentTree pThis,
weld::TreeView rContentTree,
std::u16string_view  rContentTypeName,
std::u16string_view  rName 
)
static
static void lcl_SelectDrawObjectByName ( weld::TreeView rContentTree,
std::u16string_view  rName 
)
static
static void lcl_SetOutlineContentEntriesSensitivities ( SwContentTree pThis,
const weld::TreeView rContentTree,
const weld::TreeIter rEntry,
weld::Menu rPop 
)
static

Variable Documentation

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 230 of file content.cxx.

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 249 of file content.cxx.

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 1024 of file content.cxx.