LibreOffice Module cui (master)  1
Classes | Macros | Functions
backgrnd.cxx File Reference
#include <memory>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <vcl/settings.hxx>
#include <vcl/graphicfilter.hxx>
#include <vcl/idle.hxx>
#include <vcl/svapp.hxx>
#include <tools/urlobj.hxx>
#include <sfx2/objsh.hxx>
#include <svx/svxids.hrc>
#include <svx/strings.hrc>
#include <strings.hrc>
#include <svx/dialmgr.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/colritem.hxx>
#include <backgrnd.hxx>
#include <svx/xtable.hxx>
#include <sfx2/opengrf.hxx>
#include <svx/svxerr.hxx>
#include <svx/drawitem.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflclit.hxx>
#include <dialmgr.hxx>
#include <sfx2/htmlmode.hxx>
#include <svx/flagsdef.hxx>
#include <svl/intitem.hxx>
#include <vcl/GraphicObject.hxx>
#include <svx/unobrushitemhelper.hxx>
Include dependency graph for backgrnd.cxx:

Go to the source code of this file.

Classes

class  BackgroundPreviewImpl
 Preview window for brush or bitmap. More...
 

Macros

#define TBL_DEST_CELL   0
 
#define TBL_DEST_ROW   1
 
#define TBL_DEST_TBL   2
 
#define HDL(hdl)   LINK(this,SvxBackgroundTabPage,hdl)
 

Functions

static drawing::FillStyle lcl_getFillStyle (const weld::ComboBox &rLbSelect)
 Returns the fill style of the currently selected entry. More...
 
static void lcl_setFillStyle (weld::ComboBox &rLbSelect, drawing::FillStyle eStyle)
 
static sal_uInt16 GetItemId_Impl (const SvtValueSet &rValueSet, const Color &rCol)
 
 IMPL_LINK_NOARG (SvxBackgroundTabPage, BackgroundColorHdl_Impl, SvtValueSet *, void)
 Handler, called when color selection is changed. More...
 
 IMPL_LINK_NOARG (SvxBackgroundTabPage, SelectHdl_Impl, weld::ComboBox &, void)
 
 IMPL_LINK (SvxBackgroundTabPage, FileClickHdl_Impl, weld::ToggleButton &, rBox, void)
 
 IMPL_LINK (SvxBackgroundTabPage, RadioClickHdl_Impl, weld::ToggleButton &, rBtn, void)
 
 IMPL_LINK_NOARG (SvxBackgroundTabPage, BrowseHdl_Impl, weld::Button &, void)
 Handler, called by pressing the browse button. More...
 
 IMPL_LINK (SvxBackgroundTabPage, LoadIdleHdl_Impl, Timer *, pIdle, void)
 Delayed loading of the graphic. More...
 
 IMPL_LINK (SvxBackgroundTabPage, TblDestinationHdl_Impl, weld::ComboBox &, rBox, void)
 
static sal_uInt16 lcl_GetTableDestSlot (sal_Int32 nTblDest)
 
 IMPL_LINK (SvxBkgTabPage, TblDestinationHdl_Impl, weld::ComboBox &, rBox, void)
 

Macro Definition Documentation

#define HDL (   hdl)    LINK(this,SvxBackgroundTabPage,hdl)
#define TBL_DEST_CELL   0
#define TBL_DEST_ROW   1
#define TBL_DEST_TBL   2

Function Documentation

static sal_uInt16 GetItemId_Impl ( const SvtValueSet rValueSet,
const Color rCol 
)
static
IMPL_LINK ( SvxBackgroundTabPage  ,
FileClickHdl_Impl  ,
weld::ToggleButton ,
rBox  ,
void   
)

Definition at line 957 of file backgrnd.cxx.

References INetURLObject::getFSysPath(), and INetURLObject::GetProtocol().

IMPL_LINK ( SvxBackgroundTabPage  ,
RadioClickHdl_Impl  ,
weld::ToggleButton ,
rBtn  ,
void   
)

Definition at line 1003 of file backgrnd.cxx.

IMPL_LINK ( SvxBackgroundTabPage  ,
LoadIdleHdl_Impl  ,
Timer ,
pIdle  ,
void   
)

Delayed loading of the graphic.

Graphic is only loaded, if it's different to the current graphic.

Definition at line 1059 of file backgrnd.cxx.

References INetURLObject::GetPath(), and HTMLMODE_ON.

IMPL_LINK ( SvxBackgroundTabPage  ,
TblDestinationHdl_Impl  ,
weld::ComboBox ,
rBox  ,
void   
)

Definition at line 1118 of file backgrnd.cxx.

References lcl_getFillStyle(), TBL_DEST_CELL, TBL_DEST_ROW, and TBL_DEST_TBL.

IMPL_LINK ( SvxBkgTabPage  ,
TblDestinationHdl_Impl  ,
weld::ComboBox ,
rBox  ,
void   
)
IMPL_LINK_NOARG ( SvxBackgroundTabPage  ,
BackgroundColorHdl_Impl  ,
SvtValueSet ,
void   
)

Handler, called when color selection is changed.

Definition at line 936 of file backgrnd.cxx.

References COL_TRANSPARENT().

IMPL_LINK_NOARG ( SvxBackgroundTabPage  ,
SelectHdl_Impl  ,
weld::ComboBox ,
void   
)

Definition at line 945 of file backgrnd.cxx.

References lcl_getFillStyle().

IMPL_LINK_NOARG ( SvxBackgroundTabPage  ,
BrowseHdl_Impl  ,
weld::Button ,
void   
)

Handler, called by pressing the browse button.

Create graphic/insert dialog, set path and start.

Definition at line 1023 of file backgrnd.cxx.

References GetFrameWeld(), and HTMLMODE_ON.

static drawing::FillStyle lcl_getFillStyle ( const weld::ComboBox rLbSelect)
static

Returns the fill style of the currently selected entry.

Definition at line 67 of file backgrnd.cxx.

References weld::ComboBox::get_active_id().

Referenced by SvxBackgroundTabPage::FillItemSet(), IMPL_LINK(), and IMPL_LINK_NOARG().

static sal_uInt16 lcl_GetTableDestSlot ( sal_Int32  nTblDest)
static

Definition at line 1340 of file backgrnd.cxx.

References TBL_DEST_CELL, TBL_DEST_ROW, and TBL_DEST_TBL.

Referenced by SvxBkgTabPage::FillItemSet(), and IMPL_LINK().

static void lcl_setFillStyle ( weld::ComboBox rLbSelect,
drawing::FillStyle  eStyle 
)
static