LibreOffice Module sc (master) 1
Functions | Variables
content.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <svx/svditer.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdview.hxx>
#include <sfx2/linkmgr.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/viewfrm.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/svapp.hxx>
#include <osl/diagnose.h>
#include <tools/urlobj.hxx>
#include <sal/log.hxx>
#include <unotools/charclass.hxx>
#include <content.hxx>
#include <navipi.hxx>
#include <global.hxx>
#include <docsh.hxx>
#include <scmod.hxx>
#include <rangenam.hxx>
#include <dbdata.hxx>
#include <tablink.hxx>
#include <drwlayer.hxx>
#include <transobj.hxx>
#include <drwtrans.hxx>
#include <lnktrans.hxx>
#include <strings.hrc>
#include <scresid.hxx>
#include <bitmaps.hlst>
#include <arealink.hxx>
#include <navicfg.hxx>
#include <navsett.hxx>
#include <postit.hxx>
#include <tabvwsh.hxx>
#include <drawview.hxx>
#include <clipparam.hxx>
#include <markdata.hxx>
Include dependency graph for content.cxx:

Go to the source code of this file.

Functions

static OUString lcl_GetDBAreaRange (const ScDocument *pDoc, const OUString &rDBName)
 
 IMPL_LINK_NOARG (ScContentTree, ContentDoubleClickHdl, weld::TreeView &, bool)
 
 IMPL_LINK_NOARG (ScContentTree, MouseReleaseHdl, const MouseEvent &, bool)
 
 IMPL_LINK_NOARG (ScContentTree, AsyncStoreNavigatorSettings, void *, void)
 
 IMPL_LINK (ScContentTree, KeyInputHdl, const KeyEvent &, rKEvt, bool)
 
 IMPL_LINK (ScContentTree, CommandHdl, const CommandEvent &, rCEvt, bool)
 
 IMPL_LINK (ScContentTree, QueryTooltipHdl, const weld::TreeIter &, rEntry, OUString)
 
static OUString lcl_NoteString (const ScPostIt &rNote)
 
static bool lcl_GetRange (const ScDocument &rDoc, ScContentId nType, const OUString &rName, ScRange &rRange)
 
static bool lcl_DoDragObject (ScDocShell *pSrcShell, std::u16string_view rName, ScContentId nType, weld::TreeView &rTreeView)
 
static bool lcl_DoDragCells (ScDocShell *pSrcShell, const ScRange &rRange, ScDragSrc nFlags, weld::TreeView &rTreeView)
 
 IMPL_LINK (ScContentTree, DragBeginHdl, bool &, rUnsetDragIcon, bool)
 

Variables

const ScContentId pTypeList [int(ScContentId::LAST)+1]
 
constexpr rtl::OUStringConstExpr aContentBmps []
 
const TranslateId SCSTR_CONTENT_ARY []
 
constexpr int MAX_TREE_NODES = 1000
 

Function Documentation

◆ IMPL_LINK() [1/4]

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

◆ IMPL_LINK() [2/4]

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

◆ IMPL_LINK() [3/4]

IMPL_LINK ( ScContentTree  ,
KeyInputHdl  ,
const KeyEvent ,
rKEvt  ,
bool   
)

◆ IMPL_LINK() [4/4]

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

Definition at line 621 of file content.cxx.

References AREALINK, nIndex, NOTE, pLink, and SC_CONTENT_NOCHILD.

◆ IMPL_LINK_NOARG() [1/3]

IMPL_LINK_NOARG ( ScContentTree  ,
AsyncStoreNavigatorSettings  ,
void *  ,
void   
)

Definition at line 412 of file content.cxx.

◆ IMPL_LINK_NOARG() [2/3]

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

◆ IMPL_LINK_NOARG() [3/3]

IMPL_LINK_NOARG ( ScContentTree  ,
MouseReleaseHdl  ,
const MouseEvent ,
bool   
)

Definition at line 406 of file content.cxx.

◆ lcl_DoDragCells()

static bool lcl_DoDragCells ( ScDocShell pSrcShell,
const ScRange rRange,
ScDragSrc  nFlags,
weld::TreeView rTreeView 
)
static

◆ lcl_DoDragObject()

static bool lcl_DoDragObject ( ScDocShell pSrcShell,
std::u16string_view  rName,
ScContentId  nType,
weld::TreeView rTreeView 
)
static

◆ lcl_GetDBAreaRange()

static OUString lcl_GetDBAreaRange ( const ScDocument pDoc,
const OUString &  rDBName 
)
static

◆ lcl_GetRange()

static bool lcl_GetRange ( const ScDocument rDoc,
ScContentId  nType,
const OUString &  rName,
ScRange rRange 
)
static

◆ lcl_NoteString()

static OUString lcl_NoteString ( const ScPostIt rNote)
static

Definition at line 941 of file content.cxx.

References ScPostIt::GetText().

Referenced by ScContentTree::GetNoteStrings(), and ScContentTree::NoteStringsChanged().

Variable Documentation

◆ aContentBmps

constexpr rtl::OUStringConstExpr aContentBmps[]
constexpr
Initial value:
=
{
RID_BMP_CONTENT_TABLE,
RID_BMP_CONTENT_RANGENAME,
RID_BMP_CONTENT_DBAREA,
RID_BMP_CONTENT_GRAPHIC,
RID_BMP_CONTENT_OLEOBJECT,
RID_BMP_CONTENT_NOTE,
RID_BMP_CONTENT_AREALINK,
RID_BMP_CONTENT_DRAWING
}

Definition at line 78 of file content.cxx.

Referenced by ScContentTree::InitRoot().

◆ MAX_TREE_NODES

constexpr int MAX_TREE_NODES = 1000
constexpr

Definition at line 816 of file content.cxx.

Referenced by ScContentTree::GetDrawNames().

◆ pTypeList

const ScContentId pTypeList[int(ScContentId::LAST)+1]

◆ SCSTR_CONTENT_ARY

const TranslateId SCSTR_CONTENT_ARY[]
Initial value:
=
{
SCSTR_CONTENT_ROOT,
SCSTR_CONTENT_TABLE,
SCSTR_CONTENT_RANGENAME,
SCSTR_CONTENT_DBAREA,
SCSTR_CONTENT_GRAPHIC,
SCSTR_CONTENT_OLEOBJECT,
SCSTR_CONTENT_NOTE,
SCSTR_CONTENT_AREALINK,
SCSTR_CONTENT_DRAWING
}

Definition at line 166 of file content.cxx.

Referenced by ScContentTree::InitRoot().