29 bool bIsSequenceChecking = m_xSequenceCheckingCB->get_active();
30 m_xRestrictedCB->set_sensitive( bIsSequenceChecking );
31 m_xTypeReplaceCB->set_sensitive( bIsSequenceChecking );
33 if (bIsSequenceChecking)
35 m_xTypeReplaceCB->set_active(
true);
36 m_xRestrictedCB->set_active(
true);
41 :
SfxTabPage(pPage, pController,
"cui/ui/optctlpage.ui",
"OptCTLPage", &
rSet)
42 , m_xSequenceCheckingCB(m_xBuilder->weld_check_button(
"sequencechecking"))
43 , m_xRestrictedCB(m_xBuilder->weld_check_button(
"restricted"))
44 , m_xTypeReplaceCB(m_xBuilder->weld_check_button(
"typeandreplace"))
45 , m_xMovementLogicalRB(m_xBuilder->weld_radio_button(
"movementlogical"))
46 , m_xMovementVisualRB(m_xBuilder->weld_radio_button(
"movementvisual"))
47 , m_xNumeralsLB(m_xBuilder->weld_combo_box(
"numerals"))
58 return std::make_unique<SvxCTLOptionsPage>( pPage, pController, *rAttrSet );
63 bool bModified =
false;
125 SAL_WARN(
"cui.options",
"SvxCTLOptionsPage::Reset(): invalid movement enum" );
129 DBG_ASSERT( nPos < m_xNumeralsLB->get_count(),
"SvxCTLOptionsPage::Reset(): invalid numerals enum" );
void SetCTLTextNumerals(TextNumerals _eNumerals)
void SetCTLSequenceCheckingTypeAndReplace(bool _bEnable)
static bool IsCTLSequenceCheckingTypeAndReplace()
void SetCTLCursorMovement(CursorMovement _eMovement)
static CursorMovement GetCTLCursorMovement()
static TextNumerals GetCTLTextNumerals()
static bool IsCTLSequenceChecking()
static bool IsCTLSequenceCheckingRestricted()
void SetCTLSequenceChecking(bool _bEnabled)
void SetCTLSequenceCheckingRestricted(bool _bEnable)
SvxCTLOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
virtual bool FillItemSet(SfxItemSet *rSet) override
virtual void Reset(const SfxItemSet *rSet) override
virtual ~SvxCTLOptionsPage() override
std::unique_ptr< weld::ComboBox > m_xNumeralsLB
std::unique_ptr< weld::CheckButton > m_xSequenceCheckingCB
std::unique_ptr< weld::CheckButton > m_xTypeReplaceCB
std::unique_ptr< weld::RadioButton > m_xMovementVisualRB
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
std::unique_ptr< weld::CheckButton > m_xRestrictedCB
std::unique_ptr< weld::RadioButton > m_xMovementLogicalRB
#define DBG_ASSERT(sCon, aError)
#define LINK(Instance, Class, Member)
#define SAL_WARN(area, stream)
IMPL_LINK_NOARG(SvxCTLOptionsPage, SequenceCheckingCB_Hdl, weld::Toggleable &, void)