uiconfigurationmanagerimpl.cxx (07a3d7f1) | uiconfigurationmanagerimpl.cxx (9f813b30) |
---|---|
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 --- 803 unchanged lines hidden (view full) --- 812 aResourceType = PresetHandler::RESOURCETYPE_TOOLBAR(); 813 else if ( i == ::com::sun::star::ui::UIElementType::STATUSBAR ) 814 aResourceType = PresetHandler::RESOURCETYPE_STATUSBAR(); 815 816 if ( aResourceType.getLength() > 0 ) 817 { 818 m_pStorageHandler[i] = new PresetHandler( m_xServiceManager ); 819 m_pStorageHandler[i]->connectToResource( PresetHandler::E_MODULES, | 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 --- 803 unchanged lines hidden (view full) --- 812 aResourceType = PresetHandler::RESOURCETYPE_TOOLBAR(); 813 else if ( i == ::com::sun::star::ui::UIElementType::STATUSBAR ) 814 aResourceType = PresetHandler::RESOURCETYPE_STATUSBAR(); 815 816 if ( aResourceType.getLength() > 0 ) 817 { 818 m_pStorageHandler[i] = new PresetHandler( m_xServiceManager ); 819 m_pStorageHandler[i]->connectToResource( PresetHandler::E_MODULES, |
820 aResourceType, // this path wont be used later ... seee next lines! | 820 aResourceType, // this path won't be used later ... see next lines! |
821 m_aModuleShortName, 822 css::uno::Reference< css::embed::XStorage >()); // no document root used here! 823 } 824 } 825 826 // initialize root storages for all resource types 827 m_xUserRootCommit = css::uno::Reference< css::embed::XTransactedObject >( 828 m_pStorageHandler[::com::sun::star::ui::UIElementType::MENUBAR]->getOrCreateRootStorageUser(), css::uno::UNO_QUERY); // can be empty --- 625 unchanged lines hidden (view full) --- 1454 aResourceType = PresetHandler::RESOURCETYPE_TOOLBAR(); 1455 else if ( i == ::com::sun::star::ui::UIElementType::STATUSBAR ) 1456 aResourceType = PresetHandler::RESOURCETYPE_STATUSBAR(); 1457 1458 //if ( aResourceType.getLength() > 0 ) 1459 { 1460 m_pStorageHandler[i] = new PresetHandler( m_xServiceManager ); 1461 m_pStorageHandler[i]->connectToResource( PresetHandler::E_DOCUMENT, | 821 m_aModuleShortName, 822 css::uno::Reference< css::embed::XStorage >()); // no document root used here! 823 } 824 } 825 826 // initialize root storages for all resource types 827 m_xUserRootCommit = css::uno::Reference< css::embed::XTransactedObject >( 828 m_pStorageHandler[::com::sun::star::ui::UIElementType::MENUBAR]->getOrCreateRootStorageUser(), css::uno::UNO_QUERY); // can be empty --- 625 unchanged lines hidden (view full) --- 1454 aResourceType = PresetHandler::RESOURCETYPE_TOOLBAR(); 1455 else if ( i == ::com::sun::star::ui::UIElementType::STATUSBAR ) 1456 aResourceType = PresetHandler::RESOURCETYPE_STATUSBAR(); 1457 1458 //if ( aResourceType.getLength() > 0 ) 1459 { 1460 m_pStorageHandler[i] = new PresetHandler( m_xServiceManager ); 1461 m_pStorageHandler[i]->connectToResource( PresetHandler::E_DOCUMENT, |
1462 rtl::OUString::createFromAscii( UIELEMENTTYPENAMES[i] ), // this path wont be used later ... seee next lines! | 1462 rtl::OUString::createFromAscii( UIELEMENTTYPENAMES[i] ), // this path won't be used later ... see next lines! |
1463 sEmpty, 1464 m_xUserConfigStorage); 1465 } 1466 } 1467 Reference< XPropertySet > xPropSet( m_xUserConfigStorage, UNO_QUERY ); 1468 if ( xPropSet.is() ) 1469 { 1470 try --- 236 unchanged lines hidden --- | 1463 sEmpty, 1464 m_xUserConfigStorage); 1465 } 1466 } 1467 Reference< XPropertySet > xPropSet( m_xUserConfigStorage, UNO_QUERY ); 1468 if ( xPropSet.is() ) 1469 { 1470 try --- 236 unchanged lines hidden --- |