moduleuiconfigurationmanager.cxx (07a3d7f1) moduleuiconfigurationmanager.cxx (7a164331)
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

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

841 aResourceType = PresetHandler::RESOURCETYPE_TOOLBAR();
842 else if ( i == ::com::sun::star::ui::UIElementType::STATUSBAR )
843 aResourceType = PresetHandler::RESOURCETYPE_STATUSBAR();
844
845 if ( aResourceType.getLength() > 0 )
846 {
847 m_pStorageHandler[i] = new PresetHandler( m_xServiceManager );
848 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

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

841 aResourceType = PresetHandler::RESOURCETYPE_TOOLBAR();
842 else if ( i == ::com::sun::star::ui::UIElementType::STATUSBAR )
843 aResourceType = PresetHandler::RESOURCETYPE_STATUSBAR();
844
845 if ( aResourceType.getLength() > 0 )
846 {
847 m_pStorageHandler[i] = new PresetHandler( m_xServiceManager );
848 m_pStorageHandler[i]->connectToResource( PresetHandler::E_MODULES,
849 aResourceType, // this path wont be used later ... seee next lines!
849 aResourceType, // this path won't be used later ... see next lines!
850 m_aModuleShortName,
851 css::uno::Reference< css::embed::XStorage >()); // no document root used here!
852 }
853 }
854
855 // initialize root storages for all resource types
856 m_xUserRootCommit = css::uno::Reference< css::embed::XTransactedObject >(
857 m_pStorageHandler[::com::sun::star::ui::UIElementType::MENUBAR]->getOrCreateRootStorageUser(), css::uno::UNO_QUERY); // can be empty

--- 765 unchanged lines hidden ---
850 m_aModuleShortName,
851 css::uno::Reference< css::embed::XStorage >()); // no document root used here!
852 }
853 }
854
855 // initialize root storages for all resource types
856 m_xUserRootCommit = css::uno::Reference< css::embed::XTransactedObject >(
857 m_pStorageHandler[::com::sun::star::ui::UIElementType::MENUBAR]->getOrCreateRootStorageUser(), css::uno::UNO_QUERY); // can be empty

--- 765 unchanged lines hidden ---