newhelp.cxx (d119d52d) newhelp.cxx (ef785786)
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

--- 3159 unchanged lines hidden (view full) ---

3168 {
3169 Reference < XController > xController = pTextWin->getFrame()->getController();
3170 if ( xController.is() )
3171 {
3172 Reference < XViewSettingsSupplier > xSettings( xController, UNO_QUERY );
3173 Reference < XPropertySet > xViewProps = xSettings->getViewSettings();
3174 Reference< XPropertySetInfo > xInfo = xViewProps->getPropertySetInfo();
3175 Any aBoolAny = makeAny( sal_Bool( sal_True ) );
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

--- 3159 unchanged lines hidden (view full) ---

3168 {
3169 Reference < XController > xController = pTextWin->getFrame()->getController();
3170 if ( xController.is() )
3171 {
3172 Reference < XViewSettingsSupplier > xSettings( xController, UNO_QUERY );
3173 Reference < XPropertySet > xViewProps = xSettings->getViewSettings();
3174 Reference< XPropertySetInfo > xInfo = xViewProps->getPropertySetInfo();
3175 Any aBoolAny = makeAny( sal_Bool( sal_True ) );
3176 xViewProps->setPropertyValue( DEFINE_CONST_OUSTRING("PreventHelpTips"), aBoolAny );
3176 xViewProps->setPropertyValue( DEFINE_CONST_OUSTRING("ShowContentTips"), makeAny( sal_Bool( sal_False ) ) );
3177 xViewProps->setPropertyValue( DEFINE_CONST_OUSTRING("ShowGraphics"), aBoolAny );
3178 xViewProps->setPropertyValue( DEFINE_CONST_OUSTRING("ShowTables"), aBoolAny );
3179 xViewProps->setPropertyValue( DEFINE_CONST_OUSTRING("HelpURL"), makeAny( DEFINE_CONST_OUSTRING("HID:SFX2_HID_HELP_ONHELP") ) );
3180 ::rtl::OUString sProperty( DEFINE_CONST_OUSTRING("IsExecuteHyperlinks") );
3181 if ( xInfo->hasPropertyByName( sProperty ) )
3182 xViewProps->setPropertyValue( sProperty, aBoolAny );
3183 xController->restoreViewData(pHelpInterceptor->GetViewData());
3184 }

--- 304 unchanged lines hidden ---
3177 xViewProps->setPropertyValue( DEFINE_CONST_OUSTRING("ShowGraphics"), aBoolAny );
3178 xViewProps->setPropertyValue( DEFINE_CONST_OUSTRING("ShowTables"), aBoolAny );
3179 xViewProps->setPropertyValue( DEFINE_CONST_OUSTRING("HelpURL"), makeAny( DEFINE_CONST_OUSTRING("HID:SFX2_HID_HELP_ONHELP") ) );
3180 ::rtl::OUString sProperty( DEFINE_CONST_OUSTRING("IsExecuteHyperlinks") );
3181 if ( xInfo->hasPropertyByName( sProperty ) )
3182 xViewProps->setPropertyValue( sProperty, aBoolAny );
3183 xController->restoreViewData(pHelpInterceptor->GetViewData());
3184 }

--- 304 unchanged lines hidden ---