LibreOffice Module sw (master) 1
|
#include <swuicnttab.hxx>
Classes | |
struct | TypeData |
Public Member Functions | |
SwMultiTOXTabDialog (weld::Widget *pParent, const SfxItemSet &rSet, SwWrtShell &rShell, SwTOXBase *pCurTOX, sal_uInt16 nToxType, bool bGlobal) | |
virtual | ~SwMultiTOXTabDialog () override |
virtual void | PageCreated (const OUString &rId, SfxTabPage &rPage) override |
SwForm * | GetForm (CurTOXType eType) |
const CurTOXType & | GetCurrentTOXType () const |
void | SetCurrentTOXType (const CurTOXType &eSet) |
bool | IsTOXEditMode () const |
SwWrtShell & | GetWrtShell () |
SwTOXDescription & | GetTOXDescription (CurTOXType eTOXTypes) |
void | CreateOrUpdateExample (TOXTypes nTOXIndex, sal_uInt16 nPage=0, sal_uInt16 nCurLevel=USHRT_MAX) |
Public Member Functions inherited from SfxTabDialogController | |
SfxTabDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *=nullptr, bool bEditFmt=false) | |
virtual | ~SfxTabDialogController () override |
void | AddTabPage (const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc) |
void | AddTabPage (const OUString &rName, sal_uInt16 nPageCreateId) |
void | AddTabPage (const OUString &rName, const OUString &rLabel, CreateTabPage pCreateFunc) |
void | AddTabPage (const OUString &rName, const OUString &rLabel, sal_uInt16 nPageCreateId) |
void | RemoveTabPage (const OUString &rName) |
void | SetCurPageId (const OUString &rName) |
void | ShowPage (const OUString &rName) |
OUString | GetCurPageId () const |
SfxTabPage * | GetCurTabPage () const |
const WhichRangesContainer & | GetInputRanges (const SfxItemPool &) |
void | SetInputSet (const SfxItemSet *pInSet) |
const SfxItemSet * | GetOutputItemSet () const |
virtual weld::Button & | GetOKButton () const override |
weld::Button & | GetCancelButton () const |
weld::Button * | GetUserButton () const |
weld::Button * | GetStandardButton () const |
weld::Button * | GetApplyButton () const |
weld::Button * | GetResetButton () const |
void | RemoveResetButton () |
void | RemoveStandardButton () |
virtual short | run () override |
virtual const SfxItemSet * | GetExampleSet () const override |
void | SetApplyHandler (const Link< weld::Button &, void > &_rHdl) |
bool | Apply () |
void | Applied () |
std::vector< OUString > | getAllPageUIXMLDescriptions () const |
bool | selectPageByUIXMLDescription (const OUString &rUIXMLDescription) |
BitmapEx | createScreenshot () const |
OUString | GetScreenshotId () const |
Public Member Functions inherited from SfxOkDialogController | |
SfxOkDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OUString &rID) | |
virtual weld::Button & | GetOKButton () const=0 |
virtual const SfxItemSet * | GetExampleSet () const=0 |
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 |
Static Public Member Functions | |
static bool | IsNoNum (SwWrtShell &rSh, const OUString &rName) |
Static Public Member Functions inherited from SfxTabDialogController | |
static bool | runAsync (const std::shared_ptr< SfxTabDialogController > &rController, const std::function< void(sal_Int32)> &) |
Private Member Functions | |
virtual short | Ok () override |
std::unique_ptr< SwTOXDescription > | CreateTOXDescFromTOXBase (const SwTOXBase *pCurTOX) |
void | ShowPreview () |
DECL_LINK (CreateExample_Hdl, SwOneExampleFrame &, void) | |
DECL_LINK (ShowPreviewHdl, weld::Toggleable &, void) | |
Private Attributes | |
std::unique_ptr< SwTOXMgr > | m_pMgr |
SwWrtShell & | m_rWrtShell |
std::vector< TypeData > | m_vTypeData |
SwTOXBase * | m_pParamTOXBase |
CurTOXType | m_eCurrentTOXType |
OUString | m_sUserDefinedIndex |
sal_uInt16 | m_nInitialTOXType |
bool | m_bEditTOX |
bool | m_bExampleCreated |
bool | m_bGlobalFlag |
std::unique_ptr< SwOneExampleFrame > | m_xExampleFrame |
std::unique_ptr< weld::CheckButton > | m_xShowExampleCB |
std::unique_ptr< weld::CustomWeld > | m_xExampleFrameWin |
Additional Inherited Members | |
Protected Member Functions inherited from SfxTabDialogController | |
DECL_LINK (OkHdl, weld::Button &, void) | |
DECL_DLLPRIVATE_LINK (ResetHdl, weld::Button &, void) | |
DECL_DLLPRIVATE_LINK (BaseFmtHdl, weld::Button &, void) | |
DECL_DLLPRIVATE_LINK (UserHdl, weld::Button &, void) | |
DECL_DLLPRIVATE_LINK (CancelHdl, weld::Button &, void) | |
virtual short | Ok () |
virtual void | RefreshInputSet () |
virtual SfxItemSet * | CreateInputItemSet (const OUString &rName) |
virtual void | PageCreated (const OUString &rName, SfxTabPage &rPage) |
virtual void | ActivatePage (const OUString &rPage) |
bool | DeactivatePage (std::u16string_view aPage) |
SfxItemSet * | GetInputSetImpl () |
SfxTabPage * | GetTabPage (std::u16string_view rPageId) const |
bool | PrepareLeaveCurrentPage () |
void | SavePosAndId () |
Protected Attributes inherited from SfxTabDialogController | |
std::unique_ptr< weld::Notebook > | m_xTabCtrl |
std::unique_ptr< SfxItemSet > | m_xExampleSet |
Definition at line 55 of file swuicnttab.hxx.
SwMultiTOXTabDialog::SwMultiTOXTabDialog | ( | weld::Widget * | pParent, |
const SfxItemSet & | rSet, | ||
SwWrtShell & | rShell, | ||
SwTOXBase * | pCurTOX, | ||
sal_uInt16 | nToxType, | ||
bool | bGlobal | ||
) |
Definition at line 206 of file cnttab.cxx.
References SfxTabDialogController::AddTabPage(), SfxAbstractDialogFactory::Create(), SwTOXSelectTabPage::Create(), SwTOXEntryTabPage::Create(), SwTOXStylesTabPage::Create(), SwColumnPage::Create(), CreateTOXDescFromTOXBase(), CurTOXType::eType, SwEditShell::GetFieldType(), SwAuthorityFieldType::GetPrefix(), SwAuthorityFieldType::GetSuffix(), SfxAbstractDialogFactory::GetTabPageCreatorFunc(), SwTOXBase::GetTOXForm(), SwTOXBase::GetTOXType(), SwEditShell::GetTOXType(), SwEditShell::GetTOXTypeCount(), SwTOXBase::GetType(), i, SwAuthorityFieldType::IsSequence(), LINK, m_bEditTOX, m_eCurrentTOXType, m_rWrtShell, m_vTypeData, m_xShowExampleCB, CurTOXType::nIndex, rSet, SfxTabDialogController::SetCurPageId(), ShowPreview(), SW_MOD, TableOfAuthorities, TOX_AUTHORITIES, TOX_CONTENT, and TOX_USER.
|
overridevirtual |
Definition at line 290 of file cnttab.cxx.
References m_xShowExampleCB, and SW_MOD.
void SwMultiTOXTabDialog::CreateOrUpdateExample | ( | TOXTypes | nTOXIndex, |
sal_uInt16 | nPage = 0 , |
||
sal_uInt16 | nCurLevel = USHRT_MAX |
||
) |
Definition at line 127 of file cntex.cxx.
References AlphaDelimiter, Any, Calc, CAPTION_COMPLETE, CAPTION_NUMBER, CAPTION_TEXT, CaseSensitive, Chart, convertTwipToMm100(), Dash, DrawImpress, CurTOXType::eType, Exception, FF, Frame, sw::proofreadingiterator::get(), SwTOXDescription::GetCaptionDisplay(), SwTOXDescription::GetContentOptions(), GetForm(), SwForm::GetFormMax(), SwTOXDescription::GetIndexOptions(), SwTOXDescription::GetLevel(), SwTOXDescription::GetOLEOptions(), SwForm::GetPattern(), SwTOXDescription::GetSequenceName(), SwStyleNameMapper::GetSpecialExtraProgName(), SwTOXDescription::GetStyleNames(), SwForm::GetTemplate(), SwTOXDescription::GetTitle(), comphelper::string::getTokenCount(), GetTOXDescription(), Graphic, i, InitialCaps, SwForm::IsCommaSeparated(), SwTOXDescription::IsCreateFromObjectNames(), SwTOXDescription::IsFromChapter(), SwTOXDescription::IsReadonly(), KeyAsEntry, lcl_SetBOOLProp(), lcl_SetProp(), m_eCurrentTOXType, m_vTypeData, m_xExampleFrame, Mark, Math, MAXLEVEL, NAME, Newline, nPos, Ole, Other, OutlineLevel, ParagraphOutlineLevel, pValues, SameEntry, Sequence, Table, TableInToc, TableLeader, Template, TOKEN_AUTHORITY, TOKEN_CHAPTER_INFO, TOKEN_ENTRY, TOKEN_ENTRY_NO, TOKEN_ENTRY_TEXT, TOKEN_LINK_END, TOKEN_LINK_START, TOKEN_PAGE_NUMS, TOKEN_TAB_STOP, TOKEN_TEXT, TOOLS_WARN_EXCEPTION, TOX_AUTHORITIES, TOX_CONTENT, TOX_INDEX, TOX_PAGE_ENTRY, TOX_PAGE_SELECT, TOX_PAGE_STYLES, TOX_STYLE_DELIMITER, TOX_USER, UNO_NAME_CREATE_FROM_CHAPTER, UNO_NAME_CREATE_FROM_EMBEDDED_OBJECTS, UNO_NAME_CREATE_FROM_GRAPHIC_OBJECTS, UNO_NAME_CREATE_FROM_LABELS, UNO_NAME_CREATE_FROM_MARKS, UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS, UNO_NAME_CREATE_FROM_OUTLINE, UNO_NAME_CREATE_FROM_STAR_CALC, UNO_NAME_CREATE_FROM_STAR_CHART, UNO_NAME_CREATE_FROM_STAR_DRAW, UNO_NAME_CREATE_FROM_STAR_MATH, UNO_NAME_CREATE_FROM_TABLES, UNO_NAME_CREATE_FROM_TEXT_FRAMES, UNO_NAME_HIDE_TAB_LEADER_AND_PAGE_NUMBERS, UNO_NAME_IS_CASE_SENSITIVE, UNO_NAME_IS_COMMA_SEPARATED, UNO_NAME_IS_PROTECTED, UNO_NAME_IS_VISIBLE, UNO_NAME_LABEL_CATEGORY, UNO_NAME_LABEL_DISPLAY_TYPE, UNO_NAME_LEVEL, UNO_NAME_LEVEL_FORMAT, UNO_NAME_LEVEL_PARAGRAPH_STYLES, UNO_NAME_TAB_IN_TOC, UNO_NAME_TITLE, UNO_NAME_TOC_NEWLINE, UNO_NAME_TOC_PARAGRAPH_OUTLINE_LEVEL, UNO_NAME_USE_ALPHABETICAL_SEPARATORS, UNO_NAME_USE_COMBINED_ENTRIES, UNO_NAME_USE_DASH, UNO_NAME_USE_KEY_AS_ENTRY, UNO_NAME_USE_P_P, UNO_NAME_USE_UPPER_CASE, and xModel.
Referenced by SwTOXStylesTabPage::Modify(), SwTOXSelectTabPage::ModifyHdl(), and SwTOXEntryTabPage::OnModify().
|
private |
Definition at line 392 of file cnttab.cxx.
References SwTOXBase::GetCaptionDisplay(), SwTOXBase::GetCreateType(), SwTOXBase::GetLanguage(), SwTOXBase::GetLevel(), SwTOXBase::GetMainEntryCharStyle(), SwTOXBase::GetOLEOptions(), SwTOXBase::GetOptions(), SwTOXBase::GetSequenceName(), SwTOXBase::GetSortAlgorithm(), SwTOXBase::GetStyleNames(), SwTOXBase::GetTitle(), SwEditShell::GetTOIAutoMarkURL(), SwTOXBase::GetType(), i, SwTOXBase::IsFromChapter(), SwTOXBase::IsFromObjectNames(), SwTOXBase::IsLevelFromChapter(), SwTOXBase::IsProtected(), m_rWrtShell, MAXLEVEL, and TOX_INDEX.
Referenced by GetTOXDescription(), and SwMultiTOXTabDialog().
|
private |
|
private |
|
inline |
Definition at line 101 of file swuicnttab.hxx.
References m_eCurrentTOXType.
Referenced by SwTOXEntryTabPage::ActivatePage(), SwTOXSelectTabPage::ApplyTOXDescription(), SwTOXSelectTabPage::FillTOXDescription(), SwTOXStylesTabPage::GetForm(), IMPL_LINK(), SwTOXStylesTabPage::Modify(), SwTOXSelectTabPage::ModifyHdl(), SwTOXEntryTabPage::OnModify(), SwTOXSelectTabPage::Reset(), and SwTOXEntryTabPage::Reset().
SwForm * SwMultiTOXTabDialog::GetForm | ( | CurTOXType | eType | ) |
Definition at line 345 of file cnttab.cxx.
References eType, m_vTypeData, and nIndex.
Referenced by SwTOXEntryTabPage::ActivatePage(), CreateOrUpdateExample(), SwTOXStylesTabPage::GetForm(), SwTOXEntryTabPage::Reset(), and SwTOXEntryTabPage::UpdateDescriptor().
SwTOXDescription & SwMultiTOXTabDialog::GetTOXDescription | ( | CurTOXType | eTOXTypes | ) |
Definition at line 353 of file cnttab.cxx.
References CreateTOXDescFromTOXBase(), eType, SwEditShell::GetDefaultTOXBase(), SwEditShell::GetFieldType(), SwAuthorityFieldType::GetPrefix(), SwAuthorityFieldType::GetSuffix(), SwEditShell::GetTOXType(), SwTOXType::GetTypeName(), SwAuthorityFieldType::IsSequence(), m_rWrtShell, m_sUserDefinedIndex, m_vTypeData, nIndex, SwResId(), TableOfAuthorities, TOX_AUTHORITIES, TOX_INDEX, and TOX_USER.
Referenced by SwTOXSelectTabPage::ApplyTOXDescription(), CreateOrUpdateExample(), SwTOXSelectTabPage::FillTOXDescription(), Ok(), SwTOXEntryTabPage::Reset(), and SwTOXEntryTabPage::UpdateDescriptor().
|
inline |
Definition at line 109 of file swuicnttab.hxx.
References m_rWrtShell.
Referenced by SwTOXEntryTabPage::ActivatePage(), and SwTOXSelectTabPage::Reset().
|
static |
Definition at line 467 of file cnttab.cxx.
References SwWrtShell::GetParaStyle(), SwStyleNameMapper::GetPoolIdFromUIName(), SwEditShell::GetTextCollFromPool(), SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), nId, and TxtColl.
Referenced by IMPL_LINK_NOARG().
|
inline |
Definition at line 107 of file swuicnttab.hxx.
References m_bEditTOX.
Referenced by SwTOXSelectTabPage::Reset().
|
overrideprivatevirtual |
Reimplemented from SfxTabDialogController.
Definition at line 319 of file cnttab.cxx.
References SwTOXDescription::ApplyTo(), CurTOXType::eType, SwEditShell::GetDefaultTOXBase(), CurTOXType::GetFlatIndex(), SfxTabDialogController::GetOutputItemSet(), GetTOXDescription(), m_bEditTOX, m_bGlobalFlag, m_eCurrentTOXType, m_pMgr, m_pParamTOXBase, m_rWrtShell, m_vTypeData, nIndex, CurTOXType::nIndex, SfxTabDialogController::Ok(), SwEditShell::SetDefaultTOXBase(), SwTOXDescription::SetForm(), and SwTOXBase::SetTOXForm().
|
overridevirtual |
Reimplemented from SfxTabDialogController.
Definition at line 295 of file cnttab.cxx.
References SfxItemSet::Get(), SfxTabDialogController::GetInputSetImpl(), SvxSizeItem::GetWidth(), m_nInitialTOXType, m_rWrtShell, SfxTabPage::PageCreated(), SfxItemSet::Put(), and RES_FRM_SIZE().
|
inline |
Definition at line 102 of file swuicnttab.hxx.
References m_eCurrentTOXType.
Referenced by IMPL_LINK().
|
private |
Definition at line 419 of file cnttab.cxx.
References Application::CreateMessageDialog(), EX_LOCALIZE_TOC_STRINGS, EX_SHOW_ONLINE_LAYOUT, SvtPathOptions::GetTemplatePath(), LINK, m_bExampleCreated, m_xDialog, m_xExampleFrame, m_xExampleFrameWin, m_xShowExampleCB, SvtPathOptions::SearchFile(), SwResId(), and SvtPathOptions::Template.
Referenced by SwMultiTOXTabDialog().
|
private |
Definition at line 75 of file swuicnttab.hxx.
Referenced by IsTOXEditMode(), Ok(), and SwMultiTOXTabDialog().
|
private |
Definition at line 76 of file swuicnttab.hxx.
Referenced by ShowPreview().
|
private |
Definition at line 77 of file swuicnttab.hxx.
Referenced by Ok().
|
private |
Definition at line 70 of file swuicnttab.hxx.
Referenced by CreateOrUpdateExample(), GetCurrentTOXType(), Ok(), SetCurrentTOXType(), and SwMultiTOXTabDialog().
|
private |
Definition at line 73 of file swuicnttab.hxx.
Referenced by PageCreated().
|
private |
Definition at line 57 of file swuicnttab.hxx.
Referenced by Ok().
|
private |
Definition at line 68 of file swuicnttab.hxx.
Referenced by Ok().
|
private |
Definition at line 58 of file swuicnttab.hxx.
Referenced by CreateTOXDescFromTOXBase(), GetTOXDescription(), GetWrtShell(), Ok(), PageCreated(), and SwMultiTOXTabDialog().
|
private |
Definition at line 72 of file swuicnttab.hxx.
Referenced by GetTOXDescription().
|
private |
Definition at line 66 of file swuicnttab.hxx.
Referenced by CreateOrUpdateExample(), GetForm(), GetTOXDescription(), Ok(), and SwMultiTOXTabDialog().
|
private |
Definition at line 79 of file swuicnttab.hxx.
Referenced by CreateOrUpdateExample(), and ShowPreview().
|
private |
Definition at line 81 of file swuicnttab.hxx.
Referenced by ShowPreview().
|
private |
Definition at line 80 of file swuicnttab.hxx.
Referenced by ShowPreview(), SwMultiTOXTabDialog(), and ~SwMultiTOXTabDialog().