Kaydet (Commit) bbb130f8 authored tarafından Caolán McNamara's avatar Caolán McNamara

weld SwTOXSelectTabPage

Change-Id: I2acd547263ab254edd609da4e928738f8b0b9d3b
Reviewed-on: https://gerrit.libreoffice.org/65091
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a32059cf
......@@ -651,6 +651,7 @@ public:
{
insert_item(-1, rId, rStr, nullptr, &rImage, false);
}
virtual void set_item_sensitive(const OString& rIdent, bool bSensitive) = 0;
virtual void set_item_active(const OString& rIdent, bool bActive) = 0;
virtual void set_item_label(const OString& rIdent, const OUString& rLabel) = 0;
virtual void set_item_help_id(const OString& rIdent, const OString& rHelpId) = 0;
......
This diff is collapsed.
......@@ -131,96 +131,99 @@ public:
class SwTOXSelectTabPage : public SfxTabPage
{
VclPtr<Edit> m_pTitleED;
VclPtr<FixedText> m_pTypeFT;
VclPtr<ListBox> m_pTypeLB;
VclPtr<CheckBox> m_pReadOnlyCB;
std::unique_ptr<IndexEntryResource> pIndexRes;
VclPtr<VclContainer> m_pAreaFrame;
VclPtr<ListBox> m_pAreaLB;
VclPtr<FixedText> m_pLevelFT; //content, user
VclPtr<NumericField> m_pLevelNF; //content, user
OUString aStyleArr[MAXLEVEL];
OUString sAutoMarkURL;
OUString const sAutoMarkType;
OUString sAddStyleUser;
OUString sAddStyleContent;
std::unique_ptr<const IndexEntrySupplierWrapper> pIndexEntryWrapper;
bool m_bWaitingInitialSettings;
std::unique_ptr<weld::Entry> m_xTitleED;
std::unique_ptr<weld::Label> m_xTypeFT;
std::unique_ptr<weld::ComboBox> m_xTypeLB;
std::unique_ptr<weld::CheckButton> m_xReadOnlyCB;
std::unique_ptr<weld::Widget> m_xAreaFrame;
std::unique_ptr<weld::ComboBox> m_xAreaLB;
std::unique_ptr<weld::Widget> m_xLevelFT; //content, user
std::unique_ptr<weld::SpinButton> m_xLevelNF; //content, user
//content
VclPtr<VclContainer> m_pCreateFrame; // content, user, illustration
VclPtr<CheckBox> m_pFromHeadingsCB;
VclPtr<CheckBox> m_pAddStylesCB;
VclPtr<PushButton> m_pAddStylesPB;
std::unique_ptr<weld::Widget> m_xCreateFrame; // content, user, illustration
std::unique_ptr<weld::CheckButton> m_xFromHeadingsCB;
std::unique_ptr<weld::CheckButton> m_xStylesCB;
std::unique_ptr<weld::CheckButton> m_xAddStylesCB;
std::unique_ptr<weld::Button> m_xAddStylesPB;
//user
VclPtr<CheckBox> m_pFromTablesCB;
VclPtr<CheckBox> m_pFromFramesCB;
VclPtr<CheckBox> m_pFromGraphicsCB;
VclPtr<CheckBox> m_pFromOLECB;
VclPtr<CheckBox> m_pLevelFromChapterCB;
std::unique_ptr<weld::CheckButton> m_xFromTablesCB;
std::unique_ptr<weld::CheckButton> m_xFromFramesCB;
std::unique_ptr<weld::CheckButton> m_xFromGraphicsCB;
std::unique_ptr<weld::CheckButton> m_xFromOLECB;
std::unique_ptr<weld::CheckButton> m_xLevelFromChapterCB;
//illustration + table
VclPtr<RadioButton> m_pFromCaptionsRB;
VclPtr<RadioButton> m_pFromObjectNamesRB;
std::unique_ptr<weld::RadioButton> m_xFromCaptionsRB;
std::unique_ptr<weld::RadioButton> m_xFromObjectNamesRB;
//illustration and tables
VclPtr<FixedText> m_pCaptionSequenceFT;
VclPtr<ListBox> m_pCaptionSequenceLB;
VclPtr<FixedText> m_pDisplayTypeFT;
VclPtr<ListBox> m_pDisplayTypeLB;
std::unique_ptr<weld::Label> m_xCaptionSequenceFT;
std::unique_ptr<weld::ComboBox> m_xCaptionSequenceLB;
std::unique_ptr<weld::Label> m_xDisplayTypeFT;
std::unique_ptr<weld::ComboBox> m_xDisplayTypeLB;
//all but illustration and table
VclPtr<CheckBox> m_pTOXMarksCB;
std::unique_ptr<weld::CheckButton> m_xTOXMarksCB;
//index only
VclPtr<VclContainer> m_pIdxOptionsFrame;
VclPtr<CheckBox> m_pCollectSameCB;
VclPtr<CheckBox> m_pUseFFCB;
VclPtr<CheckBox> m_pUseDashCB;
VclPtr<CheckBox> m_pCaseSensitiveCB;
VclPtr<CheckBox> m_pInitialCapsCB;
VclPtr<CheckBox> m_pKeyAsEntryCB;
VclPtr<CheckBox> m_pFromFileCB;
VclPtr<MenuButton> m_pAutoMarkPB;
std::unique_ptr<weld::Widget> m_xIdxOptionsFrame;
std::unique_ptr<weld::CheckButton> m_xCollectSameCB;
std::unique_ptr<weld::CheckButton> m_xUseFFCB;
std::unique_ptr<weld::CheckButton> m_xUseDashCB;
std::unique_ptr<weld::CheckButton> m_xCaseSensitiveCB;
std::unique_ptr<weld::CheckButton> m_xInitialCapsCB;
std::unique_ptr<weld::CheckButton> m_xKeyAsEntryCB;
std::unique_ptr<weld::CheckButton> m_xFromFileCB;
std::unique_ptr<weld::MenuButton> m_xAutoMarkPB;
// object only
VclPtr<SvxCheckListBox> m_pFromObjCLB;
VclPtr<VclContainer> m_pFromObjFrame;
std::unique_ptr<weld::TreeView> m_xFromObjCLB;
std::unique_ptr<weld::Widget> m_xFromObjFrame;
VclPtr<CheckBox> m_pSequenceCB;
VclPtr<ListBox> m_pBracketLB;
VclPtr<VclContainer> m_pAuthorityFrame;
std::unique_ptr<weld::CheckButton> m_xSequenceCB;
std::unique_ptr<weld::ComboBox> m_xBracketLB;
std::unique_ptr<weld::Widget> m_xAuthorityFrame;
//all
VclPtr<VclContainer> m_pSortFrame;
VclPtr<SvxLanguageBox> m_pLanguageLB;
VclPtr<ListBox> m_pSortAlgorithmLB;
std::unique_ptr<IndexEntryResource> pIndexRes;
OUString aStyleArr[MAXLEVEL];
OUString sAutoMarkURL;
OUString const sAutoMarkType;
OUString sAddStyleUser;
OUString sAddStyleContent;
std::unique_ptr<const IndexEntrySupplierWrapper> pIndexEntryWrapper;
bool m_bWaitingInitialSettings;
DECL_LINK(TOXTypeHdl, ListBox&, void );
DECL_LINK(AddStylesHdl, Button*, void );
DECL_LINK(MenuEnableHdl, Menu*, bool);
DECL_LINK(MenuExecuteHdl, Menu*, bool);
DECL_LINK(LanguageListBoxHdl, ListBox&, void);
void LanguageHdl(ListBox const *);
DECL_LINK(CheckBoxHdl, Button*, void );
DECL_LINK(RadioButtonHdl, Button*, void);
DECL_LINK(ModifyHdl, Edit&, void);
DECL_LINK(ModifyListBoxHdl, ListBox&, void);
void ApplyTOXDescription();
void FillTOXDescription();
std::unique_ptr<weld::Widget> m_xSortFrame;
std::unique_ptr<LanguageBox> m_xLanguageLB;
std::unique_ptr<weld::ComboBox> m_xSortAlgorithmLB;
DECL_LINK(TOXTypeHdl, weld::ComboBox&, void );
DECL_LINK(AddStylesHdl, weld::Button&, void );
DECL_LINK(MenuEnableHdl, weld::ToggleButton&, void);
DECL_LINK(MenuExecuteHdl, const OString&, void);
DECL_LINK(LanguageListBoxHdl, weld::ComboBox&, void);
void LanguageHdl(const weld::ComboBox*);
DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void );
DECL_LINK(RadioButtonHdl, weld::ToggleButton&, void);
DECL_LINK(ModifyEntryHdl, weld::Entry&, void);
DECL_LINK(ModifySpinHdl, weld::SpinButton&, void);
DECL_LINK(ModifyListBoxHdl, weld::ComboBox&, void);
void ModifyHdl();
void ApplyTOXDescription();
void FillTOXDescription();
using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage;
public:
SwTOXSelectTabPage(vcl::Window* pParent, const SfxItemSet& rAttrSet);
SwTOXSelectTabPage(TabPageParent pParent, const SfxItemSet& rAttrSet);
virtual ~SwTOXSelectTabPage() override;
virtual void dispose() override;
......
......@@ -1330,6 +1330,12 @@ public:
insert_to_menu(m_xMenuButton->GetPopupMenu(), pos, rId, rStr, pIconName, pImageSurface, bCheck);
}
virtual void set_item_sensitive(const OString& rIdent, bool bSensitive) override
{
PopupMenu* pMenu = m_xMenuButton->GetPopupMenu();
pMenu->EnableItem(rIdent, bSensitive);
}
virtual void set_item_active(const OString& rIdent, bool bActive) override
{
PopupMenu* pMenu = m_xMenuButton->GetPopupMenu();
......
......@@ -4150,6 +4150,11 @@ public:
MenuHelper::set_item_active(rIdent, bActive);
}
virtual void set_item_sensitive(const OString& rIdent, bool bSensitive) override
{
MenuHelper::set_item_sensitive(rIdent, bSensitive);
}
virtual void set_item_label(const OString& rIdent, const OUString& rLabel) override
{
MenuHelper::set_item_label(rIdent, rLabel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment