LibreOffice Module sw (master) 1
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwMultiTOXTabDialog Class Referencefinal

#include <swuicnttab.hxx>

Inheritance diagram for SwMultiTOXTabDialog:
[legend]
Collaboration diagram for SwMultiTOXTabDialog:
[legend]

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 OString &rId, SfxTabPage &rPage) override
 
SwFormGetForm (CurTOXType eType)
 
const CurTOXTypeGetCurrentTOXType () const
 
void SetCurrentTOXType (const CurTOXType &eSet)
 
bool IsTOXEditMode () const
 
SwWrtShellGetWrtShell ()
 
SwTOXDescriptionGetTOXDescription (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 OString &rID, const SfxItemSet *=nullptr, bool bEditFmt=false)
 
virtual ~SfxTabDialogController () override
 
void AddTabPage (const OString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
 
void AddTabPage (const OString &rName, sal_uInt16 nPageCreateId)
 
void AddTabPage (const OString &rName, const OUString &rLabel, CreateTabPage pCreateFunc)
 
void AddTabPage (const OString &rName, const OUString &rLabel, sal_uInt16 nPageCreateId)
 
void RemoveTabPage (const OString &rName)
 
void SetCurPageId (const OString &rName)
 
void ShowPage (const OString &rName)
 
OString GetCurPageId () const
 
SfxTabPageGetCurTabPage () const
 
const WhichRangesContainerGetInputRanges (const SfxItemPool &)
 
void SetInputSet (const SfxItemSet *pInSet)
 
const SfxItemSetGetOutputItemSet () const
 
virtual weld::ButtonGetOKButton () const override
 
weld::ButtonGetCancelButton () const
 
weld::ButtonGetUserButton () const
 
weld::ButtonGetStandardButton () const
 
weld::ButtonGetApplyButton () const
 
weld::ButtonGetResetButton () const
 
void RemoveResetButton ()
 
void RemoveStandardButton ()
 
virtual short run () override
 
virtual const SfxItemSetGetExampleSet () const override
 
void SetApplyHandler (const Link< weld::Button &, void > &_rHdl)
 
bool Apply ()
 
void Applied ()
 
std::vector< OString > getAllPageUIXMLDescriptions () const
 
bool selectPageByUIXMLDescription (const OString &rUIXMLDescription)
 
BitmapEx createScreenshot () const
 
OString GetScreenshotId () const
 
- Public Member Functions inherited from SfxOkDialogController
 SfxOkDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
virtual weld::ButtonGetOKButton () const=0
 
virtual const SfxItemSetGetExampleSet () const=0
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 

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< SwTOXDescriptionCreateTOXDescFromTOXBase (const SwTOXBase *pCurTOX)
 
void ShowPreview ()
 
 DECL_LINK (CreateExample_Hdl, SwOneExampleFrame &, void)
 
 DECL_LINK (ShowPreviewHdl, weld::Toggleable &, void)
 

Private Attributes

std::unique_ptr< SwTOXMgrm_pMgr
 
SwWrtShellm_rWrtShell
 
std::vector< TypeDatam_vTypeData
 
SwTOXBasem_pParamTOXBase
 
CurTOXType m_eCurrentTOXType
 
OUString m_sUserDefinedIndex
 
sal_uInt16 m_nInitialTOXType
 
bool m_bEditTOX
 
bool m_bExampleCreated
 
bool m_bGlobalFlag
 
std::unique_ptr< SwOneExampleFramem_xExampleFrame
 
std::unique_ptr< weld::CheckButtonm_xShowExampleCB
 
std::unique_ptr< weld::CustomWeldm_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 SfxItemSetCreateInputItemSet (const OString &rName)
 
virtual void PageCreated (const OString &rName, SfxTabPage &rPage)
 
SfxItemSetGetInputSetImpl ()
 
SfxTabPageGetTabPage (std::string_view rPageId) const
 
bool PrepareLeaveCurrentPage ()
 
void SavePosAndId ()
 
- Protected Attributes inherited from SfxTabDialogController
std::unique_ptr< weld::Notebookm_xTabCtrl
 
std::unique_ptr< SfxItemSetm_xExampleSet
 

Detailed Description

Definition at line 55 of file swuicnttab.hxx.

Constructor & Destructor Documentation

◆ SwMultiTOXTabDialog()

SwMultiTOXTabDialog::SwMultiTOXTabDialog ( weld::Widget pParent,
const SfxItemSet rSet,
SwWrtShell rShell,
SwTOXBase pCurTOX,
sal_uInt16  nToxType,
bool  bGlobal 
)

◆ ~SwMultiTOXTabDialog()

SwMultiTOXTabDialog::~SwMultiTOXTabDialog ( )
overridevirtual

Definition at line 283 of file cnttab.cxx.

References m_xShowExampleCB, and SW_MOD.

Member Function Documentation

◆ CreateOrUpdateExample()

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, xContent, and xModel.

Referenced by SwTOXStylesTabPage::Modify(), SwTOXSelectTabPage::ModifyHdl(), and SwTOXEntryTabPage::OnModify().

◆ CreateTOXDescFromTOXBase()

std::unique_ptr< SwTOXDescription > SwMultiTOXTabDialog::CreateTOXDescFromTOXBase ( const SwTOXBase pCurTOX)
private

◆ DECL_LINK() [1/2]

SwMultiTOXTabDialog::DECL_LINK ( CreateExample_Hdl  ,
SwOneExampleFrame ,
void   
)
private

◆ DECL_LINK() [2/2]

SwMultiTOXTabDialog::DECL_LINK ( ShowPreviewHdl  ,
weld::Toggleable ,
void   
)
private

◆ GetCurrentTOXType()

const CurTOXType & SwMultiTOXTabDialog::GetCurrentTOXType ( ) const
inline

◆ GetForm()

SwForm * SwMultiTOXTabDialog::GetForm ( CurTOXType  eType)

◆ GetTOXDescription()

SwTOXDescription & SwMultiTOXTabDialog::GetTOXDescription ( CurTOXType  eTOXTypes)

◆ GetWrtShell()

SwWrtShell & SwMultiTOXTabDialog::GetWrtShell ( )
inline

Definition at line 109 of file swuicnttab.hxx.

References m_rWrtShell.

Referenced by SwTOXEntryTabPage::ActivatePage(), and SwTOXSelectTabPage::Reset().

◆ IsNoNum()

bool SwMultiTOXTabDialog::IsNoNum ( SwWrtShell rSh,
const OUString &  rName 
)
static

◆ IsTOXEditMode()

bool SwMultiTOXTabDialog::IsTOXEditMode ( ) const
inline

Definition at line 107 of file swuicnttab.hxx.

References m_bEditTOX.

Referenced by SwTOXSelectTabPage::Reset().

◆ Ok()

short SwMultiTOXTabDialog::Ok ( )
overrideprivatevirtual

◆ PageCreated()

void SwMultiTOXTabDialog::PageCreated ( const OString &  rId,
SfxTabPage rPage 
)
overridevirtual

◆ SetCurrentTOXType()

void SwMultiTOXTabDialog::SetCurrentTOXType ( const CurTOXType eSet)
inline

Definition at line 102 of file swuicnttab.hxx.

References m_eCurrentTOXType.

Referenced by IMPL_LINK().

◆ ShowPreview()

void SwMultiTOXTabDialog::ShowPreview ( )
private

Member Data Documentation

◆ m_bEditTOX

bool SwMultiTOXTabDialog::m_bEditTOX
private

Definition at line 75 of file swuicnttab.hxx.

Referenced by IsTOXEditMode(), Ok(), and SwMultiTOXTabDialog().

◆ m_bExampleCreated

bool SwMultiTOXTabDialog::m_bExampleCreated
private

Definition at line 76 of file swuicnttab.hxx.

Referenced by ShowPreview().

◆ m_bGlobalFlag

bool SwMultiTOXTabDialog::m_bGlobalFlag
private

Definition at line 77 of file swuicnttab.hxx.

Referenced by Ok().

◆ m_eCurrentTOXType

CurTOXType SwMultiTOXTabDialog::m_eCurrentTOXType
private

◆ m_nInitialTOXType

sal_uInt16 SwMultiTOXTabDialog::m_nInitialTOXType
private

Definition at line 73 of file swuicnttab.hxx.

Referenced by PageCreated().

◆ m_pMgr

std::unique_ptr<SwTOXMgr> SwMultiTOXTabDialog::m_pMgr
private

Definition at line 57 of file swuicnttab.hxx.

Referenced by Ok().

◆ m_pParamTOXBase

SwTOXBase* SwMultiTOXTabDialog::m_pParamTOXBase
private

Definition at line 68 of file swuicnttab.hxx.

Referenced by Ok().

◆ m_rWrtShell

SwWrtShell& SwMultiTOXTabDialog::m_rWrtShell
private

◆ m_sUserDefinedIndex

OUString SwMultiTOXTabDialog::m_sUserDefinedIndex
private

Definition at line 72 of file swuicnttab.hxx.

Referenced by GetTOXDescription().

◆ m_vTypeData

std::vector<TypeData> SwMultiTOXTabDialog::m_vTypeData
private

◆ m_xExampleFrame

std::unique_ptr<SwOneExampleFrame> SwMultiTOXTabDialog::m_xExampleFrame
private

Definition at line 79 of file swuicnttab.hxx.

Referenced by CreateOrUpdateExample(), and ShowPreview().

◆ m_xExampleFrameWin

std::unique_ptr<weld::CustomWeld> SwMultiTOXTabDialog::m_xExampleFrameWin
private

Definition at line 81 of file swuicnttab.hxx.

Referenced by ShowPreview().

◆ m_xShowExampleCB

std::unique_ptr<weld::CheckButton> SwMultiTOXTabDialog::m_xShowExampleCB
private

Definition at line 80 of file swuicnttab.hxx.

Referenced by ShowPreview(), SwMultiTOXTabDialog(), and ~SwMultiTOXTabDialog().


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