LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScTpUserLists Class Reference

#include <tpusrlst.hxx>

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

Public Member Functions

 ScTpUserLists (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
 
virtual ~ScTpUserLists () override
 
virtual bool FillItemSet (SfxItemSet *rCoreAttrs) override
 
virtual void Reset (const SfxItemSet *rCoreAttrs) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Private Member Functions

void Init ()
 
size_t UpdateUserListBox ()
 
void UpdateEntries (size_t nList)
 
void AddNewList (const OUString &rEntriesStr)
 
void RemoveList (size_t nList)
 
void ModifyList (size_t nSelList, const OUString &rEntriesStr)
 
void CopyListFromArea (const ScRefAddress &rStartPos, const ScRefAddress &rEndPos)
 
 DECL_LINK (LbSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (BtnClickHdl, weld::Button &, void)
 
 DECL_LINK (EdEntriesModHdl, weld::TextView &, void)
 

Static Private Member Functions

static void MakeListStr (OUString &rListStr)
 

Private Attributes

std::unique_ptr< weld::LabelmxFtLists
 
std::unique_ptr< weld::TreeViewmxLbLists
 
std::unique_ptr< weld::LabelmxFtEntries
 
std::unique_ptr< weld::TextViewmxEdEntries
 
std::unique_ptr< weld::LabelmxFtCopyFrom
 
std::unique_ptr< weld::EntrymxEdCopyFrom
 
std::unique_ptr< weld::ButtonmxBtnNew
 
std::unique_ptr< weld::ButtonmxBtnDiscard
 
std::unique_ptr< weld::ButtonmxBtnAdd
 
std::unique_ptr< weld::ButtonmxBtnModify
 
std::unique_ptr< weld::ButtonmxBtnRemove
 
std::unique_ptr< weld::ButtonmxBtnCopy
 
const OUString aStrQueryRemove
 
const OUString aStrCopyList
 
const OUString aStrCopyFrom
 
const OUString aStrCopyErr
 
const sal_uInt16 nWhichUserLists
 
std::unique_ptr< ScUserListpUserLists
 
ScDocumentpDoc
 
ScViewDatapViewData
 
OUString aStrSelectedArea
 
bool bModifyMode
 
bool bCancelMode
 
bool bCopyDone
 
sal_Int32 nCancelPos
 

Additional Inherited Members

- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Detailed Description

Definition at line 29 of file tpusrlst.hxx.

Constructor & Destructor Documentation

◆ ScTpUserLists()

ScTpUserLists::ScTpUserLists ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rArgSet 
)

Definition at line 49 of file tpusrlst.cxx.

References GetWhich, Init(), Reset(), and SfxTabPage::SetExchangeSupport().

◆ ~ScTpUserLists()

ScTpUserLists::~ScTpUserLists ( )
overridevirtual

Definition at line 82 of file tpusrlst.cxx.

Member Function Documentation

◆ AddNewList()

void ScTpUserLists::AddNewList ( const OUString &  rEntriesStr)
private

Definition at line 315 of file tpusrlst.cxx.

References MakeListStr(), and pUserLists.

Referenced by CopyListFromArea().

◆ CopyListFromArea()

void ScTpUserLists::CopyListFromArea ( const ScRefAddress rStartPos,
const ScRefAddress rEndPos 
)
private

◆ Create()

std::unique_ptr< SfxTabPage > ScTpUserLists::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rAttrSet 
)
static

Definition at line 133 of file tpusrlst.cxx.

Referenced by ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc().

◆ DeactivatePage()

DeactivateRC ScTpUserLists::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 227 of file tpusrlst.cxx.

References FillItemSet().

◆ DECL_LINK() [1/3]

ScTpUserLists::DECL_LINK ( BtnClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/3]

ScTpUserLists::DECL_LINK ( EdEntriesModHdl  ,
weld::TextView ,
void   
)
private

◆ DECL_LINK() [3/3]

ScTpUserLists::DECL_LINK ( LbSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ FillItemSet()

bool ScTpUserLists::FillItemSet ( SfxItemSet rCoreAttrs)
overridevirtual

◆ Init()

void ScTpUserLists::Init ( void  )
private

◆ MakeListStr()

void ScTpUserLists::MakeListStr ( OUString &  rListStr)
staticprivate

Definition at line 279 of file tpusrlst.cxx.

References aStr, cDelimiter, o3tl::getToken(), LF, and comphelper::string::strip().

Referenced by AddNewList(), and ModifyList().

◆ ModifyList()

void ScTpUserLists::ModifyList ( size_t  nSelList,
const OUString &  rEntriesStr 
)
private

Definition at line 413 of file tpusrlst.cxx.

References MakeListStr(), and pUserLists.

◆ RemoveList()

void ScTpUserLists::RemoveList ( size_t  nList)
private

Definition at line 425 of file tpusrlst.cxx.

References pUserLists, and size.

◆ Reset()

void ScTpUserLists::Reset ( const SfxItemSet rCoreAttrs)
overridevirtual

◆ UpdateEntries()

void ScTpUserLists::UpdateEntries ( size_t  nList)
private

◆ UpdateUserListBox()

size_t ScTpUserLists::UpdateUserListBox ( )
private

Definition at line 235 of file tpusrlst.cxx.

References i, mxLbLists, nCount, and pUserLists.

Referenced by Reset().

Member Data Documentation

◆ aStrCopyErr

const OUString ScTpUserLists::aStrCopyErr
private

Definition at line 57 of file tpusrlst.hxx.

Referenced by CopyListFromArea().

◆ aStrCopyFrom

const OUString ScTpUserLists::aStrCopyFrom
private

Definition at line 56 of file tpusrlst.hxx.

Referenced by CopyListFromArea().

◆ aStrCopyList

const OUString ScTpUserLists::aStrCopyList
private

Definition at line 55 of file tpusrlst.hxx.

Referenced by CopyListFromArea().

◆ aStrQueryRemove

const OUString ScTpUserLists::aStrQueryRemove
private

Definition at line 54 of file tpusrlst.hxx.

◆ aStrSelectedArea

OUString ScTpUserLists::aStrSelectedArea
private

Definition at line 64 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

◆ bCancelMode

bool ScTpUserLists::bCancelMode
private

Definition at line 67 of file tpusrlst.hxx.

Referenced by FillItemSet().

◆ bCopyDone

bool ScTpUserLists::bCopyDone
private

Definition at line 68 of file tpusrlst.hxx.

Referenced by CopyListFromArea(), and Reset().

◆ bModifyMode

bool ScTpUserLists::bModifyMode
private

Definition at line 66 of file tpusrlst.hxx.

Referenced by FillItemSet().

◆ mxBtnAdd

std::unique_ptr<weld::Button> ScTpUserLists::mxBtnAdd
private

Definition at line 49 of file tpusrlst.hxx.

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

◆ mxBtnCopy

std::unique_ptr<weld::Button> ScTpUserLists::mxBtnCopy
private

Definition at line 52 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

◆ mxBtnDiscard

std::unique_ptr<weld::Button> ScTpUserLists::mxBtnDiscard
private

Definition at line 48 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

◆ mxBtnModify

std::unique_ptr<weld::Button> ScTpUserLists::mxBtnModify
private

Definition at line 50 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

◆ mxBtnNew

std::unique_ptr<weld::Button> ScTpUserLists::mxBtnNew
private

Definition at line 47 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

◆ mxBtnRemove

std::unique_ptr<weld::Button> ScTpUserLists::mxBtnRemove
private

Definition at line 51 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

◆ mxEdCopyFrom

std::unique_ptr<weld::Entry> ScTpUserLists::mxEdCopyFrom
private

Definition at line 46 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

◆ mxEdEntries

std::unique_ptr<weld::TextView> ScTpUserLists::mxEdEntries
private

Definition at line 44 of file tpusrlst.hxx.

Referenced by Init(), Reset(), and UpdateEntries().

◆ mxFtCopyFrom

std::unique_ptr<weld::Label> ScTpUserLists::mxFtCopyFrom
private

Definition at line 45 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

◆ mxFtEntries

std::unique_ptr<weld::Label> ScTpUserLists::mxFtEntries
private

Definition at line 43 of file tpusrlst.hxx.

Referenced by Reset().

◆ mxFtLists

std::unique_ptr<weld::Label> ScTpUserLists::mxFtLists
private

Definition at line 41 of file tpusrlst.hxx.

Referenced by Reset().

◆ mxLbLists

std::unique_ptr<weld::TreeView> ScTpUserLists::mxLbLists
private

Definition at line 42 of file tpusrlst.hxx.

Referenced by Init(), Reset(), and UpdateUserListBox().

◆ nCancelPos

sal_Int32 ScTpUserLists::nCancelPos
private

Definition at line 69 of file tpusrlst.hxx.

◆ nWhichUserLists

const sal_uInt16 ScTpUserLists::nWhichUserLists
private

Definition at line 59 of file tpusrlst.hxx.

Referenced by FillItemSet(), and Reset().

◆ pDoc

ScDocument* ScTpUserLists::pDoc
private

Definition at line 62 of file tpusrlst.hxx.

Referenced by CopyListFromArea(), and Init().

◆ pUserLists

std::unique_ptr<ScUserList> ScTpUserLists::pUserLists
private

◆ pViewData

ScViewData* ScTpUserLists::pViewData
private

Definition at line 63 of file tpusrlst.hxx.

Referenced by Init(), and Reset().


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