LibreOffice Module cui (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
SvxBackgroundTabPage Class Reference

class SvxBackgroundTabPage -----------------------------------------— More...

#include <backgrnd.hxx>

Inheritance diagram for SvxBackgroundTabPage:
[legend]
Collaboration diagram for SvxBackgroundTabPage:
[legend]

Public Member Functions

virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual void FillUserData () override
 When destroying a SfxTabPage this virtual method is called, so that the TabPage can save internal information. More...
 
virtual void PointChanged (weld::DrawingArea *pWindow, RectPoint eRP) override
 
void ShowSelector ()
 Shift-ListBox activation. More...
 
void ShowTblControl ()
 for the Writer (cells/rows/tables) More...
 
virtual void PageCreated (const SfxAllItemSet &aSet) override
 
- Public Member Functions inherited from SvxTabPage
 SvxTabPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet &rAttrSet)
 

Static Public Member Functions

static VclPtr< SfxTabPageCreate (TabPageParent pParent, const SfxItemSet *rAttrSet)
 
static const sal_uInt16 * GetRanges ()
 

Protected Member Functions

virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 virtual method; is called on deactivation More...
 

Private Member Functions

 SvxBackgroundTabPage (TabPageParent pParent, const SfxItemSet &rCoreSet)
 
virtual ~SvxBackgroundTabPage () override
 
virtual void dispose () override
 
void FillColorValueSets_Impl ()
 
void ShowColorUI_Impl ()
 Hide the controls for editing the bitmap and show the controls for color settings instead. More...
 
void HideColorUI_Impl ()
 
void ShowBitmapUI_Impl ()
 Hide the controls for color settings and show controls for editing the bitmap instead. More...
 
void HideBitmapUI_Impl ()
 
bool LoadLinkedGraphic_Impl ()
 
void RaiseLoadError_Impl ()
 
void SetGraphicPosition_Impl (SvxGraphicPosition ePos)
 
SvxGraphicPosition GetGraphicPosition_Impl () const
 
void FillControls_Impl (const SvxBrushItem &rBgdAttr, const OUString &rUserData)
 
 DECL_LINK (LoadIdleHdl_Impl, Timer *, void)
 
 DECL_LINK (SelectHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (BrowseHdl_Impl, weld::Button &, void)
 
 DECL_LINK (RadioClickHdl_Impl, weld::ToggleButton &, void)
 
 DECL_LINK (FileClickHdl_Impl, weld::ToggleButton &, void)
 
 DECL_LINK (BackgroundColorHdl_Impl, SvtValueSet *, void)
 
 DECL_LINK (TblDestinationHdl_Impl, weld::ComboBox &, void)
 

Private Attributes

Color aBgdColor
 
sal_uInt16 nHtmlMode
 
bool bAllowShowSelector: 1
 
bool bIsGraphicValid: 1
 
bool bHighlighting: 1
 
bool bCharBackColor: 1
 
bool m_bColorSelected: 1
 
Graphic aBgdGraphic
 
OUString aBgdGraphicPath
 
OUString aBgdGraphicFilter
 
std::unique_ptr< Idlem_pLoadIdle
 
bool m_bIsImportDlgInExecute = false
 
std::unique_ptr< SvxOpenGraphicDialogpImportDlg
 Items for Sw-Table must be corrected. More...
 
std::unique_ptr< SvxBrushItemm_pCellBrush
 
std::unique_ptr< SvxBrushItemm_pRowBrush
 
std::unique_ptr< SvxBrushItemm_pTableBrush
 
sal_uInt16 m_nCellWhich = 0
 
sal_uInt16 m_nRowWhich = 0
 
sal_uInt16 m_nTableWhich = 0
 
sal_Int32 m_nActPos = 0
 
std::unique_ptr< SvxBrushItempHighlighting
 
std::unique_ptr< SvxRectCtlm_xWndPosition
 
std::unique_ptr< ColorValueSetm_xBackgroundColorSet
 
std::unique_ptr< BackgroundPreviewImplm_xPreview1
 
std::unique_ptr< BackgroundPreviewImplm_xPreview2
 
std::unique_ptr< weld::Labelm_xFindGraphicsFt
 
std::unique_ptr< weld::Widgetm_xAsGrid
 
std::unique_ptr< weld::Labelm_xSelectTxt
 
std::unique_ptr< weld::ComboBoxm_xLbSelect
 
std::unique_ptr< weld::Labelm_xTblDesc
 
std::unique_ptr< weld::ComboBoxm_xTblLBox
 
std::unique_ptr< weld::Labelm_xBackGroundColorLabelFT
 
std::unique_ptr< weld::Widgetm_xBackGroundColorFrame
 
std::unique_ptr< weld::CheckButtonm_xBtnPreview
 
std::unique_ptr< weld::Widgetm_xBitmapContainer
 
std::unique_ptr< weld::Widgetm_xFileFrame
 
std::unique_ptr< weld::Buttonm_xBtnBrowse
 
std::unique_ptr< weld::CheckButtonm_xBtnLink
 
std::unique_ptr< weld::Labelm_xFtUnlinked
 
std::unique_ptr< weld::Labelm_xFtFile
 
std::unique_ptr< weld::Widgetm_xTypeFrame
 
std::unique_ptr< weld::RadioButtonm_xBtnPosition
 
std::unique_ptr< weld::RadioButtonm_xBtnArea
 
std::unique_ptr< weld::RadioButtonm_xBtnTile
 
std::unique_ptr< weld::CustomWeldm_xWndPositionWin
 
std::unique_ptr< weld::CustomWeldm_xBackgroundColorSetWin
 
std::unique_ptr< weld::CustomWeldm_xPreviewWin1
 
std::unique_ptr< weld::CustomWeldm_xPreviewWin2
 

Static Private Attributes

static const sal_uInt16 pPageRanges []
 

Friends

class VclPtr< SvxBackgroundTabPage >
 

Detailed Description

class SvxBackgroundTabPage -----------------------------------------—

[Description] With this TabPage a Brush (e. g. for a frame's background color) can be set. [Items] <SvxBrushItem>: <SID_ATTR_BRUSH>;

Definition at line 43 of file backgrnd.hxx.

Constructor & Destructor Documentation

SvxBackgroundTabPage::SvxBackgroundTabPage ( TabPageParent  pParent,
const SfxItemSet rCoreSet 
)
private
SvxBackgroundTabPage::~SvxBackgroundTabPage ( )
overrideprivatevirtual

Definition at line 316 of file backgrnd.cxx.

Member Function Documentation

VclPtr< SfxTabPage > SvxBackgroundTabPage::Create ( TabPageParent  pParent,
const SfxItemSet rAttrSet 
)
static
DeactivateRC SvxBackgroundTabPage::DeactivatePage ( SfxItemSet pSet)
overrideprotectedvirtual

virtual method; is called on deactivation

Definition at line 734 of file backgrnd.cxx.

References FillItemSet(), and m_bIsImportDlgInExecute.

SvxBackgroundTabPage::DECL_LINK ( LoadIdleHdl_Impl  ,
Timer ,
void   
)
private
SvxBackgroundTabPage::DECL_LINK ( SelectHdl_Impl  ,
weld::ComboBox ,
void   
)
private
SvxBackgroundTabPage::DECL_LINK ( BrowseHdl_Impl  ,
weld::Button ,
void   
)
private
SvxBackgroundTabPage::DECL_LINK ( RadioClickHdl_Impl  ,
weld::ToggleButton ,
void   
)
private
SvxBackgroundTabPage::DECL_LINK ( FileClickHdl_Impl  ,
weld::ToggleButton ,
void   
)
private
SvxBackgroundTabPage::DECL_LINK ( BackgroundColorHdl_Impl  ,
SvtValueSet ,
void   
)
private
SvxBackgroundTabPage::DECL_LINK ( TblDestinationHdl_Impl  ,
weld::ComboBox ,
void   
)
private
void SvxBackgroundTabPage::dispose ( void  )
overrideprivatevirtual
void SvxBackgroundTabPage::FillColorValueSets_Impl ( )
private
void SvxBackgroundTabPage::FillControls_Impl ( const SvxBrushItem rBgdAttr,
const OUString &  rUserData 
)
private
bool SvxBackgroundTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
void SvxBackgroundTabPage::FillUserData ( )
overridevirtual

When destroying a SfxTabPage this virtual method is called, so that the TabPage can save internal information.

In this case the condition of the preview button is saved.

Definition at line 495 of file backgrnd.cxx.

References m_xBtnPreview.

SvxGraphicPosition SvxBackgroundTabPage::GetGraphicPosition_Impl ( ) const
private
static const sal_uInt16* SvxBackgroundTabPage::GetRanges ( )
inlinestatic

Definition at line 51 of file backgrnd.hxx.

References pPageRanges.

Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().

void SvxBackgroundTabPage::HideBitmapUI_Impl ( )
private

Definition at line 862 of file backgrnd.cxx.

References m_xBitmapContainer, m_xBtnPreview, m_xFileFrame, m_xPreviewWin2, and m_xTypeFrame.

Referenced by ShowColorUI_Impl().

void SvxBackgroundTabPage::HideColorUI_Impl ( )
private

Definition at line 838 of file backgrnd.cxx.

References m_xBackGroundColorFrame.

Referenced by ShowBitmapUI_Impl().

bool SvxBackgroundTabPage::LoadLinkedGraphic_Impl ( )
private
void SvxBackgroundTabPage::PageCreated ( const SfxAllItemSet aSet)
overridevirtual
void SvxBackgroundTabPage::PointChanged ( weld::DrawingArea pWindow,
RectPoint  eRP 
)
overridevirtual

Implements SvxTabPage.

Definition at line 745 of file backgrnd.cxx.

void SvxBackgroundTabPage::RaiseLoadError_Impl ( )
private
void SvxBackgroundTabPage::Reset ( const SfxItemSet rSet)
overridevirtual
void SvxBackgroundTabPage::SetGraphicPosition_Impl ( SvxGraphicPosition  ePos)
private
void SvxBackgroundTabPage::ShowBitmapUI_Impl ( )
private

Hide the controls for color settings and show controls for editing the bitmap instead.

Definition at line 846 of file backgrnd.cxx.

References HideColorUI_Impl(), HTMLMODE_ON, m_xBackGroundColorFrame, m_xBitmapContainer, m_xBtnLink, m_xBtnPreview, m_xFileFrame, m_xLbSelect, m_xPreviewWin2, m_xTypeFrame, and nHtmlMode.

Referenced by FillControls_Impl().

void SvxBackgroundTabPage::ShowColorUI_Impl ( )
private

Hide the controls for editing the bitmap and show the controls for color settings instead.

Definition at line 829 of file backgrnd.cxx.

References HideBitmapUI_Impl(), and m_xBackGroundColorFrame.

Referenced by FillControls_Impl(), and Reset().

void SvxBackgroundTabPage::ShowSelector ( )
void SvxBackgroundTabPage::ShowTblControl ( )

for the Writer (cells/rows/tables)

Definition at line 1116 of file backgrnd.cxx.

References HDL, m_xAsGrid, m_xTblDesc, and m_xTblLBox.

Referenced by PageCreated().

Friends And Related Function Documentation

friend class VclPtr< SvxBackgroundTabPage >
friend

Definition at line 46 of file backgrnd.hxx.

Member Data Documentation

Color SvxBackgroundTabPage::aBgdColor
private

Definition at line 74 of file backgrnd.hxx.

Referenced by FillControls_Impl(), FillItemSet(), and Reset().

Graphic SvxBackgroundTabPage::aBgdGraphic
private

Definition at line 81 of file backgrnd.hxx.

Referenced by FillControls_Impl(), FillItemSet(), and LoadLinkedGraphic_Impl().

OUString SvxBackgroundTabPage::aBgdGraphicFilter
private

Definition at line 83 of file backgrnd.hxx.

Referenced by FillControls_Impl(), FillItemSet(), and LoadLinkedGraphic_Impl().

OUString SvxBackgroundTabPage::aBgdGraphicPath
private
bool SvxBackgroundTabPage::bAllowShowSelector
private

Definition at line 76 of file backgrnd.hxx.

Referenced by Reset(), and ShowSelector().

bool SvxBackgroundTabPage::bCharBackColor
private

Definition at line 79 of file backgrnd.hxx.

Referenced by FillItemSet(), PageCreated(), and Reset().

bool SvxBackgroundTabPage::bHighlighting
private

Definition at line 78 of file backgrnd.hxx.

Referenced by FillItemSet(), PageCreated(), and Reset().

bool SvxBackgroundTabPage::bIsGraphicValid
private

Definition at line 77 of file backgrnd.hxx.

Referenced by FillControls_Impl(), and FillItemSet().

bool SvxBackgroundTabPage::m_bColorSelected
private

Definition at line 80 of file backgrnd.hxx.

Referenced by FillItemSet(), and Reset().

bool SvxBackgroundTabPage::m_bIsImportDlgInExecute = false
private

Definition at line 86 of file backgrnd.hxx.

Referenced by DeactivatePage().

sal_Int32 SvxBackgroundTabPage::m_nActPos = 0
private

Definition at line 97 of file backgrnd.hxx.

Referenced by Reset().

sal_uInt16 SvxBackgroundTabPage::m_nCellWhich = 0
private

Definition at line 94 of file backgrnd.hxx.

Referenced by Reset().

sal_uInt16 SvxBackgroundTabPage::m_nRowWhich = 0
private

Definition at line 95 of file backgrnd.hxx.

Referenced by Reset().

sal_uInt16 SvxBackgroundTabPage::m_nTableWhich = 0
private

Definition at line 96 of file backgrnd.hxx.

Referenced by Reset().

std::unique_ptr<SvxBrushItem> SvxBackgroundTabPage::m_pCellBrush
private

Definition at line 91 of file backgrnd.hxx.

Referenced by dispose(), FillItemSet(), and Reset().

std::unique_ptr<Idle> SvxBackgroundTabPage::m_pLoadIdle
private

Definition at line 85 of file backgrnd.hxx.

Referenced by dispose(), FillItemSet(), and ShowSelector().

std::unique_ptr<SvxBrushItem> SvxBackgroundTabPage::m_pRowBrush
private

Definition at line 92 of file backgrnd.hxx.

Referenced by dispose(), FillItemSet(), and Reset().

std::unique_ptr<SvxBrushItem> SvxBackgroundTabPage::m_pTableBrush
private

Definition at line 93 of file backgrnd.hxx.

Referenced by dispose(), FillItemSet(), and Reset().

std::unique_ptr<weld::Widget> SvxBackgroundTabPage::m_xAsGrid
private

Definition at line 107 of file backgrnd.hxx.

Referenced by ShowSelector(), and ShowTblControl().

std::unique_ptr<weld::Widget> SvxBackgroundTabPage::m_xBackGroundColorFrame
private

Definition at line 114 of file backgrnd.hxx.

Referenced by HideColorUI_Impl(), ShowBitmapUI_Impl(), and ShowColorUI_Impl().

std::unique_ptr<weld::Label> SvxBackgroundTabPage::m_xBackGroundColorLabelFT
private

Definition at line 113 of file backgrnd.hxx.

Referenced by PageCreated().

std::unique_ptr<ColorValueSet> SvxBackgroundTabPage::m_xBackgroundColorSet
private
std::unique_ptr<weld::CustomWeld> SvxBackgroundTabPage::m_xBackgroundColorSetWin
private

Definition at line 132 of file backgrnd.hxx.

Referenced by dispose().

std::unique_ptr<weld::Widget> SvxBackgroundTabPage::m_xBitmapContainer
private

Definition at line 119 of file backgrnd.hxx.

Referenced by HideBitmapUI_Impl(), and ShowBitmapUI_Impl().

std::unique_ptr<weld::RadioButton> SvxBackgroundTabPage::m_xBtnArea
private

Definition at line 128 of file backgrnd.hxx.

Referenced by GetGraphicPosition_Impl(), SetGraphicPosition_Impl(), and ShowSelector().

std::unique_ptr<weld::Button> SvxBackgroundTabPage::m_xBtnBrowse
private

Definition at line 121 of file backgrnd.hxx.

Referenced by ShowSelector().

std::unique_ptr<weld::CheckButton> SvxBackgroundTabPage::m_xBtnLink
private

Definition at line 122 of file backgrnd.hxx.

Referenced by FillControls_Impl(), FillItemSet(), ShowBitmapUI_Impl(), and ShowSelector().

std::unique_ptr<weld::RadioButton> SvxBackgroundTabPage::m_xBtnPosition
private

Definition at line 127 of file backgrnd.hxx.

Referenced by SetGraphicPosition_Impl(), and ShowSelector().

std::unique_ptr<weld::CheckButton> SvxBackgroundTabPage::m_xBtnPreview
private
std::unique_ptr<weld::RadioButton> SvxBackgroundTabPage::m_xBtnTile
private
std::unique_ptr<weld::Widget> SvxBackgroundTabPage::m_xFileFrame
private

Definition at line 120 of file backgrnd.hxx.

Referenced by HideBitmapUI_Impl(), and ShowBitmapUI_Impl().

std::unique_ptr<weld::Label> SvxBackgroundTabPage::m_xFindGraphicsFt
private

Definition at line 106 of file backgrnd.hxx.

std::unique_ptr<weld::Label> SvxBackgroundTabPage::m_xFtFile
private

Definition at line 124 of file backgrnd.hxx.

std::unique_ptr<weld::Label> SvxBackgroundTabPage::m_xFtUnlinked
private

Definition at line 123 of file backgrnd.hxx.

std::unique_ptr<weld::ComboBox> SvxBackgroundTabPage::m_xLbSelect
private

Definition at line 109 of file backgrnd.hxx.

Referenced by FillControls_Impl(), FillItemSet(), Reset(), ShowBitmapUI_Impl(), and ShowSelector().

std::unique_ptr<BackgroundPreviewImpl> SvxBackgroundTabPage::m_xPreview1
private

Definition at line 103 of file backgrnd.hxx.

Referenced by dispose(), and FillControls_Impl().

std::unique_ptr<BackgroundPreviewImpl> SvxBackgroundTabPage::m_xPreview2
private

Definition at line 104 of file backgrnd.hxx.

Referenced by dispose(), FillControls_Impl(), and SvxBackgroundTabPage().

std::unique_ptr<weld::CustomWeld> SvxBackgroundTabPage::m_xPreviewWin1
private

Definition at line 133 of file backgrnd.hxx.

Referenced by dispose().

std::unique_ptr<weld::CustomWeld> SvxBackgroundTabPage::m_xPreviewWin2
private

Definition at line 134 of file backgrnd.hxx.

Referenced by dispose(), HideBitmapUI_Impl(), and ShowBitmapUI_Impl().

std::unique_ptr<weld::Label> SvxBackgroundTabPage::m_xSelectTxt
private

Definition at line 108 of file backgrnd.hxx.

Referenced by Reset(), and ShowSelector().

std::unique_ptr<weld::Label> SvxBackgroundTabPage::m_xTblDesc
private

Definition at line 110 of file backgrnd.hxx.

Referenced by ShowTblControl().

std::unique_ptr<weld::ComboBox> SvxBackgroundTabPage::m_xTblLBox
private

Definition at line 111 of file backgrnd.hxx.

Referenced by FillItemSet(), Reset(), and ShowTblControl().

std::unique_ptr<weld::Widget> SvxBackgroundTabPage::m_xTypeFrame
private

Definition at line 126 of file backgrnd.hxx.

Referenced by HideBitmapUI_Impl(), and ShowBitmapUI_Impl().

std::unique_ptr<SvxRectCtl> SvxBackgroundTabPage::m_xWndPosition
private

Definition at line 101 of file backgrnd.hxx.

Referenced by dispose(), GetGraphicPosition_Impl(), and SetGraphicPosition_Impl().

std::unique_ptr<weld::CustomWeld> SvxBackgroundTabPage::m_xWndPositionWin
private

Definition at line 131 of file backgrnd.hxx.

Referenced by dispose(), and SetGraphicPosition_Impl().

sal_uInt16 SvxBackgroundTabPage::nHtmlMode
private

Definition at line 75 of file backgrnd.hxx.

Referenced by ShowBitmapUI_Impl(), ShowSelector(), and SvxBackgroundTabPage().

std::unique_ptr<SvxBrushItem> SvxBackgroundTabPage::pHighlighting
private

Definition at line 99 of file backgrnd.hxx.

Referenced by FillItemSet(), and Reset().

std::unique_ptr<SvxOpenGraphicDialog> SvxBackgroundTabPage::pImportDlg
private

Items for Sw-Table must be corrected.

Definition at line 88 of file backgrnd.hxx.

Referenced by dispose().

const sal_uInt16 SvxBackgroundTabPage::pPageRanges
staticprivate
Initial value:
=
{
SID_ATTR_BRUSH, SID_ATTR_BRUSH,
SID_ATTR_BRUSH_CHAR, SID_ATTR_BRUSH_CHAR,
0
}

Definition at line 47 of file backgrnd.hxx.

Referenced by GetRanges().


The documentation for this class was generated from the following files: