LibreOffice Module basctl (master) 1
Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
basctl::MacroChooser Class Reference

#include <macrodlg.hxx>

Inheritance diagram for basctl::MacroChooser:
[legend]
Collaboration diagram for basctl::MacroChooser:
[legend]

Public Types

enum  Mode {
  All = 1 ,
  ChooseOnly = 2 ,
  Recording = 3
}
 

Public Member Functions

 MacroChooser (weld::Window *pParent, const ::css::uno::Reference< ::css::frame::XFrame > &xDocFrame)
 
virtual ~MacroChooser () override
 
SbMethodGetMacro ()
 
void DeleteMacro ()
 
SbMethodCreateMacro ()
 
virtual short run () override
 
void SetMode (Mode)
 
Mode GetMode () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 

Private Member Functions

 DECL_LINK (MacroSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (MacroDoubleClickHdl, weld::TreeView &, bool)
 
 DECL_LINK (BasicSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (EditModifyHdl, weld::Entry &, void)
 
 DECL_LINK (ContextMenuHdl, const CommandEvent &, bool)
 
 DECL_LINK (ButtonHdl, weld::Button &, void)
 
void CheckButtons ()
 
void SaveSetCurEntry (weld::TreeView &rBox, const weld::TreeIter &rEntry)
 
void UpdateFields ()
 
void EnableButton (weld::Button &rButton, bool bEnable)
 
void StoreMacroDescription ()
 
void RestoreMacroDescription ()
 

Static Private Member Functions

static OUString GetInfo (SbxVariable *pVar)
 

Private Attributes

OUString m_aMacrosInTxtBaseStr
 
::css::uno::Reference< ::css::frame::XFrame > m_xDocumentFrame
 
bool bForceStoreBasic
 
Mode nMode
 
std::unique_ptr< weld::Entrym_xMacroNameEdit
 
std::unique_ptr< weld::Labelm_xMacroFromTxT
 
std::unique_ptr< weld::Labelm_xMacrosSaveInTxt
 
std::unique_ptr< SbTreeListBoxm_xBasicBox
 
std::unique_ptr< weld::TreeIterm_xBasicBoxIter
 
std::unique_ptr< weld::Labelm_xMacrosInTxt
 
std::unique_ptr< weld::TreeViewm_xMacroBox
 
std::unique_ptr< weld::TreeIterm_xMacroBoxIter
 
std::unique_ptr< weld::Buttonm_xRunButton
 
std::unique_ptr< weld::Buttonm_xCloseButton
 
std::unique_ptr< weld::Buttonm_xAssignButton
 
std::unique_ptr< weld::Buttonm_xEditButton
 
std::unique_ptr< weld::Buttonm_xDelButton
 
std::unique_ptr< weld::Buttonm_xNewButton
 
std::unique_ptr< weld::Buttonm_xOrganizeButton
 
std::unique_ptr< weld::Buttonm_xNewLibButton
 
std::unique_ptr< weld::Buttonm_xNewModButton
 

Detailed Description

Definition at line 38 of file macrodlg.hxx.

Member Enumeration Documentation

◆ Mode

Enumerator
All 
ChooseOnly 
Recording 

Definition at line 41 of file macrodlg.hxx.

Constructor & Destructor Documentation

◆ MacroChooser()

basctl::MacroChooser::MacroChooser ( weld::Window pParent,
const ::css::uno::Reference< ::css::frame::XFrame > &  xDocFrame 
)

◆ ~MacroChooser()

basctl::MacroChooser::~MacroChooser ( )
overridevirtual

Member Function Documentation

◆ CheckButtons()

void basctl::MacroChooser::CheckButtons ( )
private

◆ CreateMacro()

SbMethod * basctl::MacroChooser::CreateMacro ( )

◆ DECL_LINK() [1/6]

basctl::MacroChooser::DECL_LINK ( BasicSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [2/6]

basctl::MacroChooser::DECL_LINK ( ButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/6]

basctl::MacroChooser::DECL_LINK ( ContextMenuHdl  ,
const CommandEvent ,
bool   
)
private

◆ DECL_LINK() [4/6]

basctl::MacroChooser::DECL_LINK ( EditModifyHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [5/6]

basctl::MacroChooser::DECL_LINK ( MacroDoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [6/6]

basctl::MacroChooser::DECL_LINK ( MacroSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DeleteMacro()

void basctl::MacroChooser::DeleteMacro ( )

◆ EnableButton()

void basctl::MacroChooser::EnableButton ( weld::Button rButton,
bool  bEnable 
)
private

Definition at line 226 of file macrodlg.cxx.

References ChooseOnly, m_xRunButton, nMode, Recording, and weld::Widget::set_sensitive().

Referenced by CheckButtons(), and SetMode().

◆ GetInfo()

OUString basctl::MacroChooser::GetInfo ( SbxVariable pVar)
staticprivate

Definition at line 867 of file macrodlg.cxx.

References SbxVariable::GetInfo(), and tools::SvRef< typename T >::is().

◆ GetMacro()

SbMethod * basctl::MacroChooser::GetMacro ( )

◆ GetMode()

Mode basctl::MacroChooser::GetMode ( ) const
inline

Definition at line 103 of file macrodlg.hxx.

References nMode.

Referenced by basctl::ChooseMacro().

◆ RestoreMacroDescription()

void basctl::MacroChooser::RestoreMacroDescription ( )
private

◆ run()

short basctl::MacroChooser::run ( )
overridevirtual

◆ SaveSetCurEntry()

void basctl::MacroChooser::SaveSetCurEntry ( weld::TreeView rBox,
const weld::TreeIter rEntry 
)
private

Definition at line 358 of file macrodlg.cxx.

References m_xMacroNameEdit, and weld::TreeView::set_cursor().

◆ SetMode()

void basctl::MacroChooser::SetMode ( Mode  nM)

◆ StoreMacroDescription()

void basctl::MacroChooser::StoreMacroDescription ( )
private

◆ UpdateFields()

void basctl::MacroChooser::UpdateFields ( )
private

Definition at line 812 of file macrodlg.cxx.

References m_xMacroBox, and m_xMacroNameEdit.

Referenced by run().

Member Data Documentation

◆ bForceStoreBasic

bool basctl::MacroChooser::bForceStoreBasic
private

Definition at line 53 of file macrodlg.hxx.

Referenced by DeleteMacro(), and ~MacroChooser().

◆ m_aMacrosInTxtBaseStr

OUString basctl::MacroChooser::m_aMacrosInTxtBaseStr
private

Definition at line 48 of file macrodlg.hxx.

Referenced by MacroChooser().

◆ m_xAssignButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xAssignButton
private

Definition at line 85 of file macrodlg.hxx.

Referenced by CheckButtons(), MacroChooser(), and SetMode().

◆ m_xBasicBox

std::unique_ptr<SbTreeListBox> basctl::MacroChooser::m_xBasicBox
private

◆ m_xBasicBoxIter

std::unique_ptr<weld::TreeIter> basctl::MacroChooser::m_xBasicBoxIter
private

Definition at line 79 of file macrodlg.hxx.

Referenced by CheckButtons(), CreateMacro(), GetMacro(), run(), and StoreMacroDescription().

◆ m_xCloseButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xCloseButton
private

Definition at line 84 of file macrodlg.hxx.

Referenced by MacroChooser(), and run().

◆ m_xDelButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xDelButton
private

Definition at line 87 of file macrodlg.hxx.

Referenced by CheckButtons(), MacroChooser(), and SetMode().

◆ m_xDocumentFrame

::css::uno::Reference< ::css::frame::XFrame > basctl::MacroChooser::m_xDocumentFrame
private

Definition at line 51 of file macrodlg.hxx.

◆ m_xEditButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xEditButton
private

Definition at line 86 of file macrodlg.hxx.

Referenced by CheckButtons(), MacroChooser(), and SetMode().

◆ m_xMacroBox

std::unique_ptr<weld::TreeView> basctl::MacroChooser::m_xMacroBox
private

◆ m_xMacroBoxIter

std::unique_ptr<weld::TreeIter> basctl::MacroChooser::m_xMacroBoxIter
private

Definition at line 82 of file macrodlg.hxx.

Referenced by DeleteMacro(), GetMacro(), and StoreMacroDescription().

◆ m_xMacroFromTxT

std::unique_ptr<weld::Label> basctl::MacroChooser::m_xMacroFromTxT
private

Definition at line 76 of file macrodlg.hxx.

Referenced by SetMode().

◆ m_xMacroNameEdit

std::unique_ptr<weld::Entry> basctl::MacroChooser::m_xMacroNameEdit
private

◆ m_xMacrosInTxt

std::unique_ptr<weld::Label> basctl::MacroChooser::m_xMacrosInTxt
private

Definition at line 80 of file macrodlg.hxx.

Referenced by MacroChooser().

◆ m_xMacrosSaveInTxt

std::unique_ptr<weld::Label> basctl::MacroChooser::m_xMacrosSaveInTxt
private

Definition at line 77 of file macrodlg.hxx.

Referenced by MacroChooser(), and SetMode().

◆ m_xNewButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xNewButton
private

Definition at line 88 of file macrodlg.hxx.

Referenced by CheckButtons(), MacroChooser(), and SetMode().

◆ m_xNewLibButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xNewLibButton
private

Definition at line 90 of file macrodlg.hxx.

Referenced by CheckButtons(), MacroChooser(), and SetMode().

◆ m_xNewModButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xNewModButton
private

Definition at line 91 of file macrodlg.hxx.

Referenced by CheckButtons(), MacroChooser(), and SetMode().

◆ m_xOrganizeButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xOrganizeButton
private

Definition at line 89 of file macrodlg.hxx.

Referenced by CheckButtons(), MacroChooser(), and SetMode().

◆ m_xRunButton

std::unique_ptr<weld::Button> basctl::MacroChooser::m_xRunButton
private

Definition at line 83 of file macrodlg.hxx.

Referenced by CheckButtons(), EnableButton(), MacroChooser(), and SetMode().

◆ nMode

Mode basctl::MacroChooser::nMode
private

Definition at line 55 of file macrodlg.hxx.

Referenced by CheckButtons(), EnableButton(), GetMode(), and SetMode().


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