LibreOffice Module toolkit (master) 1
stylesettings.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20
21#include "stylesettings.hxx"
24
25#include <com/sun/star/lang/DisposedException.hpp>
26
27#include <osl/diagnose.h>
28#include <osl/mutex.hxx>
29#include <vcl/event.hxx>
30#include <vcl/window.hxx>
31#include <vcl/settings.hxx>
32#include <vcl/svapp.hxx>
33
34
35namespace toolkit
36{
37 using ::com::sun::star::uno::Reference;
38 using ::com::sun::star::uno::RuntimeException;
39 using ::com::sun::star::lang::DisposedException;
40 using ::com::sun::star::lang::EventObject;
41 using ::com::sun::star::awt::FontDescriptor;
42 using ::com::sun::star::awt::XStyleChangeListener;
43
44
45 IMPL_LINK( WindowStyleSettings, OnWindowEvent, VclWindowEvent&, rEvent, void )
46 {
47 if ( rEvent.GetId() != VclEventId::WindowDataChanged )
48 return;
49 const DataChangedEvent* pDataChangedEvent = static_cast< const DataChangedEvent* >( rEvent.GetData() );
50 if ( !pDataChangedEvent || ( pDataChangedEvent->GetType() != DataChangedEventType::SETTINGS ) )
51 return;
52 if ( !( pDataChangedEvent->GetFlags() & AllSettingsFlags::STYLE ) )
53 return;
54
55 EventObject aEvent( *pOwningWindow );
56 aStyleChangeListeners.notifyEach( &XStyleChangeListener::styleSettingsChanged, aEvent );
57 }
58
59
60 //= StyleMethodGuard
61
62 namespace {
63
64 class StyleMethodGuard
65 {
66 public:
67 explicit StyleMethodGuard( const VCLXWindow* pOwningWindow )
68 {
69 if ( pOwningWindow == nullptr )
70 throw DisposedException();
71 }
72
73 private:
75 };
76
77 }
78
79 //= WindowStyleSettings
80
81
82 WindowStyleSettings::WindowStyleSettings(::osl::Mutex& i_rListenerMutex, VCLXWindow& i_rOwningWindow )
83 : pOwningWindow( &i_rOwningWindow )
84 ,aStyleChangeListeners( i_rListenerMutex )
85 {
86 VclPtr<vcl::Window> pWindow = i_rOwningWindow.GetWindow();
87 if ( !pWindow )
88 throw RuntimeException();
89 pWindow->AddEventListener( LINK( this, WindowStyleSettings, OnWindowEvent ) );
90 }
91
92
94 {
95 }
96
97
99 {
100 StyleMethodGuard aGuard( pOwningWindow );
101
103 OSL_ENSURE( pWindow, "WindowStyleSettings::dispose: window has been reset before we could revoke the listener!" );
104 if ( pWindow )
105 pWindow->RemoveEventListener( LINK( this, WindowStyleSettings, OnWindowEvent ) );
106
107 EventObject aEvent( *this );
109
110 pOwningWindow = nullptr;
111 }
112
113
114 sal_Int32 WindowStyleSettings::ImplGetStyleColor( Color const & (StyleSettings::*i_pGetter)() const ) const
115 {
116 const VclPtr<vcl::Window>& pWindow = pOwningWindow->GetWindow();
117 const AllSettings aAllSettings = pWindow->GetSettings();
118 const StyleSettings& aStyleSettings = aAllSettings.GetStyleSettings();
119 return sal_Int32((aStyleSettings.*i_pGetter)());
120 }
121
122 void WindowStyleSettings::ImplSetStyleColor( void (StyleSettings::*i_pSetter)( Color const & ), sal_Int32 i_nColor )
123 {
125 AllSettings aAllSettings = pWindow->GetSettings();
126 StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
127 (aStyleSettings.*i_pSetter)( Color(ColorTransparency, i_nColor) );
128 aAllSettings.SetStyleSettings( aStyleSettings );
129 pWindow->SetSettings( aAllSettings );
130 }
131
132 FontDescriptor WindowStyleSettings::ImplGetStyleFont( vcl::Font const & (StyleSettings::*i_pGetter)() const ) const
133 {
134 const VclPtr<vcl::Window>& pWindow = pOwningWindow->GetWindow();
135 const AllSettings aAllSettings = pWindow->GetSettings();
136 const StyleSettings& aStyleSettings = aAllSettings.GetStyleSettings();
137 return VCLUnoHelper::CreateFontDescriptor( (aStyleSettings.*i_pGetter)() );
138 }
139
141 vcl::Font const & (StyleSettings::*i_pGetter)() const, const FontDescriptor& i_rFont )
142 {
144 AllSettings aAllSettings = pWindow->GetSettings();
145 StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
146 const vcl::Font aNewFont = VCLUnoHelper::CreateFont( i_rFont, (aStyleSettings.*i_pGetter)() );
147 (aStyleSettings.*i_pSetter)( aNewFont );
148 aAllSettings.SetStyleSettings( aStyleSettings );
149 pWindow->SetSettings( aAllSettings );
150 }
151
153 {
154 StyleMethodGuard aGuard( pOwningWindow );
156 }
157
158
159 void SAL_CALL WindowStyleSettings::setActiveBorderColor( ::sal_Int32 _activebordercolor )
160 {
161 StyleMethodGuard aGuard( pOwningWindow );
163 }
164
165
167 {
168 StyleMethodGuard aGuard( pOwningWindow );
170 }
171
172
173 void SAL_CALL WindowStyleSettings::setActiveColor( ::sal_Int32 _activecolor )
174 {
175 StyleMethodGuard aGuard( pOwningWindow );
177 }
178
179
181 {
182 StyleMethodGuard aGuard( pOwningWindow );
184 }
185
186
187 void SAL_CALL WindowStyleSettings::setActiveTabColor( ::sal_Int32 _activetabcolor )
188 {
189 StyleMethodGuard aGuard( pOwningWindow );
191 }
192
193
195 {
196 StyleMethodGuard aGuard( pOwningWindow );
198 }
199
200
201 void SAL_CALL WindowStyleSettings::setActiveTextColor( ::sal_Int32 _activetextcolor )
202 {
203 StyleMethodGuard aGuard( pOwningWindow );
205 }
206
207
209 {
210 StyleMethodGuard aGuard( pOwningWindow );
212 }
213
214
215 void SAL_CALL WindowStyleSettings::setButtonRolloverTextColor( ::sal_Int32 _buttonrollovertextcolor )
216 {
217 StyleMethodGuard aGuard( pOwningWindow );
219 // Also need to set ActionButtonRolloverTextColor as this setting can't be
220 // set through the UNO interface otherwise.
221 // Previously this setting was used to set colors for both scenarios,
222 // but action button setting was added to differentiate the buttons from
223 // "normal" buttons in some themes.
225 }
226
227
229 {
230 StyleMethodGuard aGuard( pOwningWindow );
232 }
233
234
235 void SAL_CALL WindowStyleSettings::setButtonTextColor( ::sal_Int32 _buttontextcolor )
236 {
237 StyleMethodGuard aGuard( pOwningWindow );
239 // Also need to set ActionButtonTextColor and DefaultActionButtonTextColor
240 // as this two settings can't be set through the UNO interface otherwise.
241 // Previously this setting was used to set colors for all three scenarios,
242 // but action button setting was added to differentiate the buttons from
243 // "normal" buttons in some themes.
246 }
247
248
250 {
251 StyleMethodGuard aGuard( pOwningWindow );
253 }
254
255
256 void SAL_CALL WindowStyleSettings::setCheckedColor( ::sal_Int32 _checkedcolor )
257 {
258 StyleMethodGuard aGuard( pOwningWindow );
260 }
261
262
264 {
265 StyleMethodGuard aGuard( pOwningWindow );
267 }
268
269
270 void SAL_CALL WindowStyleSettings::setDarkShadowColor( ::sal_Int32 _darkshadowcolor )
271 {
272 StyleMethodGuard aGuard( pOwningWindow );
274 }
275
276
278 {
279 StyleMethodGuard aGuard( pOwningWindow );
281 }
282
283
284 void SAL_CALL WindowStyleSettings::setDeactiveBorderColor( ::sal_Int32 _deactivebordercolor )
285 {
286 StyleMethodGuard aGuard( pOwningWindow );
288 }
289
290
292 {
293 StyleMethodGuard aGuard( pOwningWindow );
295 }
296
297
298 void SAL_CALL WindowStyleSettings::setDeactiveColor( ::sal_Int32 _deactivecolor )
299 {
300 StyleMethodGuard aGuard( pOwningWindow );
302 }
303
304
306 {
307 StyleMethodGuard aGuard( pOwningWindow );
309 }
310
311
312 void SAL_CALL WindowStyleSettings::setDeactiveTextColor( ::sal_Int32 _deactivetextcolor )
313 {
314 StyleMethodGuard aGuard( pOwningWindow );
316 }
317
318
320 {
321 StyleMethodGuard aGuard( pOwningWindow );
323 }
324
325
326 void SAL_CALL WindowStyleSettings::setDialogColor( ::sal_Int32 _dialogcolor )
327 {
328 StyleMethodGuard aGuard( pOwningWindow );
330 }
331
332
334 {
335 StyleMethodGuard aGuard( pOwningWindow );
337 }
338
339
340 void SAL_CALL WindowStyleSettings::setDialogTextColor( ::sal_Int32 _dialogtextcolor )
341 {
342 StyleMethodGuard aGuard( pOwningWindow );
344 }
345
346
348 {
349 StyleMethodGuard aGuard( pOwningWindow );
351 }
352
353
354 void SAL_CALL WindowStyleSettings::setDisableColor( ::sal_Int32 _disablecolor )
355 {
356 StyleMethodGuard aGuard( pOwningWindow );
358 }
359
360
362 {
363 StyleMethodGuard aGuard( pOwningWindow );
365 }
366
367
368 void SAL_CALL WindowStyleSettings::setFaceColor( ::sal_Int32 _facecolor )
369 {
370 StyleMethodGuard aGuard( pOwningWindow );
372 }
373
374
376 {
377 StyleMethodGuard aGuard( pOwningWindow );
378 const VclPtr<vcl::Window>& pWindow = pOwningWindow->GetWindow();
379 const AllSettings aAllSettings = pWindow->GetSettings();
380 const StyleSettings& aStyleSettings = aAllSettings.GetStyleSettings();
381 return sal_Int32(aStyleSettings.GetFaceGradientColor());
382 }
383
384
386 {
387 StyleMethodGuard aGuard( pOwningWindow );
389 }
390
391
392 void SAL_CALL WindowStyleSettings::setFieldColor( ::sal_Int32 _fieldcolor )
393 {
394 StyleMethodGuard aGuard( pOwningWindow );
396 }
397
398
400 {
401 StyleMethodGuard aGuard( pOwningWindow );
403 }
404
405
406 void SAL_CALL WindowStyleSettings::setFieldRolloverTextColor( ::sal_Int32 _fieldrollovertextcolor )
407 {
408 StyleMethodGuard aGuard( pOwningWindow );
410 }
411
412
414 {
415 StyleMethodGuard aGuard( pOwningWindow );
417 }
418
419
420 void SAL_CALL WindowStyleSettings::setFieldTextColor( ::sal_Int32 _fieldtextcolor )
421 {
422 StyleMethodGuard aGuard( pOwningWindow );
424 }
425
426
428 {
429 StyleMethodGuard aGuard( pOwningWindow );
431 }
432
433
434 void SAL_CALL WindowStyleSettings::setGroupTextColor( ::sal_Int32 _grouptextcolor )
435 {
436 StyleMethodGuard aGuard( pOwningWindow );
438 }
439
440
442 {
443 StyleMethodGuard aGuard( pOwningWindow );
445 }
446
447
448 void SAL_CALL WindowStyleSettings::setHelpColor( ::sal_Int32 _helpcolor )
449 {
450 StyleMethodGuard aGuard( pOwningWindow );
452 }
453
454
456 {
457 StyleMethodGuard aGuard( pOwningWindow );
459 }
460
461
462 void SAL_CALL WindowStyleSettings::setHelpTextColor( ::sal_Int32 _helptextcolor )
463 {
464 StyleMethodGuard aGuard( pOwningWindow );
466 }
467
468
470 {
471 StyleMethodGuard aGuard( pOwningWindow );
473 }
474
475
476 void SAL_CALL WindowStyleSettings::setHighlightColor( ::sal_Int32 _highlightcolor )
477 {
478 StyleMethodGuard aGuard( pOwningWindow );
480 }
481
482
484 {
485 StyleMethodGuard aGuard( pOwningWindow );
487 }
488
489
490 void SAL_CALL WindowStyleSettings::setHighlightTextColor( ::sal_Int32 _highlighttextcolor )
491 {
492 StyleMethodGuard aGuard( pOwningWindow );
494 }
495
496
498 {
499 StyleMethodGuard aGuard( pOwningWindow );
501 }
502
503
504 void SAL_CALL WindowStyleSettings::setInactiveTabColor( ::sal_Int32 _inactivetabcolor )
505 {
506 StyleMethodGuard aGuard( pOwningWindow );
508 }
509
510
512 {
513 StyleMethodGuard aGuard( pOwningWindow );
515 }
516
517
518 void SAL_CALL WindowStyleSettings::setLabelTextColor( ::sal_Int32 _labeltextcolor )
519 {
520 StyleMethodGuard aGuard( pOwningWindow );
522 }
523
524
526 {
527 StyleMethodGuard aGuard( pOwningWindow );
529 }
530
531
532 void SAL_CALL WindowStyleSettings::setLightColor( ::sal_Int32 _lightcolor )
533 {
534 StyleMethodGuard aGuard( pOwningWindow );
536 }
537
538
540 {
541 StyleMethodGuard aGuard( pOwningWindow );
543 }
544
545
546 void SAL_CALL WindowStyleSettings::setMenuBarColor( ::sal_Int32 _menubarcolor )
547 {
548 StyleMethodGuard aGuard( pOwningWindow );
550 }
551
552
554 {
555 StyleMethodGuard aGuard( pOwningWindow );
557 }
558
559
560 void SAL_CALL WindowStyleSettings::setMenuBarTextColor( ::sal_Int32 _menubartextcolor )
561 {
562 StyleMethodGuard aGuard( pOwningWindow );
564 }
565
566
568 {
569 StyleMethodGuard aGuard( pOwningWindow );
571 }
572
573
574 void SAL_CALL WindowStyleSettings::setMenuBorderColor( ::sal_Int32 _menubordercolor )
575 {
576 StyleMethodGuard aGuard( pOwningWindow );
578 }
579
580
582 {
583 StyleMethodGuard aGuard( pOwningWindow );
585 }
586
587
588 void SAL_CALL WindowStyleSettings::setMenuColor( ::sal_Int32 _menucolor )
589 {
590 StyleMethodGuard aGuard( pOwningWindow );
592 }
593
594
596 {
597 StyleMethodGuard aGuard( pOwningWindow );
599 }
600
601
602 void SAL_CALL WindowStyleSettings::setMenuHighlightColor( ::sal_Int32 _menuhighlightcolor )
603 {
604 StyleMethodGuard aGuard( pOwningWindow );
606 }
607
608
610 {
611 StyleMethodGuard aGuard( pOwningWindow );
613 }
614
615
616 void SAL_CALL WindowStyleSettings::setMenuHighlightTextColor( ::sal_Int32 _menuhighlighttextcolor )
617 {
618 StyleMethodGuard aGuard( pOwningWindow );
620 }
621
622
624 {
625 StyleMethodGuard aGuard( pOwningWindow );
627 }
628
629
630 void SAL_CALL WindowStyleSettings::setMenuTextColor( ::sal_Int32 _menutextcolor )
631 {
632 StyleMethodGuard aGuard( pOwningWindow );
634 }
635
636
638 {
639 StyleMethodGuard aGuard( pOwningWindow );
641 }
642
643
644 void SAL_CALL WindowStyleSettings::setMonoColor( ::sal_Int32 _monocolor )
645 {
646 StyleMethodGuard aGuard( pOwningWindow );
648 }
649
650
652 {
653 StyleMethodGuard aGuard( pOwningWindow );
655 }
656
657
658 void SAL_CALL WindowStyleSettings::setRadioCheckTextColor( ::sal_Int32 _radiochecktextcolor )
659 {
660 StyleMethodGuard aGuard( pOwningWindow );
662 }
663
664
666 {
667 StyleMethodGuard aGuard( pOwningWindow );
668 const VclPtr<vcl::Window>& pWindow = pOwningWindow->GetWindow();
669 const AllSettings aAllSettings = pWindow->GetSettings();
670 const StyleSettings& aStyleSettings = aAllSettings.GetStyleSettings();
671 return sal_Int32(aStyleSettings.GetSeparatorColor());
672 }
673
674
676 {
677 StyleMethodGuard aGuard( pOwningWindow );
679 }
680
681
682 void SAL_CALL WindowStyleSettings::setShadowColor( ::sal_Int32 _shadowcolor )
683 {
684 StyleMethodGuard aGuard( pOwningWindow );
686 }
687
688
690 {
691 StyleMethodGuard aGuard( pOwningWindow );
693 }
694
695
696 void SAL_CALL WindowStyleSettings::setWindowColor( ::sal_Int32 _windowcolor )
697 {
698 StyleMethodGuard aGuard( pOwningWindow );
700 }
701
702
704 {
705 StyleMethodGuard aGuard( pOwningWindow );
707 }
708
709
710 void SAL_CALL WindowStyleSettings::setWindowTextColor( ::sal_Int32 _windowtextcolor )
711 {
712 StyleMethodGuard aGuard( pOwningWindow );
714 }
715
716
718 {
719 StyleMethodGuard aGuard( pOwningWindow );
721 }
722
723
724 void SAL_CALL WindowStyleSettings::setWorkspaceColor( ::sal_Int32 _workspacecolor )
725 {
726 StyleMethodGuard aGuard( pOwningWindow );
728 }
729
730
732 {
733 StyleMethodGuard aGuard( pOwningWindow );
734 const VclPtr<vcl::Window>& pWindow = pOwningWindow->GetWindow();
735 const AllSettings aAllSettings = pWindow->GetSettings();
736 const StyleSettings& aStyleSettings = aAllSettings.GetStyleSettings();
737 return aStyleSettings.GetHighContrastMode();
738 }
739
740
741 void SAL_CALL WindowStyleSettings::setHighContrastMode( sal_Bool _highcontrastmode )
742 {
743 StyleMethodGuard aGuard( pOwningWindow );
745 AllSettings aAllSettings = pWindow->GetSettings();
746 StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
747 aStyleSettings.SetHighContrastMode( _highcontrastmode );
748 aAllSettings.SetStyleSettings( aStyleSettings );
749 pWindow->SetSettings( aAllSettings );
750 }
751
752
754 {
755 StyleMethodGuard aGuard( pOwningWindow );
757 }
758
759
760 void SAL_CALL WindowStyleSettings::setApplicationFont( const FontDescriptor& _applicationfont )
761 {
762 StyleMethodGuard aGuard( pOwningWindow );
764 }
765
766
767 FontDescriptor SAL_CALL WindowStyleSettings::getHelpFont()
768 {
769 StyleMethodGuard aGuard( pOwningWindow );
771 }
772
773
774 void SAL_CALL WindowStyleSettings::setHelpFont( const FontDescriptor& _helpfont )
775 {
776 StyleMethodGuard aGuard( pOwningWindow );
778 }
779
780
781 FontDescriptor SAL_CALL WindowStyleSettings::getTitleFont()
782 {
783 StyleMethodGuard aGuard( pOwningWindow );
785 }
786
787
788 void SAL_CALL WindowStyleSettings::setTitleFont( const FontDescriptor& _titlefont )
789 {
790 StyleMethodGuard aGuard( pOwningWindow );
792 }
793
794
796 {
797 StyleMethodGuard aGuard( pOwningWindow );
799 }
800
801
802 void SAL_CALL WindowStyleSettings::setFloatTitleFont( const FontDescriptor& _floattitlefont )
803 {
804 StyleMethodGuard aGuard( pOwningWindow );
806 }
807
808
809 FontDescriptor SAL_CALL WindowStyleSettings::getMenuFont()
810 {
811 StyleMethodGuard aGuard( pOwningWindow );
813 }
814
815
816 void SAL_CALL WindowStyleSettings::setMenuFont( const FontDescriptor& _menufont )
817 {
818 StyleMethodGuard aGuard( pOwningWindow );
820 }
821
822
823 FontDescriptor SAL_CALL WindowStyleSettings::getToolFont()
824 {
825 StyleMethodGuard aGuard( pOwningWindow );
827 }
828
829
830 void SAL_CALL WindowStyleSettings::setToolFont( const FontDescriptor& _toolfont )
831 {
832 StyleMethodGuard aGuard( pOwningWindow );
834 }
835
836
837 FontDescriptor SAL_CALL WindowStyleSettings::getGroupFont()
838 {
839 StyleMethodGuard aGuard( pOwningWindow );
841 }
842
843
844 void SAL_CALL WindowStyleSettings::setGroupFont( const FontDescriptor& _groupfont )
845 {
846 StyleMethodGuard aGuard( pOwningWindow );
848 }
849
850
851 FontDescriptor SAL_CALL WindowStyleSettings::getLabelFont()
852 {
853 StyleMethodGuard aGuard( pOwningWindow );
855 }
856
857
858 void SAL_CALL WindowStyleSettings::setLabelFont( const FontDescriptor& _labelfont )
859 {
860 StyleMethodGuard aGuard( pOwningWindow );
862 }
863
864
866 {
867 StyleMethodGuard aGuard( pOwningWindow );
869 }
870
871
872 void SAL_CALL WindowStyleSettings::setRadioCheckFont( const FontDescriptor& _radiocheckfont )
873 {
874 StyleMethodGuard aGuard( pOwningWindow );
876 }
877
878
880 {
881 StyleMethodGuard aGuard( pOwningWindow );
883 }
884
885
886 void SAL_CALL WindowStyleSettings::setPushButtonFont( const FontDescriptor& _pushbuttonfont )
887 {
888 StyleMethodGuard aGuard( pOwningWindow );
890 }
891
892
893 FontDescriptor SAL_CALL WindowStyleSettings::getFieldFont()
894 {
895 StyleMethodGuard aGuard( pOwningWindow );
897 }
898
899
900 void SAL_CALL WindowStyleSettings::setFieldFont( const FontDescriptor& _fieldfont )
901 {
902 StyleMethodGuard aGuard( pOwningWindow );
904 }
905
906
907 void SAL_CALL WindowStyleSettings::addStyleChangeListener( const Reference< XStyleChangeListener >& i_rListener )
908 {
909 StyleMethodGuard aGuard( pOwningWindow );
910 if ( i_rListener.is() )
911 aStyleChangeListeners.addInterface( i_rListener );
912 }
913
914
915 void SAL_CALL WindowStyleSettings::removeStyleChangeListener( const Reference< XStyleChangeListener >& i_rListener )
916 {
917 StyleMethodGuard aGuard( pOwningWindow );
918 if ( i_rListener.is() )
920 }
921
922
923} // namespace toolkit
924
925
926/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AnyEventRef aEvent
const StyleSettings & GetStyleSettings() const
void SetStyleSettings(const StyleSettings &rSet)
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
const Color & GetGroupTextColor() const
void SetFieldTextColor(const Color &rColor)
void SetLabelFont(const vcl::Font &rFont)
void SetRadioCheckFont(const vcl::Font &rFont)
const Color & GetMonoColor() const
void SetFieldRolloverTextColor(const Color &rColor)
void SetActionButtonTextColor(const Color &rColor)
const Color & GetDeactiveTextColor() const
void SetGroupTextColor(const Color &rColor)
void SetFloatTitleFont(const vcl::Font &rFont)
const vcl::Font & GetHelpFont() const
void SetActiveTextColor(const Color &rColor)
const Color & GetDarkShadowColor() const
void SetFaceColor(const Color &rColor)
const Color & GetWindowColor() const
const Color & GetDialogTextColor() const
void SetHelpFont(const vcl::Font &rFont)
void SetHelpTextColor(const Color &rColor)
void SetToolFont(const vcl::Font &rFont)
void SetShadowColor(const Color &rColor)
const Color & GetMenuHighlightTextColor() const
void SetActiveBorderColor(const Color &rColor)
void SetPushButtonFont(const vcl::Font &rFont)
const Color & GetFieldTextColor() const
bool GetHighContrastMode() const
const Color & GetShadowColor() const
void SetDisableColor(const Color &rColor)
void SetActiveTabColor(const Color &rColor)
void SetHighlightTextColor(const Color &rColor)
const Color & GetMenuColor() const
const Color & GetMenuHighlightColor() const
const Color & GetFieldColor() const
void SetActionButtonRolloverTextColor(const Color &rColor)
const Color & GetLabelTextColor() const
const Color & GetMenuBarTextColor() const
const Color & GetDeactiveColor() const
const vcl::Font & GetMenuFont() const
void SetDefaultActionButtonTextColor(const Color &rColor)
const Color & GetRadioCheckTextColor() const
void SetActiveColor(const Color &rColor)
void SetHelpColor(const Color &rColor)
void SetInactiveTabColor(const Color &rColor)
const vcl::Font & GetRadioCheckFont() const
void SetDialogColor(const Color &rColor)
void SetMenuTextColor(const Color &rColor)
const vcl::Font & GetFieldFont() const
const vcl::Font & GetFloatTitleFont() const
const Color & GetWorkspaceColor() const
Color GetSeparatorColor() const
const Color & GetCheckedColor() const
const vcl::Font & GetLabelFont() const
void SetGroupFont(const vcl::Font &rFont)
const Color & GetWindowTextColor() const
void SetCheckedColor(const Color &rColor)
void SetMenuColor(const Color &rColor)
const vcl::Font & GetGroupFont() const
void SetHighlightColor(const Color &rColor)
const Color & GetHelpTextColor() const
const vcl::Font & GetPushButtonFont() const
void SetMonoColor(const Color &rColor)
void SetHighContrastMode(bool bHighContrast)
void SetAppFont(const vcl::Font &rFont)
const Color & GetHelpColor() const
const Color & GetActiveColor() const
const Color & GetLightColor() const
void SetMenuBarColor(const Color &rColor)
const vcl::Font & GetToolFont() const
void SetMenuHighlightTextColor(const Color &rColor)
Color GetFaceGradientColor() const
void SetTitleFont(const vcl::Font &rFont)
const Color & GetMenuBarColor() const
void SetRadioCheckTextColor(const Color &rColor)
const Color & GetDialogColor() const
void SetLabelTextColor(const Color &rColor)
void SetFieldFont(const vcl::Font &rFont)
void SetButtonRolloverTextColor(const Color &rColor)
void SetButtonTextColor(const Color &rColor)
void SetWindowColor(const Color &rColor)
const Color & GetActiveTabColor() const
const Color & GetHighlightColor() const
void SetWindowTextColor(const Color &rColor)
const Color & GetInactiveTabColor() const
void SetMenuBarTextColor(const Color &rColor)
void SetDeactiveTextColor(const Color &rColor)
const Color & GetFaceColor() const
const vcl::Font & GetAppFont() const
void SetDarkShadowColor(const Color &rColor)
const vcl::Font & GetTitleFont() const
void SetFieldColor(const Color &rColor)
void SetMenuFont(const vcl::Font &rFont)
const Color & GetMenuTextColor() const
void SetMenuBorderColor(const Color &rColor)
const Color & GetHighlightTextColor() const
void SetMenuHighlightColor(const Color &rColor)
void SetLightColor(const Color &rColor)
void SetWorkspaceColor(const Color &rColor)
const Color & GetDisableColor() const
void SetDeactiveBorderColor(const Color &rColor)
const Color & GetButtonTextColor() const
void SetDeactiveColor(const Color &rColor)
const Color & GetActiveTextColor() const
const Color & GetButtonRolloverTextColor() const
const Color & GetDeactiveBorderColor() const
const Color & GetActiveBorderColor() const
void SetDialogTextColor(const Color &rColor)
const Color & GetFieldRolloverTextColor() const
const Color & GetMenuBorderColor() const
static css::awt::FontDescriptor CreateFontDescriptor(const vcl::Font &rFont)
convert Font to css::awt::FontDescriptor
static vcl::Font CreateFont(const css::awt::FontDescriptor &rDescr, const vcl::Font &rInitFont)
vcl::Window * GetWindow() const
Definition: vclxwindow.hxx:131
sal_Int32 addInterface(const css::uno::Reference< ListenerT > &rxIFace)
void disposeAndClear(const css::lang::EventObject &rEvt)
sal_Int32 removeInterface(const css::uno::Reference< ListenerT > &rxIFace)
virtual ::sal_Int32 SAL_CALL getDisableColor() override
virtual void SAL_CALL setWindowTextColor(::sal_Int32 _windowtextcolor) override
virtual ::sal_Int32 SAL_CALL getFaceColor() override
virtual ::sal_Int32 SAL_CALL getFieldColor() override
virtual void SAL_CALL setActiveBorderColor(::sal_Int32 _activebordercolor) override
virtual void SAL_CALL setDialogColor(::sal_Int32 _dialogcolor) override
virtual void SAL_CALL setRadioCheckTextColor(::sal_Int32 _radiochecktextcolor) override
virtual void SAL_CALL setActiveColor(::sal_Int32 _activecolor) override
virtual void SAL_CALL setMenuBarColor(::sal_Int32 _menubarcolor) override
virtual void SAL_CALL setActiveTextColor(::sal_Int32 _activetextcolor) override
virtual void SAL_CALL setFieldTextColor(::sal_Int32 _fieldtextcolor) override
virtual ::sal_Int32 SAL_CALL getWindowTextColor() override
virtual void SAL_CALL setMenuBorderColor(::sal_Int32 _menubordercolor) override
virtual void SAL_CALL setHighlightColor(::sal_Int32 _highlightcolor) override
virtual css::awt::FontDescriptor SAL_CALL getToolFont() override
virtual void SAL_CALL setInactiveTabColor(::sal_Int32 _inactivetabcolor) override
virtual ::sal_Int32 SAL_CALL getDialogTextColor() override
virtual void SAL_CALL setLabelFont(const css::awt::FontDescriptor &_labelfont) override
virtual void SAL_CALL setLightColor(::sal_Int32 _lightcolor) override
virtual ::sal_Int32 SAL_CALL getSeparatorColor() override
virtual void SAL_CALL setFieldRolloverTextColor(::sal_Int32 _fieldrollovertextcolor) override
css::awt::FontDescriptor ImplGetStyleFont(vcl::Font const &(StyleSettings::*i_pGetter)() const) const
virtual ::sal_Int32 SAL_CALL getCheckedColor() override
virtual ::sal_Int32 SAL_CALL getInactiveTabColor() override
virtual void SAL_CALL addStyleChangeListener(const css::uno::Reference< css::awt::XStyleChangeListener > &Listener) override
void ImplSetStyleColor(void(StyleSettings::*i_pSetter)(Color const &), sal_Int32 i_nColor)
virtual css::awt::FontDescriptor SAL_CALL getApplicationFont() override
virtual ::sal_Int32 SAL_CALL getRadioCheckTextColor() override
virtual ::sal_Int32 SAL_CALL getDeactiveColor() override
virtual ::sal_Int32 SAL_CALL getMenuBarTextColor() override
virtual ::sal_Int32 SAL_CALL getWindowColor() override
virtual ::sal_Int32 SAL_CALL getButtonRolloverTextColor() override
virtual ~WindowStyleSettings() override
virtual void SAL_CALL setToolFont(const css::awt::FontDescriptor &_toolfont) override
virtual void SAL_CALL setWindowColor(::sal_Int32 _windowcolor) override
virtual ::sal_Int32 SAL_CALL getMenuTextColor() override
virtual ::sal_Int32 SAL_CALL getLabelTextColor() override
virtual void SAL_CALL setDeactiveBorderColor(::sal_Int32 _deactivebordercolor) override
virtual void SAL_CALL setGroupTextColor(::sal_Int32 _grouptextcolor) override
virtual void SAL_CALL setRadioCheckFont(const css::awt::FontDescriptor &_radiocheckfont) override
virtual ::sal_Int32 SAL_CALL getActiveColor() override
virtual ::sal_Int32 SAL_CALL getDeactiveTextColor() override
virtual void SAL_CALL setMenuTextColor(::sal_Int32 _menutextcolor) override
virtual void SAL_CALL setMonoColor(::sal_Int32 _monocolor) override
virtual css::awt::FontDescriptor SAL_CALL getFieldFont() override
::comphelper::OInterfaceContainerHelper3< css::awt::XStyleChangeListener > aStyleChangeListeners
virtual void SAL_CALL setTitleFont(const css::awt::FontDescriptor &_titlefont) override
sal_Int32 ImplGetStyleColor(Color const &(StyleSettings::*i_pGetter)() const) const
virtual ::sal_Int32 SAL_CALL getHighlightColor() override
virtual void SAL_CALL setLabelTextColor(::sal_Int32 _labeltextcolor) override
void ImplSetStyleFont(void(StyleSettings::*i_pSetter)(vcl::Font const &), vcl::Font const &(StyleSettings::*i_pGetter)() const, const css::awt::FontDescriptor &i_rFont)
virtual sal_Bool SAL_CALL getHighContrastMode() override
virtual void SAL_CALL setDisableColor(::sal_Int32 _disablecolor) override
virtual ::sal_Int32 SAL_CALL getWorkspaceColor() override
virtual ::sal_Int32 SAL_CALL getActiveTextColor() override
virtual css::awt::FontDescriptor SAL_CALL getRadioCheckFont() override
virtual void SAL_CALL setButtonRolloverTextColor(::sal_Int32 _buttonrollovertextcolor) override
virtual ::sal_Int32 SAL_CALL getFieldTextColor() override
virtual ::sal_Int32 SAL_CALL getMenuHighlightColor() override
virtual void SAL_CALL setHelpColor(::sal_Int32 _helpcolor) override
virtual css::awt::FontDescriptor SAL_CALL getMenuFont() override
virtual ::sal_Int32 SAL_CALL getMenuBarColor() override
virtual ::sal_Int32 SAL_CALL getButtonTextColor() override
virtual ::sal_Int32 SAL_CALL getFieldRolloverTextColor() override
virtual void SAL_CALL setButtonTextColor(::sal_Int32 _buttontextcolor) override
virtual void SAL_CALL setMenuHighlightTextColor(::sal_Int32 _menuhighlighttextcolor) override
virtual void SAL_CALL setHelpTextColor(::sal_Int32 _helptextcolor) override
virtual void SAL_CALL setHighlightTextColor(::sal_Int32 _highlighttextcolor) override
virtual void SAL_CALL setDialogTextColor(::sal_Int32 _dialogtextcolor) override
virtual void SAL_CALL setApplicationFont(const css::awt::FontDescriptor &_applicationfont) override
virtual void SAL_CALL setDarkShadowColor(::sal_Int32 _darkshadowcolor) override
virtual void SAL_CALL setFaceColor(::sal_Int32 _facecolor) override
virtual ::sal_Int32 SAL_CALL getShadowColor() override
virtual void SAL_CALL setDeactiveColor(::sal_Int32 _deactivecolor) override
virtual ::sal_Int32 SAL_CALL getMenuHighlightTextColor() override
virtual css::awt::FontDescriptor SAL_CALL getLabelFont() override
virtual ::sal_Int32 SAL_CALL getDarkShadowColor() override
virtual void SAL_CALL setHelpFont(const css::awt::FontDescriptor &_helpfont) override
virtual ::sal_Int32 SAL_CALL getFaceGradientColor() override
virtual void SAL_CALL setFieldColor(::sal_Int32 _fieldcolor) override
virtual void SAL_CALL setWorkspaceColor(::sal_Int32 _workspacecolor) override
virtual void SAL_CALL setActiveTabColor(::sal_Int32 _activetabcolor) override
virtual void SAL_CALL setMenuFont(const css::awt::FontDescriptor &_menufont) override
virtual ::sal_Int32 SAL_CALL getActiveBorderColor() override
virtual css::awt::FontDescriptor SAL_CALL getPushButtonFont() override
virtual void SAL_CALL setGroupFont(const css::awt::FontDescriptor &_groupfont) override
virtual void SAL_CALL setCheckedColor(::sal_Int32 _checkedcolor) override
virtual ::sal_Int32 SAL_CALL getDialogColor() override
virtual void SAL_CALL setMenuHighlightColor(::sal_Int32 _menuhighlightcolor) override
virtual ::sal_Int32 SAL_CALL getMenuBorderColor() override
virtual void SAL_CALL setMenuColor(::sal_Int32 _menucolor) override
virtual ::sal_Int32 SAL_CALL getGroupTextColor() override
virtual ::sal_Int32 SAL_CALL getActiveTabColor() override
virtual ::sal_Int32 SAL_CALL getLightColor() override
WindowStyleSettings(::osl::Mutex &i_rListenerMutex, VCLXWindow &i_rOwningWindow)
virtual void SAL_CALL setPushButtonFont(const css::awt::FontDescriptor &_pushbuttonfont) override
virtual ::sal_Int32 SAL_CALL getMonoColor() override
virtual css::awt::FontDescriptor SAL_CALL getGroupFont() override
virtual void SAL_CALL setFieldFont(const css::awt::FontDescriptor &_fieldfont) override
virtual void SAL_CALL removeStyleChangeListener(const css::uno::Reference< css::awt::XStyleChangeListener > &Listener) override
virtual css::awt::FontDescriptor SAL_CALL getTitleFont() override
virtual css::awt::FontDescriptor SAL_CALL getHelpFont() override
virtual ::sal_Int32 SAL_CALL getDeactiveBorderColor() override
virtual void SAL_CALL setHighContrastMode(sal_Bool _highcontrastmode) override
virtual css::awt::FontDescriptor SAL_CALL getFloatTitleFont() override
virtual void SAL_CALL setFloatTitleFont(const css::awt::FontDescriptor &_floattitlefont) override
virtual ::sal_Int32 SAL_CALL getHelpColor() override
virtual void SAL_CALL setMenuBarTextColor(::sal_Int32 _menubartextcolor) override
virtual ::sal_Int32 SAL_CALL getHighlightTextColor() override
virtual ::sal_Int32 SAL_CALL getMenuColor() override
virtual void SAL_CALL setDeactiveTextColor(::sal_Int32 _deactivetextcolor) override
virtual void SAL_CALL setShadowColor(::sal_Int32 _shadowcolor) override
virtual ::sal_Int32 SAL_CALL getHelpTextColor() override
ColorTransparency
IMPL_LINK(ScrollableDialog, ScrollBarHdl, ScrollBar *, pSB, void)
SolarMutexGuard m_aGuard
unsigned char sal_Bool