accessibilityoptions.cxx (e2020f46) | accessibilityoptions.cxx (33b19716) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 75 unchanged lines hidden (view full) --- 84 sal_Bool GetIsAllowAnimatedText() const; 85 sal_Bool GetIsAutomaticFontColor() const; 86 sal_Bool GetIsSystemFont() const; 87 sal_Int16 GetHelpTipSeconds() const; 88 sal_Bool IsSelectionInReadonly() const; 89 sal_Int16 GetEdgeBlending() const; 90 sal_Int16 GetListBoxMaximumLineCount() const; 91 sal_Int16 GetColorValueSetColumnCount() const; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 75 unchanged lines hidden (view full) --- 84 sal_Bool GetIsAllowAnimatedText() const; 85 sal_Bool GetIsAutomaticFontColor() const; 86 sal_Bool GetIsSystemFont() const; 87 sal_Int16 GetHelpTipSeconds() const; 88 sal_Bool IsSelectionInReadonly() const; 89 sal_Int16 GetEdgeBlending() const; 90 sal_Int16 GetListBoxMaximumLineCount() const; 91 sal_Int16 GetColorValueSetColumnCount() const; |
92 sal_Bool GetPreviewUsesCheckeredBackground() const; |
|
92 93 void SetAutoDetectSystemHC(sal_Bool bSet); 94 void SetIsForPagePreviews(sal_Bool bSet); 95 void SetIsHelpTipsDisappear(sal_Bool bSet); 96 void SetIsAllowAnimatedGraphics(sal_Bool bSet); 97 void SetIsAllowAnimatedText(sal_Bool bSet); 98 void SetIsAutomaticFontColor(sal_Bool bSet); 99 void SetIsSystemFont(sal_Bool bSet); 100 void SetHelpTipSeconds(sal_Int16 nSet); 101 void SetSelectionInReadonly(sal_Bool bSet); 102 void SetEdgeBlending(sal_Int16 nSet); 103 void SetListBoxMaximumLineCount(sal_Int16 nSet); 104 void SetColorValueSetColumnCount(sal_Int16 nSet); | 93 94 void SetAutoDetectSystemHC(sal_Bool bSet); 95 void SetIsForPagePreviews(sal_Bool bSet); 96 void SetIsHelpTipsDisappear(sal_Bool bSet); 97 void SetIsAllowAnimatedGraphics(sal_Bool bSet); 98 void SetIsAllowAnimatedText(sal_Bool bSet); 99 void SetIsAutomaticFontColor(sal_Bool bSet); 100 void SetIsSystemFont(sal_Bool bSet); 101 void SetHelpTipSeconds(sal_Int16 nSet); 102 void SetSelectionInReadonly(sal_Bool bSet); 103 void SetEdgeBlending(sal_Int16 nSet); 104 void SetListBoxMaximumLineCount(sal_Int16 nSet); 105 void SetColorValueSetColumnCount(sal_Int16 nSet); |
106 void SetPreviewUsesCheckeredBackground(sal_Bool bSet); |
|
105 106 sal_Bool IsModified() const { return bIsModified; }; 107}; 108 109// initialization of static members -------------------------------------- 110 111SvtAccessibilityOptions_Impl* volatile SvtAccessibilityOptions::sm_pSingleImplConfig =NULL; 112sal_Int32 volatile SvtAccessibilityOptions::sm_nAccessibilityRefCount(0); --- 242 unchanged lines hidden (view full) --- 355 catch(const css::uno::Exception& ex) 356 { 357 LogHelper::logIt(ex); 358 } 359 360 return nRet; 361} 362 | 107 108 sal_Bool IsModified() const { return bIsModified; }; 109}; 110 111// initialization of static members -------------------------------------- 112 113SvtAccessibilityOptions_Impl* volatile SvtAccessibilityOptions::sm_pSingleImplConfig =NULL; 114sal_Int32 volatile SvtAccessibilityOptions::sm_nAccessibilityRefCount(0); --- 242 unchanged lines hidden (view full) --- 357 catch(const css::uno::Exception& ex) 358 { 359 LogHelper::logIt(ex); 360 } 361 362 return nRet; 363} 364 |
365sal_Bool SvtAccessibilityOptions_Impl::GetPreviewUsesCheckeredBackground() const 366{ 367 css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY); 368 sal_Bool bRet = sal_False; 369 370 try 371 { 372 if(xNode.is()) 373 xNode->getPropertyValue(s_sPreviewUsesCheckeredBackground) >>= bRet; 374 } 375 catch(const css::uno::Exception& ex) 376 { 377 LogHelper::logIt(ex); 378 } 379 380 return bRet; 381} 382 |
|
363void SvtAccessibilityOptions_Impl::SetAutoDetectSystemHC(sal_Bool bSet) 364{ 365 css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY); 366 367 try 368 { 369 if(xNode.is() && xNode->getPropertyValue(s_sAutoDetectSystemHC)!=bSet) 370 { --- 210 unchanged lines hidden (view full) --- 581 const sal_uInt16 nMaxColumnCountB(static_cast< sal_uInt16 >(nMaxColumnCountA >= 0 ? nMaxColumnCountA : 0)); 582 583 if(aStyleSettings.GetColorValueSetColumnCount() != nMaxColumnCountB) 584 { 585 aStyleSettings.SetColorValueSetColumnCount(nMaxColumnCountB); 586 StyleSettingsChanged = true; 587 } 588 | 383void SvtAccessibilityOptions_Impl::SetAutoDetectSystemHC(sal_Bool bSet) 384{ 385 css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY); 386 387 try 388 { 389 if(xNode.is() && xNode->getPropertyValue(s_sAutoDetectSystemHC)!=bSet) 390 { --- 210 unchanged lines hidden (view full) --- 601 const sal_uInt16 nMaxColumnCountB(static_cast< sal_uInt16 >(nMaxColumnCountA >= 0 ? nMaxColumnCountA : 0)); 602 603 if(aStyleSettings.GetColorValueSetColumnCount() != nMaxColumnCountB) 604 { 605 aStyleSettings.SetColorValueSetColumnCount(nMaxColumnCountB); 606 StyleSettingsChanged = true; 607 } 608 |
609 const bool bPreviewUsesCheckeredBackground(GetPreviewUsesCheckeredBackground()); 610 611 if(aStyleSettings.GetPreviewUsesCheckeredBackground() != bPreviewUsesCheckeredBackground) 612 { 613 aStyleSettings.SetPreviewUsesCheckeredBackground(bPreviewUsesCheckeredBackground); 614 StyleSettingsChanged = true; 615 } 616 |
|
589 if(StyleSettingsChanged) 590 { 591 aAllSettings.SetStyleSettings(aStyleSettings); 592 Application::MergeSystemSettings(aAllSettings); 593 } 594 595 Application::SetSettings(aAllSettings); 596} --- 53 unchanged lines hidden (view full) --- 650 } 651 } 652 catch(const css::uno::Exception& ex) 653 { 654 LogHelper::logIt(ex); 655 } 656} 657 | 617 if(StyleSettingsChanged) 618 { 619 aAllSettings.SetStyleSettings(aStyleSettings); 620 Application::MergeSystemSettings(aAllSettings); 621 } 622 623 Application::SetSettings(aAllSettings); 624} --- 53 unchanged lines hidden (view full) --- 678 } 679 } 680 catch(const css::uno::Exception& ex) 681 { 682 LogHelper::logIt(ex); 683 } 684} 685 |
686void SvtAccessibilityOptions_Impl::SetPreviewUsesCheckeredBackground(sal_Bool bSet) 687{ 688 css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY); 689 690 try 691 { 692 if(xNode.is() && xNode->getPropertyValue(s_sPreviewUsesCheckeredBackground)!=bSet) 693 { 694 xNode->setPropertyValue(s_sPreviewUsesCheckeredBackground, css::uno::makeAny(bSet)); 695 ::comphelper::ConfigurationHelper::flush(m_xCfg); 696 697 bIsModified = sal_True; 698 } 699 } 700 catch(const css::uno::Exception& ex) 701 { 702 LogHelper::logIt(ex); 703 } 704} 705 |
|
658// ----------------------------------------------------------------------- 659// class SvtAccessibilityOptions -------------------------------------------------- 660 661SvtAccessibilityOptions::SvtAccessibilityOptions() 662{ 663 { 664 ::osl::MutexGuard aGuard( SingletonMutex::get() ); 665 if(!sm_pSingleImplConfig) --- 98 unchanged lines hidden (view full) --- 764sal_Int16 SvtAccessibilityOptions::GetListBoxMaximumLineCount() const 765{ 766 return sm_pSingleImplConfig->GetListBoxMaximumLineCount(); 767} 768sal_Int16 SvtAccessibilityOptions::GetColorValueSetColumnCount() const 769{ 770 return sm_pSingleImplConfig->GetColorValueSetColumnCount(); 771} | 706// ----------------------------------------------------------------------- 707// class SvtAccessibilityOptions -------------------------------------------------- 708 709SvtAccessibilityOptions::SvtAccessibilityOptions() 710{ 711 { 712 ::osl::MutexGuard aGuard( SingletonMutex::get() ); 713 if(!sm_pSingleImplConfig) --- 98 unchanged lines hidden (view full) --- 812sal_Int16 SvtAccessibilityOptions::GetListBoxMaximumLineCount() const 813{ 814 return sm_pSingleImplConfig->GetListBoxMaximumLineCount(); 815} 816sal_Int16 SvtAccessibilityOptions::GetColorValueSetColumnCount() const 817{ 818 return sm_pSingleImplConfig->GetColorValueSetColumnCount(); 819} |
820sal_Bool SvtAccessibilityOptions::GetPreviewUsesCheckeredBackground() const 821{ 822 return sm_pSingleImplConfig->GetPreviewUsesCheckeredBackground(); 823} |
|
772 773// ----------------------------------------------------------------------- 774void SvtAccessibilityOptions::SetAutoDetectSystemHC(sal_Bool bSet) 775{ 776 sm_pSingleImplConfig->SetAutoDetectSystemHC(bSet); 777} 778void SvtAccessibilityOptions::SetIsForPagePreviews(sal_Bool bSet) 779{ --- 38 unchanged lines hidden (view full) --- 818void SvtAccessibilityOptions::SetListBoxMaximumLineCount(sal_Int16 nSet) 819{ 820 sm_pSingleImplConfig->SetListBoxMaximumLineCount(nSet); 821} 822void SvtAccessibilityOptions::SetColorValueSetColumnCount(sal_Int16 nSet) 823{ 824 sm_pSingleImplConfig->SetColorValueSetColumnCount(nSet); 825} | 824 825// ----------------------------------------------------------------------- 826void SvtAccessibilityOptions::SetAutoDetectSystemHC(sal_Bool bSet) 827{ 828 sm_pSingleImplConfig->SetAutoDetectSystemHC(bSet); 829} 830void SvtAccessibilityOptions::SetIsForPagePreviews(sal_Bool bSet) 831{ --- 38 unchanged lines hidden (view full) --- 870void SvtAccessibilityOptions::SetListBoxMaximumLineCount(sal_Int16 nSet) 871{ 872 sm_pSingleImplConfig->SetListBoxMaximumLineCount(nSet); 873} 874void SvtAccessibilityOptions::SetColorValueSetColumnCount(sal_Int16 nSet) 875{ 876 sm_pSingleImplConfig->SetColorValueSetColumnCount(nSet); 877} |
878void SvtAccessibilityOptions::SetPreviewUsesCheckeredBackground(sal_Bool bSet) 879{ 880 sm_pSingleImplConfig->SetPreviewUsesCheckeredBackground(bSet); 881} |
|
826 827// ----------------------------------------------------------------------- | 882 883// ----------------------------------------------------------------------- |