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

weld OfaQuoteTabPage

Change-Id: I7da18597e85a03d96197f32862686a49f9d8e153
Reviewed-on: https://gerrit.libreoffice.org/64504
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 4c092454
...@@ -320,54 +320,48 @@ class OfaQuoteTabPage : public SfxTabPage ...@@ -320,54 +320,48 @@ class OfaQuoteTabPage : public SfxTabPage
using TabPage::ActivatePage; using TabPage::ActivatePage;
private: private:
/// For anything but writer
VclPtr<SvxCheckListBox> m_pCheckLB;
/// Just for writer
VclPtr<OfaACorrCheckListBox> m_pSwCheckLB;
OUString sNonBrkSpace; OUString sNonBrkSpace;
OUString sOrdinal; OUString sOrdinal;
std::unique_ptr<SvLBoxButtonData> m_xCheckButtonData;
VclPtr<CheckBox> m_pSingleTypoCB;
VclPtr<PushButton> m_pSglStartQuotePB;
VclPtr<FixedText> m_pSglStartExFT;
VclPtr<PushButton> m_pSglEndQuotePB;
VclPtr<FixedText> m_pSglEndExFT;
VclPtr<PushButton> m_pSglStandardPB;
VclPtr<CheckBox> m_pDoubleTypoCB;
VclPtr<PushButton> m_pDblStartQuotePB;
VclPtr<FixedText> m_pDblStartExFT;
VclPtr<PushButton> m_pDblEndQuotePB;
VclPtr<FixedText> m_pDblEndExFT;
VclPtr<PushButton> m_pDblStandardPB;
OUString m_sStandard;
sal_UCS4 cSglStartQuote; sal_UCS4 cSglStartQuote;
sal_UCS4 cSglEndQuote; sal_UCS4 cSglEndQuote;
sal_UCS4 cStartQuote; sal_UCS4 cStartQuote;
sal_UCS4 cEndQuote; sal_UCS4 cEndQuote;
DECL_LINK( QuoteHdl, Button*, void ); std::unique_ptr<weld::CheckButton> m_xSingleTypoCB;
DECL_LINK( StdQuoteHdl, Button*, void ); std::unique_ptr<weld::Button> m_xSglStartQuotePB;
std::unique_ptr<weld::Label> m_xSglStartExFT;
std::unique_ptr<weld::Button> m_xSglEndQuotePB;
std::unique_ptr<weld::Label> m_xSglEndExFT;
std::unique_ptr<weld::Button> m_xSglStandardPB;
std::unique_ptr<weld::CheckButton> m_xDoubleTypoCB;
std::unique_ptr<weld::Button> m_xDblStartQuotePB;
std::unique_ptr<weld::Label> m_xDblStartExFT;
std::unique_ptr<weld::Button> m_xDblEndQuotePB;
std::unique_ptr<weld::Label> m_xDblEndExFT;
std::unique_ptr<weld::Button> m_xDblStandardPB;
std::unique_ptr<weld::Label> m_xStandard;
/// For anything but writer
std::unique_ptr<weld::TreeView> m_xCheckLB;
/// Just for writer
std::unique_ptr<weld::TreeView> m_xSwCheckLB;
DECL_LINK(QuoteHdl, weld::Button&, void);
DECL_LINK(StdQuoteHdl, weld::Button&, void);
OUString ChangeStringExt_Impl( sal_UCS4 ); OUString ChangeStringExt_Impl( sal_UCS4 );
SvTreeListEntry* CreateEntry(OUString& rTxt, sal_uInt16 nCol); static void CreateEntry(weld::TreeView& rLstBox, const OUString& rTxt,
sal_uInt16 nCol, sal_uInt16 nTextCol);
OfaQuoteTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); OfaQuoteTabPage(TabPageParent pParent, const SfxItemSet& rSet);
public: public:
virtual ~OfaQuoteTabPage() override; virtual ~OfaQuoteTabPage() override;
virtual void dispose() override;
static VclPtr<SfxTabPage> Create( TabPageParent pParent, static VclPtr<SfxTabPage> Create(TabPageParent pParent,
const SfxItemSet* rAttrSet); const SfxItemSet* rAttrSet);
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
......
...@@ -1877,6 +1877,26 @@ public: ...@@ -1877,6 +1877,26 @@ public:
return OUString(); return OUString();
} }
virtual void show() override
{
SvHeaderTabListBox* pHeaderBox = dynamic_cast<SvHeaderTabListBox*>(m_xTreeView.get());
if (HeaderBar* pHeaderBar = pHeaderBox ? pHeaderBox->GetHeaderBar() : nullptr)
{
pHeaderBar->Show();
}
SalInstanceContainer::show();
}
virtual void hide() override
{
SvHeaderTabListBox* pHeaderBox = dynamic_cast<SvHeaderTabListBox*>(m_xTreeView.get());
if (HeaderBar* pHeaderBar = pHeaderBox ? pHeaderBox->GetHeaderBar() : nullptr)
{
pHeaderBar->Hide();
}
SalInstanceContainer::hide();
}
virtual void insert(weld::TreeIter* pParent, int pos, const OUString* pStr, const OUString* pId, virtual void insert(weld::TreeIter* pParent, int pos, const OUString* pStr, const OUString* pId,
const OUString* pIconName, VirtualDevice* pImageSurface, const OUString* pExpanderName, const OUString* pIconName, VirtualDevice* pImageSurface, const OUString* pExpanderName,
bool bChildrenOnDemand) override bool bChildrenOnDemand) override
......
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