[Libreoffice-commits] .: Branch 'integration/dev300_m98' - vcl/inc vcl/source
Michael Meeks
mmeeks at kemper.freedesktop.org
Thu Feb 17 01:37:00 PST 2011
vcl/inc/vcl/window.hxx | 15 +++++++++
vcl/source/window/menu.cxx | 8 ----
vcl/source/window/printdlg.cxx | 68 -----------------------------------------
vcl/source/window/window.cxx | 8 ----
4 files changed, 15 insertions(+), 84 deletions(-)
New commits:
commit a218de7e54724c91172f64fd1b29827296492b07
Author: Michael Meeks <michael.meeks at novell.com>
Date: Thu Feb 17 09:36:05 2011 +0000
vcl compiles and links, fixing misc. merge conflicts
diff --git a/vcl/inc/vcl/window.hxx b/vcl/inc/vcl/window.hxx
index 577ed08..06c54c9 100755
--- a/vcl/inc/vcl/window.hxx
+++ b/vcl/inc/vcl/window.hxx
@@ -1102,6 +1102,21 @@ public:
*/
void doLazyDelete();
+ //-------------------------------------
+ // Keyboard access functions
+ //-------------------------------------
+
+ /** Query the states of keyboard indicators - Caps Lock, Num Lock and
+ Scroll Lock. Use the following mask to retrieve the state of each
+ indicator:
+
+ INDICATOR_CAPS_LOCK
+ INDICATOR_NUM_LOCK
+ INDICATOR_SCROLL_LOCK
+ */
+ USHORT GetIndicatorState() const;
+ void SimulateKeyPress( USHORT nKeyCode ) const;
+
// let the window intercept the KeyDown messages of the system children
void InterceptChildWindowKeyDown( sal_Bool bIntercept );
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index aee50dd..9383a94 100755
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -1098,12 +1098,7 @@ void Menu::Deactivate()
}
if( !aDelData.isDeleted() )
- {
bInCallback = FALSE;
-
- if ( this == pStartMenu )
- GetpApp()->HideHelpStatusText();
- }
}
void Menu::Highlight()
@@ -1116,9 +1111,6 @@ void Menu::Highlight()
if ( pStartMenu && ( pStartMenu != this ) )
pStartMenu->aHighlightHdl.Call( this );
}
-
- if ( !aDelData.isDeleted() && GetCurItemId() )
- GetpApp()->ShowHelpStatusText( GetHelpText( GetCurItemId() ) );
}
void Menu::ImplSelect()
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 6b537d2..004ea62 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -83,77 +83,11 @@ PrintDialog::PrintPreviewWindow::~PrintPreviewWindow()
{
}
-bool PrintDialog::PrintPreviewWindow::useHCColorReplacement() const
-{
- bool bRet = false;
- if( GetSettings().GetStyleSettings().GetHighContrastMode() )
- {
- try
- {
- // get service provider
- Reference< XMultiServiceFactory > xSMgr( unohelper::GetMultiServiceFactory() );
- // create configuration hierachical access name
- if( xSMgr.is() )
- {
- try
- {
- Reference< XMultiServiceFactory > xConfigProvider(
- Reference< XMultiServiceFactory >(
- xSMgr->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.configuration.ConfigurationProvider" ))),
- UNO_QUERY )
- );
- if( xConfigProvider.is() )
- {
- Sequence< Any > aArgs(1);
- PropertyValue aVal;
- aVal.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) );
- aVal.Value <<= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/org.openoffice.Office.Common/Accessibility" ) );
- aArgs.getArray()[0] <<= aVal;
- Reference< XNameAccess > xConfigAccess(
- Reference< XNameAccess >(
- xConfigProvider->createInstanceWithArguments( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.configuration.ConfigurationAccess" )),
- aArgs ),
- UNO_QUERY )
- );
- if( xConfigAccess.is() )
- {
- try
- {
- sal_Bool bValue = sal_False;
- Any aAny = xConfigAccess->getByName( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsForPagePreviews" ) ) );
- if( aAny >>= bValue )
- bRet = bool(bValue);
- }
- catch( NoSuchElementException& )
- {
- }
- catch( WrappedTargetException& )
- {
- }
- }
- }
- }
- catch( Exception& )
- {
- }
- }
- }
- catch( WrappedTargetException& )
- {
- }
- }
- return bRet;
-}
-
void PrintDialog::PrintPreviewWindow::DataChanged( const DataChangedEvent& i_rDCEvt )
{
// react on settings changed
if( i_rDCEvt.GetType() == DATACHANGED_SETTINGS )
- {
maPageVDev.SetBackground( Color( COL_WHITE ) );
- }
Window::DataChanged( i_rDCEvt );
}
@@ -604,9 +538,7 @@ PrintDialog::JobTabPage::JobTabPage( Window* i_pParent, const ResId& rResId )
, maCollateBox( this, VclResId( SV_PRINT_COLLATE ) )
, maCollateImage( this, VclResId( SV_PRINT_COLLATE_IMAGE ) )
, maCollateImg( VclResId( SV_PRINT_COLLATE_IMG ) )
- , maCollateHCImg( VclResId( SV_PRINT_COLLATE_HC_IMG ) )
, maNoCollateImg( VclResId( SV_PRINT_NOCOLLATE_IMG ) )
- , maNoCollateHCImg( VclResId( SV_PRINT_NOCOLLATE_HC_IMG ) )
, mnCollateUIMode( 0 )
{
FreeResource();
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index f332f31..c9e0c14 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -517,14 +517,6 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, BOOL bCallHdl )
}
}
}
-
- static const char* pEnvHC = getenv( "SAL_FORCE_HC" );
- if( pEnvHC && *pEnvHC )
- {
- aStyleSettings.SetHighContrastMode( TRUE );
- aStyleSettings.SetSymbolsStyle( STYLE_SYMBOLS_HICONTRAST );
- rSettings.SetStyleSettings( aStyleSettings );
- }
static const char* pEnvHC = getenv( "SAL_FORCE_HC" );
if( pEnvHC && *pEnvHC )
More information about the Libreoffice-commits
mailing list