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

#include <swuicnttab.hxx>

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

Classes

struct  TypeData
 

Public Member Functions

 SwMultiTOXTabDialog (weld::Window *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::Window *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 sal_uInt16 * GetInputRanges (const SfxItemPool &)
 
void SetInputSet (const SfxItemSet *pInSet)
 
const SfxItemSetGetOutputItemSet () const
 
virtual weld::ButtonGetOKButton () const override
 
weld::ButtonGetCancelButton () const
 
weld::ButtonGetUserButton () 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 ()
 
- Public Member Functions inherited from SfxOkDialogController
 SfxOkDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- 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 ()
 

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)
 
 DECL_LINK (CreateExample_Hdl, SwOneExampleFrame &, void)
 
 DECL_LINK (ShowPreviewHdl, weld::ToggleButton &, void)
 

Private Attributes

std::unique_ptr< SwTOXMgrm_pMgr
 
SwWrtShellm_rWrtShell
 
std::vector< TypeDatam_vTypeData
 
SwTOXBasem_pParamTOXBase
 
CurTOXType m_eCurrentTOXType
 
OUString const m_sUserDefinedIndex
 
sal_uInt16 const m_nInitialTOXType
 
bool m_bEditTOX
 
bool m_bExampleCreated
 
bool const 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_LINK (ResetHdl, weld::Button &, void)
 
 DECL_LINK (BaseFmtHdl, weld::Button &, void)
 
 DECL_LINK (UserHdl, weld::Button &, void)
 
 DECL_LINK (CancelHdl, weld::Button &, void)
 
virtual void RefreshInputSet ()
 
virtual SfxItemSetCreateInputItemSet (const OString &rName)
 
SfxItemSetGetInputSetImpl ()
 
SfxTabPageGetTabPage (const OString &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 54 of file swuicnttab.hxx.

Constructor & Destructor Documentation

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

Definition at line 296 of file cnttab.cxx.

References m_xShowExampleCB, and SW_MOD.

Member Function Documentation

void SwMultiTOXTabDialog::CreateOrUpdateExample ( TOXTypes  nTOXIndex,
sal_uInt16  nPage = 0,
sal_uInt16  nCurLevel = USHRT_MAX 
)

Definition at line 138 of file cntex.cxx.

References AlphaDelimiter, Calc, CAPTION_COMPLETE, CAPTION_NUMBER, CAPTION_TEXT, CaseSensitive, Chart, convertTwipToMm100(), Dash, DrawImpress, Exception, FF, Frame, cppu::UnoType< class >::get(), SwTOXDescription::GetCaptionDisplay(), SwTOXDescription::GetContentOptions(), SwForm::GetFormMax(), SwTOXDescription::GetIndexOptions(), SwTOXDescription::GetLevel(), SwTOXDescription::GetOLEOptions(), SwForm::GetPattern(), SwTOXDescription::GetSequenceName(), SwStyleNameMapper::GetSpecialExtraProgName(), SwTOXDescription::GetStyleNames(), SwForm::GetTemplate(), SwTOXDescription::GetTitle(), comphelper::string::getTokenCount(), Graphic, i, InitialCaps, SwForm::IsCommaSeparated(), SwTOXDescription::IsCreateFromObjectNames(), SwTOXDescription::IsFromChapter(), SwTOXDescription::IsReadonly(), KeyAsEntry, lcl_SetBOOLProp(), lcl_SetProp(), makeAny(), Mark, Math, MAXLEVEL, NAME, Newline, nPos, Ole, Other, OutlineLevel, ParagraphOutlineLevel, 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, 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().

std::unique_ptr< SwTOXDescription > SwMultiTOXTabDialog::CreateTOXDescFromTOXBase ( const SwTOXBase pCurTOX)
private
SwMultiTOXTabDialog::DECL_LINK ( CreateExample_Hdl  ,
SwOneExampleFrame ,
void   
)
private
SwMultiTOXTabDialog::DECL_LINK ( ShowPreviewHdl  ,
weld::ToggleButton ,
void   
)
private
const CurTOXType& SwMultiTOXTabDialog::GetCurrentTOXType ( ) const
inline
SwForm * SwMultiTOXTabDialog::GetForm ( CurTOXType  eType)
SwTOXDescription & SwMultiTOXTabDialog::GetTOXDescription ( CurTOXType  eTOXTypes)
SwWrtShell& SwMultiTOXTabDialog::GetWrtShell ( )
inline

Definition at line 107 of file swuicnttab.hxx.

References m_rWrtShell.

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

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

Definition at line 105 of file swuicnttab.hxx.

References m_bEditTOX.

Referenced by SwTOXSelectTabPage::Reset().

short SwMultiTOXTabDialog::Ok ( )
overrideprivatevirtual
void SwMultiTOXTabDialog::PageCreated ( const OString &  rId,
SfxTabPage rPage 
)
overridevirtual
void SwMultiTOXTabDialog::SetCurrentTOXType ( const CurTOXType eSet)
inline

Definition at line 100 of file swuicnttab.hxx.

Referenced by IMPL_LINK().

Member Data Documentation

bool SwMultiTOXTabDialog::m_bEditTOX
private

Definition at line 74 of file swuicnttab.hxx.

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

bool SwMultiTOXTabDialog::m_bExampleCreated
private

Definition at line 75 of file swuicnttab.hxx.

bool const SwMultiTOXTabDialog::m_bGlobalFlag
private

Definition at line 76 of file swuicnttab.hxx.

Referenced by Ok().

CurTOXType SwMultiTOXTabDialog::m_eCurrentTOXType
private

Definition at line 69 of file swuicnttab.hxx.

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

sal_uInt16 const SwMultiTOXTabDialog::m_nInitialTOXType
private

Definition at line 72 of file swuicnttab.hxx.

Referenced by PageCreated().

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

Definition at line 56 of file swuicnttab.hxx.

Referenced by Ok().

SwTOXBase* SwMultiTOXTabDialog::m_pParamTOXBase
private

Definition at line 67 of file swuicnttab.hxx.

Referenced by Ok().

SwWrtShell& SwMultiTOXTabDialog::m_rWrtShell
private
OUString const SwMultiTOXTabDialog::m_sUserDefinedIndex
private

Definition at line 71 of file swuicnttab.hxx.

Referenced by GetTOXDescription().

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

Definition at line 65 of file swuicnttab.hxx.

Referenced by GetForm(), GetTOXDescription(), Ok(), and SwMultiTOXTabDialog().

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

Definition at line 78 of file swuicnttab.hxx.

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

Definition at line 80 of file swuicnttab.hxx.

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

Definition at line 79 of file swuicnttab.hxx.

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


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