22#include <officecfg/Office/Common.hxx>
40 :
SfxTabPage(pPage, pController,
"cui/ui/optfltrpage.ui",
"OptFltrPage", &
rSet)
41 , m_xWBasicCodeCB(m_xBuilder->weld_check_button(
"wo_basic"))
42 , m_xWBasicWbctblCB(m_xBuilder->weld_check_button(
"wo_exec"))
43 , m_xWBasicStgCB(m_xBuilder->weld_check_button(
"wo_saveorig"))
44 , m_xEBasicCodeCB(m_xBuilder->weld_check_button(
"ex_basic"))
45 , m_xEBasicExectblCB(m_xBuilder->weld_check_button(
"ex_exec"))
46 , m_xEBasicStgCB(m_xBuilder->weld_check_button(
"ex_saveorig"))
47 , m_xPBasicCodeCB(m_xBuilder->weld_check_button(
"pp_basic"))
48 , m_xPBasicStgCB(m_xBuilder->weld_check_button(
"pp_saveorig"))
60 m_xWBasicWbctblCB->set_sensitive(m_xWBasicCodeCB->get_active());
65 m_xEBasicExectblCB->set_sensitive(m_xEBasicCodeCB->get_active());
71 return std::make_unique<OfaMSFilterTabPage>(pPage, pController, *rAttrSet);
127 :
SfxTabPage(pPage, pController,
"cui/ui/optfltrembedpage.ui",
"OptFilterPage", &
rSet)
128 , sChgToFromMath(
CuiResId(RID_CUISTR_CHG_MATH))
129 , sChgToFromWriter(
CuiResId(RID_CUISTR_CHG_WRITER))
130 , sChgToFromCalc(
CuiResId(RID_CUISTR_CHG_CALC))
131 , sChgToFromImpress(
CuiResId(RID_CUISTR_CHG_IMPRESS))
132 , sChgToFromSmartArt(
CuiResId(RID_CUISTR_CHG_SMARTART))
133 , sChgToFromVisio(
CuiResId(RID_CUISTR_CHG_VISIO))
134 , sChgToFromPDF(
CuiResId(RID_CUISTR_CHG_PDF))
135 , m_xCheckLB(m_xBuilder->weld_tree_view(
"checklbcontainer"))
136 , m_xHighlightingRB(m_xBuilder->weld_radio_button(
"highlighting"))
137 , m_xShadingRB(m_xBuilder->weld_radio_button(
"shading"))
138 , m_xMSOLockFileCB(m_xBuilder->weld_check_button(
"mso_lockfile"))
140 std::vector<int> aWidths
155 return std::make_unique<OfaMSFilterTabPage2>( pPage, pController, *rAttrSet );
162 static struct ChkCBoxEntries{
166 }
const aChkArr[] = {
189 bool bFirstCol =
true;
190 for(
const ChkCBoxEntries & rEntry : aChkArr )
195 sal_uInt16 nCol = bFirstCol ? 0 : 1;
196 bFirstCol = !bFirstCol;
200 bool bCheck =
m_xCheckLB->get_toggle(nEntry, nCol);
201 if( bCheck != (rOpt.*rEntry.FnIs)() )
202 (rOpt.*rEntry.FnSet)( bCheck );
206 bFirstCol = !bFirstCol;
210 bool bPDFCheck =
m_xCheckLB->get_toggle(nPDFEntry, 0);
211 if (bPDFCheck != officecfg::Office::Common::Filter::Adobe::Import::PDFToDraw::get())
213 std::shared_ptr<comphelper::ConfigurationChanges> pBatch(
215 officecfg::Office::Common::Filter::Adobe::Import::PDFToDraw::set(bPDFCheck, pBatch);
260 static struct ChkCBoxEntries{
263 }
const aChkArr[] = {
277 bool bFirstCol =
true;
278 for(
const ChkCBoxEntries & rArr : aChkArr )
283 sal_uInt16 nCol = bFirstCol ? 0 : 1;
284 bFirstCol = !bFirstCol;
291 bCheck = (rOpt.*rArr.FnIs)();
295 bCheck = officecfg::Office::Common::Filter::Adobe::Import::PDFToDraw::get();
302 bFirstCol = !bFirstCol;
316 m_xMSOLockFileCB->set_sensitive(!officecfg::Office::Common::Filter::Microsoft::Import::CreateMSOLockFiles::isReadOnly());
333 m_xCheckLB->set_id(
nPos, OUString::number(
static_cast<sal_Int32
>(_nType)));
338 for (
int i = 0, nEntryCount =
m_xCheckLB->n_children();
i < nEntryCount; ++
i)
OUString sChgToFromImpress
virtual bool FillItemSet(SfxItemSet *rSet) override
virtual void Reset(const SfxItemSet *rSet) override
OUString sChgToFromWriter
std::unique_ptr< weld::RadioButton > m_xShadingRB
OUString sChgToFromSmartArt
std::unique_ptr< weld::CheckButton > m_xMSOLockFileCB
OfaMSFilterTabPage2(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
int GetEntry4Type(MSFltrPg2_CheckBoxEntries _nType) const
std::unique_ptr< weld::TreeView > m_xCheckLB
void InsertEntry(const OUString &_rTxt, MSFltrPg2_CheckBoxEntries _nType)
std::unique_ptr< weld::RadioButton > m_xHighlightingRB
virtual ~OfaMSFilterTabPage2() override
std::unique_ptr< weld::CheckButton > m_xEBasicStgCB
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::CheckButton > m_xEBasicExectblCB
std::unique_ptr< weld::CheckButton > m_xEBasicCodeCB
std::unique_ptr< weld::CheckButton > m_xWBasicWbctblCB
OfaMSFilterTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
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_xWBasicCodeCB
virtual ~OfaMSFilterTabPage() override
std::unique_ptr< weld::CheckButton > m_xPBasicCodeCB
std::unique_ptr< weld::CheckButton > m_xPBasicStgCB
std::unique_ptr< weld::CheckButton > m_xWBasicStgCB
void SetCharBackground2Highlighting()
void SetLoadExcelBasicExecutable(bool bFlag)
bool IsLoadExcelBasicStorage() const
bool IsCharBackground2Highlighting() const
bool IsMathType2Math() const
void SetWriter2WinWord(bool bFlag)
bool IsLoadPPointBasicStorage() const
bool IsCalc2Excel() const
void SetImpress2PowerPoint(bool bFlag)
void SetMath2MathType(bool bFlag)
bool IsLoadExcelBasicExecutable() const
bool IsWinWord2Writer() const
static SvtFilterOptions & Get()
bool IsImpress2PowerPoint() const
void SetLoadWordBasicCode(bool bFlag)
void SetLoadPPointBasicStorage(bool bFlag)
void SetLoadExcelBasicStorage(bool bFlag)
void SetCharBackground2Shading()
void SetMathType2Math(bool bFlag)
void SetLoadWordBasicExecutable(bool bFlag)
bool IsLoadExcelBasicCode() const
bool IsWriter2WinWord() const
bool IsMSOLockFileCreationIsEnabled() const
void SetPowerPoint2Impress(bool bFlag)
void SetVisio2Draw(bool bFlag)
bool IsLoadWordBasicCode() const
void EnableMSOLockFileCreation(bool bEnable)
bool IsMath2MathType() const
void SetSmartArt2Shape(bool bFlag)
void SetLoadPPointBasicCode(bool bFlag)
bool IsLoadWordBasicStorage() const
void SetLoadWordBasicStorage(bool bFlag)
bool IsExcel2Calc() const
bool IsLoadWordBasicExecutable() const
bool IsPowerPoint2Impress() const
bool IsVisio2Draw() const
void SetCalc2Excel(bool bFlag)
void SetExcel2Calc(bool bFlag)
void SetWinWord2Writer(bool bFlag)
bool IsLoadPPointBasicCode() const
bool IsSmartArt2Shape() const
void SetLoadExcelBasicCode(bool bFlag)
bool IsModuleInstalled(EModule eModule) const
static std::shared_ptr< ConfigurationChanges > create()
OUString CuiResId(TranslateId aKey)
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(OfaMSFilterTabPage, LoadWordBasicCheckHdl_Impl, weld::Toggleable &, void)
MSFltrPg2_CheckBoxEntries