LibreOffice Module sc (master) 1
|
#include <retypepassdlg.hxx>
Classes | |
struct | TableItem |
Public Member Functions | |
ScRetypePassDlg (weld::Window *pParent) | |
virtual | ~ScRetypePassDlg () override |
virtual short | run () override |
void | SetDataFromDocument (const ScDocument &rDoc) |
void | SetDesiredHash (ScPasswordHash eHash) |
void | WriteNewDataToDocument (ScDocument &rDoc) const |
Write the new set of password data to the document instance to overwrite the current ones. More... | |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
void | Init () |
void | PopulateDialog () |
void | SetDocData () |
void | SetTableData (size_t nRowPos, SCTAB nTab) |
void | CheckHashStatus () |
Check the status of all hash values to see if it's okay to enable the OK button. More... | |
void | DeleteSheets () |
DECL_LINK (OKHdl, weld::Button &, void) | |
DECL_LINK (RetypeBtnHdl, weld::Button &, void) | |
Private Attributes | |
OUString | maTextNotProtected |
OUString | maTextNotPassProtected |
OUString | maTextHashBad |
OUString | maTextHashGood |
::std::vector< TableItem > | maTableItems |
std::shared_ptr< ScDocProtection > | mpDocItem |
ScPasswordHash | meDesiredHash |
std::unique_ptr< weld::Button > | mxBtnOk |
std::unique_ptr< weld::Label > | mxTextDocStatus |
std::unique_ptr< weld::Button > | mxBtnRetypeDoc |
std::unique_ptr< weld::ScrolledWindow > | mxScrolledWindow |
std::unique_ptr< weld::Container > | mxSheetsBox |
std::vector< std::unique_ptr< PassFragment > > | maSheets |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 39 of file retypepassdlg.hxx.
|
explicit |
Definition at line 27 of file retypepassdlg.cxx.
References Init(), and mxScrolledWindow.
|
overridevirtual |
Definition at line 45 of file retypepassdlg.cxx.
|
private |
Check the status of all hash values to see if it's okay to enable the OK button.
Definition at line 198 of file retypepassdlg.cxx.
References i, lcl_IsInGoodStatus(), maTableItems, meDesiredHash, mpDocItem, and mxBtnOk.
Referenced by run().
|
private |
|
private |
|
private |
Definition at line 47 of file retypepassdlg.cxx.
References maSheets.
Referenced by SetDataFromDocument().
|
private |
Definition at line 111 of file retypepassdlg.cxx.
References LINK, maTextNotProtected, mxBtnOk, mxBtnRetypeDoc, and mxTextDocStatus.
Referenced by ScRetypePassDlg().
|
private |
Definition at line 123 of file retypepassdlg.cxx.
References i, maTableItems, SetDocData(), and SetTableData().
Referenced by run().
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 49 of file retypepassdlg.cxx.
References CheckHashStatus(), and PopulateDialog().
Referenced by ScTabViewShell::ExecuteRetypePassDlg().
void ScRetypePassDlg::SetDataFromDocument | ( | const ScDocument & | rDoc | ) |
Definition at line 66 of file retypepassdlg.cxx.
References DeleteSheets(), ScDocument::GetDocProtection(), ScDocument::GetName(), ScDocument::GetTableCount(), ScDocument::GetTabProtection(), i, ScDocProtection::isProtected(), ScTableProtection::isProtected(), LINK, ScRetypePassDlg::TableItem::maName, maSheets, maTableItems, mpDocItem, ScRetypePassDlg::TableItem::mpProtect, and mxSheetsBox.
Referenced by ScTabViewShell::ExecuteRetypePassDlg().
void ScRetypePassDlg::SetDesiredHash | ( | ScPasswordHash | eHash | ) |
Definition at line 91 of file retypepassdlg.cxx.
References meDesiredHash.
Referenced by ScTabViewShell::ExecuteRetypePassDlg().
|
private |
Definition at line 133 of file retypepassdlg.cxx.
References maTextHashBad, maTextHashGood, maTextNotPassProtected, meDesiredHash, mpDocItem, mxBtnRetypeDoc, and mxTextDocStatus.
Referenced by PopulateDialog().
|
private |
Definition at line 152 of file retypepassdlg.cxx.
References ScTableProtection::hasPasswordHash(), ScTableProtection::isPasswordEmpty(), ScTableProtection::isProtected(), maName, maSheets, maTableItems, maTextHashBad, maTextHashGood, maTextNotPassProtected, maTextNotProtected, meDesiredHash, weld::Label::set_label(), and weld::Widget::set_sensitive().
Referenced by PopulateDialog().
void ScRetypePassDlg::WriteNewDataToDocument | ( | ScDocument & | rDoc | ) | const |
Write the new set of password data to the document instance to overwrite the current ones.
Definition at line 93 of file retypepassdlg.cxx.
References ScDocument::GetTableCount(), i, maTableItems, mpDocItem, n, ScDocument::SetDocProtection(), and ScDocument::SetTabProtection().
Referenced by ScTabViewShell::ExecuteRetypePassDlg().
|
private |
Definition at line 90 of file retypepassdlg.hxx.
Referenced by DeleteSheets(), SetDataFromDocument(), and SetTableData().
|
private |
Definition at line 80 of file retypepassdlg.hxx.
Referenced by CheckHashStatus(), PopulateDialog(), SetDataFromDocument(), SetTableData(), and WriteNewDataToDocument().
|
private |
Definition at line 69 of file retypepassdlg.hxx.
Referenced by SetDocData(), and SetTableData().
|
private |
Definition at line 70 of file retypepassdlg.hxx.
Referenced by SetDocData(), and SetTableData().
|
private |
Definition at line 68 of file retypepassdlg.hxx.
Referenced by SetDocData(), and SetTableData().
|
private |
Definition at line 67 of file retypepassdlg.hxx.
Referenced by Init(), and SetTableData().
|
private |
Definition at line 83 of file retypepassdlg.hxx.
Referenced by CheckHashStatus(), SetDesiredHash(), SetDocData(), and SetTableData().
|
private |
Definition at line 82 of file retypepassdlg.hxx.
Referenced by CheckHashStatus(), SetDataFromDocument(), SetDocData(), and WriteNewDataToDocument().
|
private |
Definition at line 85 of file retypepassdlg.hxx.
Referenced by CheckHashStatus(), and Init().
|
private |
Definition at line 87 of file retypepassdlg.hxx.
Referenced by Init(), and SetDocData().
|
private |
Definition at line 88 of file retypepassdlg.hxx.
Referenced by ScRetypePassDlg().
|
private |
Definition at line 89 of file retypepassdlg.hxx.
Referenced by SetDataFromDocument().
|
private |
Definition at line 86 of file retypepassdlg.hxx.
Referenced by Init(), and SetDocData().