23#include <officecfg/Office/Common.hxx>
28 :
SfxTabPage(pPage, pController,
"cui/ui/opthtmlpage.ui",
"OptHtmlPage", &
rSet)
29 , m_xSize1NF(m_xBuilder->weld_spin_button(
"size1"))
30 , m_xSize2NF(m_xBuilder->weld_spin_button(
"size2"))
31 , m_xSize3NF(m_xBuilder->weld_spin_button(
"size3"))
32 , m_xSize4NF(m_xBuilder->weld_spin_button(
"size4"))
33 , m_xSize5NF(m_xBuilder->weld_spin_button(
"size5"))
34 , m_xSize6NF(m_xBuilder->weld_spin_button(
"size6"))
35 , m_xSize7NF(m_xBuilder->weld_spin_button(
"size7"))
36 , m_xNumbersEnglishUSCB(m_xBuilder->weld_check_button(
"numbersenglishus"))
37 , m_xUnknownTagCB(m_xBuilder->weld_check_button(
"unknowntag"))
38 , m_xIgnoreFontNamesCB(m_xBuilder->weld_check_button(
"ignorefontnames"))
39 , m_xStarBasicCB(m_xBuilder->weld_check_button(
"starbasic"))
40 , m_xStarBasicWarningCB(m_xBuilder->weld_check_button(
"starbasicwarning"))
41 , m_xPrintExtensionCB(m_xBuilder->weld_check_button(
"printextension"))
42 , m_xSaveGrfLocalCB(m_xBuilder->weld_check_button(
"savegrflocal"))
46 OUString aPlaceholder(
"%ENGLISHUSLOCALE");
48 if ((
nPos = aText.indexOf( aPlaceholder)) != -1)
53 aText = aText.replaceAt(
nPos, aPlaceholder.getLength(), rStr);
68 return std::make_unique<OfaHtmlTabPage>(pPage, pController, *rAttrSet);
75 officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_1::set(
76 static_cast<sal_uInt16
>(
m_xSize1NF->get_value()), xChanges);
78 officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_2::set(
79 static_cast<sal_uInt16
>(
m_xSize2NF->get_value()), xChanges);
81 officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_3::set(
82 static_cast<sal_uInt16
>(
m_xSize3NF->get_value()), xChanges);
84 officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_4::set(
85 static_cast<sal_uInt16
>(
m_xSize4NF->get_value()), xChanges);
87 officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_5::set(
88 static_cast<sal_uInt16
>(
m_xSize5NF->get_value()), xChanges);
90 officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_6::set(
91 static_cast<sal_uInt16
>(
m_xSize6NF->get_value()), xChanges);
93 officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_7::set(
94 static_cast<sal_uInt16
>(
m_xSize7NF->get_value()), xChanges);
97 officecfg::Office::Common::Filter::HTML::Import::NumbersEnglishUS::set(
101 officecfg::Office::Common::Filter::HTML::Import::UnknownTag::set(
105 officecfg::Office::Common::Filter::HTML::Import::FontSetting::set(
109 officecfg::Office::Common::Filter::HTML::Export::Basic::set(
113 officecfg::Office::Common::Filter::HTML::Export::Warning::set(
117 officecfg::Office::Common::Filter::HTML::Export::LocalGraphic::set(
121 officecfg::Office::Common::Filter::HTML::Export::PrintLayout::set(
130 m_xSize1NF->set_value(officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_1::get());
131 m_xSize2NF->set_value(officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_2::get());
132 m_xSize3NF->set_value(officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_3::get());
133 m_xSize4NF->set_value(officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_4::get());
134 m_xSize5NF->set_value(officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_5::get());
135 m_xSize6NF->set_value(officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_6::get());
136 m_xSize7NF->set_value(officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_7::get());
137 m_xNumbersEnglishUSCB->set_active(officecfg::Office::Common::Filter::HTML::Import::NumbersEnglishUS::get());
138 m_xUnknownTagCB->set_active(officecfg::Office::Common::Filter::HTML::Import::UnknownTag::get());
139 m_xIgnoreFontNamesCB->set_active(officecfg::Office::Common::Filter::HTML::Import::FontSetting::get());
141 m_xStarBasicCB->set_active(officecfg::Office::Common::Filter::HTML::Export::Basic::get());
144 m_xSaveGrfLocalCB->set_active(officecfg::Office::Common::Filter::HTML::Export::LocalGraphic::get());
165 m_xStarBasicWarningCB->set_sensitive(!rBox.get_active());
virtual ~OfaHtmlTabPage() override
std::unique_ptr< weld::CheckButton > m_xSaveGrfLocalCB
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
virtual void Reset(const SfxItemSet *rSet) override
std::unique_ptr< weld::CheckButton > m_xIgnoreFontNamesCB
std::unique_ptr< weld::SpinButton > m_xSize7NF
std::unique_ptr< weld::SpinButton > m_xSize5NF
std::unique_ptr< weld::CheckButton > m_xPrintExtensionCB
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::SpinButton > m_xSize4NF
OfaHtmlTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::CheckButton > m_xUnknownTagCB
std::unique_ptr< weld::CheckButton > m_xNumbersEnglishUSCB
std::unique_ptr< weld::SpinButton > m_xSize6NF
std::unique_ptr< weld::SpinButton > m_xSize3NF
std::unique_ptr< weld::CheckButton > m_xStarBasicCB
std::unique_ptr< weld::CheckButton > m_xStarBasicWarningCB
std::unique_ptr< weld::SpinButton > m_xSize2NF
std::unique_ptr< weld::SpinButton > m_xSize1NF
static OUString GetLanguageString(const LanguageType eType)
static std::shared_ptr< ConfigurationChanges > create()
#define LANGUAGE_ENGLISH_US
#define LINK(Instance, Class, Member)
bool IsPrintLayoutExtension()
IMPL_LINK(OfaHtmlTabPage, CheckBoxHdl_Impl, weld::Toggleable &, rBox, void)