LibreOffice Module basctl (master) 1
|
#include <macrodlg.hxx>
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 |
SbMethod * | GetMacro () |
void | DeleteMacro () |
SbMethod * | CreateMacro () |
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::Entry > | m_xMacroNameEdit |
std::unique_ptr< weld::Label > | m_xMacroFromTxT |
std::unique_ptr< weld::Label > | m_xMacrosSaveInTxt |
std::unique_ptr< SbTreeListBox > | m_xBasicBox |
std::unique_ptr< weld::TreeIter > | m_xBasicBoxIter |
std::unique_ptr< weld::Label > | m_xMacrosInTxt |
std::unique_ptr< weld::TreeView > | m_xMacroBox |
std::unique_ptr< weld::TreeIter > | m_xMacroBoxIter |
std::unique_ptr< weld::Button > | m_xRunButton |
std::unique_ptr< weld::Button > | m_xCloseButton |
std::unique_ptr< weld::Button > | m_xAssignButton |
std::unique_ptr< weld::Button > | m_xEditButton |
std::unique_ptr< weld::Button > | m_xDelButton |
std::unique_ptr< weld::Button > | m_xNewButton |
std::unique_ptr< weld::Button > | m_xOrganizeButton |
std::unique_ptr< weld::Button > | m_xNewLibButton |
std::unique_ptr< weld::Button > | m_xNewModButton |
Definition at line 38 of file macrodlg.hxx.
Enumerator | |
---|---|
All | |
ChooseOnly | |
Recording |
Definition at line 41 of file macrodlg.hxx.
basctl::MacroChooser::MacroChooser | ( | weld::Window * | pParent, |
const ::css::uno::Reference< ::css::frame::XFrame > & | xDocFrame | ||
) |
Definition at line 53 of file macrodlg.cxx.
References All, get(), basctl::GetDispatcher(), LINK, m_aMacrosInTxtBaseStr, m_xAssignButton, m_xBasicBox, m_xCloseButton, m_xDelButton, m_xDialog, m_xEditButton, m_xMacroBox, m_xMacroNameEdit, m_xMacrosInTxt, m_xMacrosSaveInTxt, m_xNewButton, m_xNewLibButton, m_xNewModButton, m_xOrganizeButton, m_xRunButton, and Modules.
|
overridevirtual |
Definition at line 114 of file macrodlg.cxx.
References bForceStoreBasic, SfxApplication::SaveBasicAndDialogContainer(), and SfxGetpApp().
|
private |
Definition at line 372 of file macrodlg.cxx.
References aDocument, All, bReadOnly, ChooseOnly, basctl::E_DIALOGS, basctl::E_SCRIPTS, EnableButton(), basctl::EntryDescriptor::GetDocument(), basctl::EntryDescriptor::GetLibName(), basctl::EntryDescriptor::GetLocation(), GetMacro(), StarBASIC::IsRunning(), basctl::LIBRARY_LOCATION_SHARE, m_xAssignButton, m_xBasicBox, m_xBasicBoxIter, m_xDelButton, m_xEditButton, m_xMacroBox, m_xNewButton, m_xNewLibButton, m_xNewModButton, m_xOrganizeButton, m_xRunButton, nMode, and Recording.
SbMethod * basctl::MacroChooser::CreateMacro | ( | ) |
Definition at line 295 of file macrodlg.cxx.
References aDocument, basctl::CreateMacro(), basctl::createModImpl(), DBG_ASSERT, basctl::E_DIALOGS, basctl::E_SCRIPTS, SbModule::FindMethod(), StarBASIC::FindModule(), basctl::EntryDescriptor::GetDocument(), BasicManager::GetLib(), basctl::EntryDescriptor::GetLibName(), basctl::EntryDescriptor::GetLibSubName(), StarBASIC::GetModules(), basctl::EntryDescriptor::GetName(), basctl::IDEResId(), m_xBasicBox, m_xBasicBoxIter, m_xDialog, m_xMacroNameEdit, and SAL_WARN.
Referenced by basctl::ChooseMacro().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void basctl::MacroChooser::DeleteMacro | ( | ) |
Definition at line 252 of file macrodlg.cxx.
References aDocument, bForceStoreBasic, basctl::CutLines(), DBG_ASSERT, basctl::FindBasic(), basctl::FindBasicManager(), basctl::GetBindingsPtr(), basctl::GetDispatcher(), basctl::ScriptDocument::getDocumentForBasicManager(), SbMethod::GetLineRange(), GetMacro(), SbModule::GetMethods(), SbMethod::GetModule(), SbxVariable::GetName(), SbModule::GetSource32(), m_xDialog, m_xMacroBox, m_xMacroBoxIter, basctl::QueryDelMacro(), and SbModule::SetSource32().
|
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().
|
staticprivate |
Definition at line 867 of file macrodlg.cxx.
References SbxVariable::GetInfo(), and tools::SvRef< typename T >::is().
SbMethod * basctl::MacroChooser::GetMacro | ( | ) |
Definition at line 239 of file macrodlg.cxx.
References SbModule::FindMethod(), m_xBasicBox, m_xBasicBoxIter, m_xMacroBox, and m_xMacroBoxIter.
Referenced by CheckButtons(), basctl::ChooseMacro(), and DeleteMacro().
|
inline |
|
private |
Definition at line 143 of file macrodlg.cxx.
References basctl::GetExtraData(), basctl::EntryDescriptor::GetMethodName(), basctl::GetShell(), m_xBasicBox, m_xDialog, m_xMacroBox, m_xMacroNameEdit, nIndex, and pData.
Referenced by run().
|
overridevirtual |
Definition at line 178 of file macrodlg.cxx.
References CheckButtons(), basctl::EntryDescriptor::GetDocument(), basctl::ScriptDocument::isActive(), basctl::ScriptDocument::isDocument(), StarBASIC::IsRunning(), m_xBasicBox, m_xBasicBoxIter, m_xCloseButton, RestoreMacroDescription(), and UpdateFields().
Referenced by basctl::ChooseMacro().
|
private |
Definition at line 358 of file macrodlg.cxx.
References m_xMacroNameEdit, and weld::TreeView::set_cursor().
void basctl::MacroChooser::SetMode | ( | Mode | nM | ) |
Definition at line 820 of file macrodlg.cxx.
References All, CheckButtons(), ChooseOnly, EnableButton(), basctl::IDEResId(), m_xAssignButton, m_xDelButton, m_xEditButton, m_xMacroFromTxT, m_xMacrosSaveInTxt, m_xNewButton, m_xNewLibButton, m_xNewModButton, m_xOrganizeButton, m_xRunButton, nMode, and Recording.
Referenced by basctl::ChooseMacro().
|
private |
Definition at line 123 of file macrodlg.cxx.
References basctl::GetExtraData(), m_xBasicBox, m_xBasicBoxIter, m_xMacroBox, m_xMacroBoxIter, m_xMacroNameEdit, basctl::OBJ_TYPE_METHOD, pData, basctl::EntryDescriptor::SetMethodName(), and basctl::EntryDescriptor::SetType().
|
private |
Definition at line 812 of file macrodlg.cxx.
References m_xMacroBox, and m_xMacroNameEdit.
Referenced by run().
|
private |
Definition at line 53 of file macrodlg.hxx.
Referenced by DeleteMacro(), and ~MacroChooser().
|
private |
Definition at line 48 of file macrodlg.hxx.
Referenced by MacroChooser().
|
private |
Definition at line 85 of file macrodlg.hxx.
Referenced by CheckButtons(), MacroChooser(), and SetMode().
|
private |
Definition at line 78 of file macrodlg.hxx.
Referenced by CheckButtons(), CreateMacro(), GetMacro(), MacroChooser(), RestoreMacroDescription(), run(), and StoreMacroDescription().
|
private |
Definition at line 79 of file macrodlg.hxx.
Referenced by CheckButtons(), CreateMacro(), GetMacro(), run(), and StoreMacroDescription().
|
private |
Definition at line 84 of file macrodlg.hxx.
Referenced by MacroChooser(), and run().
|
private |
Definition at line 87 of file macrodlg.hxx.
Referenced by CheckButtons(), MacroChooser(), and SetMode().
|
private |
Definition at line 51 of file macrodlg.hxx.
|
private |
Definition at line 86 of file macrodlg.hxx.
Referenced by CheckButtons(), MacroChooser(), and SetMode().
|
private |
Definition at line 81 of file macrodlg.hxx.
Referenced by CheckButtons(), DeleteMacro(), GetMacro(), MacroChooser(), RestoreMacroDescription(), StoreMacroDescription(), and UpdateFields().
|
private |
Definition at line 82 of file macrodlg.hxx.
Referenced by DeleteMacro(), GetMacro(), and StoreMacroDescription().
|
private |
Definition at line 76 of file macrodlg.hxx.
Referenced by SetMode().
|
private |
Definition at line 75 of file macrodlg.hxx.
Referenced by CreateMacro(), MacroChooser(), RestoreMacroDescription(), SaveSetCurEntry(), StoreMacroDescription(), and UpdateFields().
|
private |
Definition at line 80 of file macrodlg.hxx.
Referenced by MacroChooser().
|
private |
Definition at line 77 of file macrodlg.hxx.
Referenced by MacroChooser(), and SetMode().
|
private |
Definition at line 88 of file macrodlg.hxx.
Referenced by CheckButtons(), MacroChooser(), and SetMode().
|
private |
Definition at line 90 of file macrodlg.hxx.
Referenced by CheckButtons(), MacroChooser(), and SetMode().
|
private |
Definition at line 91 of file macrodlg.hxx.
Referenced by CheckButtons(), MacroChooser(), and SetMode().
|
private |
Definition at line 89 of file macrodlg.hxx.
Referenced by CheckButtons(), MacroChooser(), and SetMode().
|
private |
Definition at line 83 of file macrodlg.hxx.
Referenced by CheckButtons(), EnableButton(), MacroChooser(), and SetMode().
|
private |
Definition at line 55 of file macrodlg.hxx.
Referenced by CheckButtons(), EnableButton(), GetMode(), and SetMode().