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
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
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
 
OString GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

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 OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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 30 of file tpusrlst.hxx.

Constructor & Destructor Documentation

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

Definition at line 48 of file tpusrlst.cxx.

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

ScTpUserLists::~ScTpUserLists ( )
overridevirtual

Definition at line 81 of file tpusrlst.cxx.

Member Function Documentation

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

Definition at line 314 of file tpusrlst.cxx.

References MakeListStr(), and pUserLists.

Referenced by CopyListFromArea().

void ScTpUserLists::CopyListFromArea ( const ScRefAddress rStartPos,
const ScRefAddress rEndPos 
)
private
std::unique_ptr< SfxTabPage > ScTpUserLists::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rAttrSet 
)
static

Definition at line 132 of file tpusrlst.cxx.

Referenced by ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc().

DeactivateRC ScTpUserLists::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 226 of file tpusrlst.cxx.

References FillItemSet().

ScTpUserLists::DECL_LINK ( LbSelectHdl  ,
weld::TreeView ,
void   
)
private
ScTpUserLists::DECL_LINK ( BtnClickHdl  ,
weld::Button ,
void   
)
private
ScTpUserLists::DECL_LINK ( EdEntriesModHdl  ,
weld::TextView ,
void   
)
private
bool ScTpUserLists::FillItemSet ( SfxItemSet rCoreAttrs)
overridevirtual
void ScTpUserLists::Init ( void  )
private
void ScTpUserLists::MakeListStr ( OUString &  rListStr)
staticprivate

Definition at line 278 of file tpusrlst.cxx.

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

Referenced by AddNewList(), and ModifyList().

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

Definition at line 412 of file tpusrlst.cxx.

References MakeListStr(), and pUserLists.

void ScTpUserLists::RemoveList ( size_t  nList)
private

Definition at line 424 of file tpusrlst.cxx.

References pUserLists, and size.

void ScTpUserLists::Reset ( const SfxItemSet rCoreAttrs)
overridevirtual
void ScTpUserLists::UpdateEntries ( size_t  nList)
private
size_t ScTpUserLists::UpdateUserListBox ( )
private

Definition at line 234 of file tpusrlst.cxx.

References i, mxLbLists, nCount, and pUserLists.

Referenced by Reset().

Member Data Documentation

const OUString ScTpUserLists::aStrCopyErr
private

Definition at line 58 of file tpusrlst.hxx.

Referenced by CopyListFromArea().

const OUString ScTpUserLists::aStrCopyFrom
private

Definition at line 57 of file tpusrlst.hxx.

Referenced by CopyListFromArea().

const OUString ScTpUserLists::aStrCopyList
private

Definition at line 56 of file tpusrlst.hxx.

Referenced by CopyListFromArea().

const OUString ScTpUserLists::aStrQueryRemove
private

Definition at line 55 of file tpusrlst.hxx.

OUString ScTpUserLists::aStrSelectedArea
private

Definition at line 65 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

bool ScTpUserLists::bCancelMode
private

Definition at line 68 of file tpusrlst.hxx.

Referenced by FillItemSet().

bool ScTpUserLists::bCopyDone
private

Definition at line 69 of file tpusrlst.hxx.

Referenced by CopyListFromArea(), and Reset().

bool ScTpUserLists::bModifyMode
private

Definition at line 67 of file tpusrlst.hxx.

Referenced by FillItemSet().

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

Definition at line 50 of file tpusrlst.hxx.

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

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

Definition at line 53 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

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

Definition at line 49 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

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

Definition at line 51 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

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

Definition at line 48 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

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

Definition at line 52 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

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

Definition at line 47 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

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

Definition at line 45 of file tpusrlst.hxx.

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

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

Definition at line 46 of file tpusrlst.hxx.

Referenced by Init(), and Reset().

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

Definition at line 44 of file tpusrlst.hxx.

Referenced by Reset().

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

Definition at line 42 of file tpusrlst.hxx.

Referenced by Reset().

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

Definition at line 43 of file tpusrlst.hxx.

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

sal_Int32 ScTpUserLists::nCancelPos
private

Definition at line 70 of file tpusrlst.hxx.

const sal_uInt16 ScTpUserLists::nWhichUserLists
private

Definition at line 60 of file tpusrlst.hxx.

Referenced by FillItemSet(), and Reset().

ScDocument* ScTpUserLists::pDoc
private

Definition at line 63 of file tpusrlst.hxx.

Referenced by CopyListFromArea(), and Init().

std::unique_ptr<ScUserList> ScTpUserLists::pUserLists
private
ScViewData* ScTpUserLists::pViewData
private

Definition at line 64 of file tpusrlst.hxx.

Referenced by Init(), and Reset().


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