settings.cxx (5e2fdb1b) | settings.cxx (a68b38df) |
---|---|
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 --- 22 unchanged lines hidden (view full) --- 31#include "vcl/svapp.hxx" 32#include "vcl/event.hxx" 33#include "vcl/settings.hxx" 34#include "vcl/i18nhelp.hxx" 35#include "vcl/configsettings.hxx" 36#include "vcl/gradient.hxx" 37#include "vcl/unohelp.hxx" 38#include "vcl/bitmapex.hxx" | 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 --- 22 unchanged lines hidden (view full) --- 31#include "vcl/svapp.hxx" 32#include "vcl/event.hxx" 33#include "vcl/settings.hxx" 34#include "vcl/i18nhelp.hxx" 35#include "vcl/configsettings.hxx" 36#include "vcl/gradient.hxx" 37#include "vcl/unohelp.hxx" 38#include "vcl/bitmapex.hxx" |
39#include "vcl/outdev.hxx" |
|
39 40#include "unotools/fontcfg.hxx" 41#include "unotools/localedatawrapper.hxx" 42#include "unotools/collatorwrapper.hxx" 43#include "unotools/configmgr.hxx" 44#include "unotools/confignode.hxx" 45#include "unotools/syslocaleoptions.hxx" 46 --- 379 unchanged lines hidden (view full) --- 426 mnSelectionOptions = 0; 427 mnDisplayOptions = 0; 428 mnOptions = 0; 429 mnAutoMnemonic = 1; 430 mnToolbarIconSize = STYLE_TOOLBAR_ICONSIZE_UNKNOWN; 431 mnSymbolsStyle = STYLE_SYMBOLS_AUTO; 432 mnPreferredSymbolsStyle = STYLE_SYMBOLS_AUTO; 433 mpFontOptions = NULL; | 40 41#include "unotools/fontcfg.hxx" 42#include "unotools/localedatawrapper.hxx" 43#include "unotools/collatorwrapper.hxx" 44#include "unotools/configmgr.hxx" 45#include "unotools/confignode.hxx" 46#include "unotools/syslocaleoptions.hxx" 47 --- 379 unchanged lines hidden (view full) --- 427 mnSelectionOptions = 0; 428 mnDisplayOptions = 0; 429 mnOptions = 0; 430 mnAutoMnemonic = 1; 431 mnToolbarIconSize = STYLE_TOOLBAR_ICONSIZE_UNKNOWN; 432 mnSymbolsStyle = STYLE_SYMBOLS_AUTO; 433 mnPreferredSymbolsStyle = STYLE_SYMBOLS_AUTO; 434 mpFontOptions = NULL; |
435 mnEdgeBlending = 35; 436 maEdgeBlendingTopLeftColor = RGB_COLORDATA(0xC0, 0xC0, 0xC0); 437 maEdgeBlendingBottomRightColor = RGB_COLORDATA(0x40, 0x40, 0x40); 438 mnListBoxMaximumLineCount = 25; 439 mnColorValueSetColumnCount = 12; 440 mnColorValueSetMaximumRowCount = 40; 441 maListBoxPreviewDefaultLogicSize = Size(15, 7); 442 maListBoxPreviewDefaultPixelSize = Size(0, 0); // on-demand calculated in GetListBoxPreviewDefaultPixelSize() 443 mnListBoxPreviewDefaultLineWidth = 1; |
|
434 435 SetStandardStyles(); 436} 437 438// ----------------------------------------------------------------------- 439 440ImplStyleData::ImplStyleData( const ImplStyleData& rData ) : 441 maActiveBorderColor( rData.maActiveBorderColor ), --- 85 unchanged lines hidden (view full) --- 527 mnUseSystemUIFonts = rData.mnUseSystemUIFonts; 528 mnUseFlatBorders = rData.mnUseFlatBorders; 529 mnUseFlatMenues = rData.mnUseFlatMenues; 530 mnAutoMnemonic = rData.mnAutoMnemonic; 531 mnUseImagesInMenus = rData.mnUseImagesInMenus; 532 mnSkipDisabledInMenus = rData.mnSkipDisabledInMenus; 533 mnToolbarIconSize = rData.mnToolbarIconSize; 534 mnSymbolsStyle = rData.mnSymbolsStyle; | 444 445 SetStandardStyles(); 446} 447 448// ----------------------------------------------------------------------- 449 450ImplStyleData::ImplStyleData( const ImplStyleData& rData ) : 451 maActiveBorderColor( rData.maActiveBorderColor ), --- 85 unchanged lines hidden (view full) --- 537 mnUseSystemUIFonts = rData.mnUseSystemUIFonts; 538 mnUseFlatBorders = rData.mnUseFlatBorders; 539 mnUseFlatMenues = rData.mnUseFlatMenues; 540 mnAutoMnemonic = rData.mnAutoMnemonic; 541 mnUseImagesInMenus = rData.mnUseImagesInMenus; 542 mnSkipDisabledInMenus = rData.mnSkipDisabledInMenus; 543 mnToolbarIconSize = rData.mnToolbarIconSize; 544 mnSymbolsStyle = rData.mnSymbolsStyle; |
535 mnPreferredSymbolsStyle = rData.mnPreferredSymbolsStyle; | 545 mnPreferredSymbolsStyle = rData.mnPreferredSymbolsStyle; |
536 mpFontOptions = rData.mpFontOptions; | 546 mpFontOptions = rData.mpFontOptions; |
547 mnEdgeBlending = rData.mnEdgeBlending; 548 maEdgeBlendingTopLeftColor = rData.maEdgeBlendingTopLeftColor; 549 maEdgeBlendingBottomRightColor = rData.maEdgeBlendingBottomRightColor; 550 mnListBoxMaximumLineCount = rData.mnListBoxMaximumLineCount; 551 mnColorValueSetColumnCount = rData.mnColorValueSetColumnCount; 552 mnColorValueSetMaximumRowCount = rData.mnColorValueSetMaximumRowCount; 553 maListBoxPreviewDefaultLogicSize = rData.maListBoxPreviewDefaultLogicSize; 554 maListBoxPreviewDefaultPixelSize = rData.maListBoxPreviewDefaultPixelSize; 555 mnListBoxPreviewDefaultLineWidth = rData.mnListBoxPreviewDefaultLineWidth; |
|
537} 538 539// ----------------------------------------------------------------------- 540 541void ImplStyleData::SetStandardStyles() 542{ 543 Font aStdFont( FAMILY_SWISS, Size( 0, 8 ) ); 544 aStdFont.SetCharSet( gsl_getSystemTextEncoding() ); --- 102 unchanged lines hidden (view full) --- 647{ 648 // Daten loeschen, wenn letzte Referenz 649 if ( mpData->mnRefCount == 1 ) 650 delete mpData; 651 else 652 mpData->mnRefCount--; 653} 654 | 556} 557 558// ----------------------------------------------------------------------- 559 560void ImplStyleData::SetStandardStyles() 561{ 562 Font aStdFont( FAMILY_SWISS, Size( 0, 8 ) ); 563 aStdFont.SetCharSet( gsl_getSystemTextEncoding() ); --- 102 unchanged lines hidden (view full) --- 666{ 667 // Daten loeschen, wenn letzte Referenz 668 if ( mpData->mnRefCount == 1 ) 669 delete mpData; 670 else 671 mpData->mnRefCount--; 672} 673 |
674const Size& StyleSettings::GetListBoxPreviewDefaultPixelSize() const 675{ 676 if(0 == mpData->maListBoxPreviewDefaultPixelSize.Width() || 0 == mpData->maListBoxPreviewDefaultPixelSize.Height()) 677 { 678 const_cast< StyleSettings* >(this)->mpData->maListBoxPreviewDefaultPixelSize = 679 Application::GetDefaultDevice()->LogicToPixel(mpData->maListBoxPreviewDefaultLogicSize, MAP_APPFONT); 680 } 681 682 return mpData->maListBoxPreviewDefaultPixelSize; 683} 684 |
|
655// ----------------------------------------------------------------------- 656 657void StyleSettings::Set3DColors( const Color& rColor ) 658{ 659 CopyData(); 660 mpData->maFaceColor = rColor; 661 mpData->maLightBorderColor = rColor; 662 mpData->maMenuBorderColor = rColor; --- 365 unchanged lines hidden (view full) --- 1028 (mpData->maLabelFont == rSet.mpData->maLabelFont) && 1029 (mpData->maInfoFont == rSet.mpData->maInfoFont) && 1030 (mpData->maRadioCheckFont == rSet.mpData->maRadioCheckFont) && 1031 (mpData->maPushButtonFont == rSet.mpData->maPushButtonFont) && 1032 (mpData->maFieldFont == rSet.mpData->maFieldFont) && 1033 (mpData->maIconFont == rSet.mpData->maIconFont) && 1034 (mpData->mnUseImagesInMenus == rSet.mpData->mnUseImagesInMenus) && 1035 (mpData->mnSkipDisabledInMenus == rSet.mpData->mnSkipDisabledInMenus) && | 685// ----------------------------------------------------------------------- 686 687void StyleSettings::Set3DColors( const Color& rColor ) 688{ 689 CopyData(); 690 mpData->maFaceColor = rColor; 691 mpData->maLightBorderColor = rColor; 692 mpData->maMenuBorderColor = rColor; --- 365 unchanged lines hidden (view full) --- 1058 (mpData->maLabelFont == rSet.mpData->maLabelFont) && 1059 (mpData->maInfoFont == rSet.mpData->maInfoFont) && 1060 (mpData->maRadioCheckFont == rSet.mpData->maRadioCheckFont) && 1061 (mpData->maPushButtonFont == rSet.mpData->maPushButtonFont) && 1062 (mpData->maFieldFont == rSet.mpData->maFieldFont) && 1063 (mpData->maIconFont == rSet.mpData->maIconFont) && 1064 (mpData->mnUseImagesInMenus == rSet.mpData->mnUseImagesInMenus) && 1065 (mpData->mnSkipDisabledInMenus == rSet.mpData->mnSkipDisabledInMenus) && |
1036 (mpData->maFontColor == rSet.mpData->maFontColor )) | 1066 (mpData->maFontColor == rSet.mpData->maFontColor) && 1067 (mpData->mnEdgeBlending == rSet.mpData->mnEdgeBlending) && 1068 (mpData->maEdgeBlendingTopLeftColor == rSet.mpData->maEdgeBlendingTopLeftColor) && 1069 (mpData->maEdgeBlendingBottomRightColor == rSet.mpData->maEdgeBlendingBottomRightColor) && 1070 (mpData->mnListBoxMaximumLineCount == rSet.mpData->mnListBoxMaximumLineCount) && 1071 (mpData->mnColorValueSetColumnCount == rSet.mpData->mnColorValueSetColumnCount) && 1072 (mpData->mnColorValueSetMaximumRowCount == rSet.mpData->mnColorValueSetMaximumRowCount) && 1073 (mpData->maListBoxPreviewDefaultLogicSize == rSet.mpData->maListBoxPreviewDefaultLogicSize) && 1074 (mpData->maListBoxPreviewDefaultPixelSize == rSet.mpData->maListBoxPreviewDefaultPixelSize) && 1075 (mpData->mnListBoxPreviewDefaultLineWidth == rSet.mpData->mnListBoxPreviewDefaultLineWidth)) |
1037 return sal_True; 1038 else 1039 return sal_False; 1040} 1041 1042// ======================================================================= 1043 1044ImplMiscData::ImplMiscData() --- 966 unchanged lines hidden --- | 1076 return sal_True; 1077 else 1078 return sal_False; 1079} 1080 1081// ======================================================================= 1082 1083ImplMiscData::ImplMiscData() --- 966 unchanged lines hidden --- |