uiconfigurationmanager.hxx (f8e07b45) | uiconfigurationmanager.hxx (5758ad8c) |
---|---|
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 --- 138 unchanged lines hidden (view full) --- 147 rtl::OUString aName; 148 bool bModified; // has been changed since last storing 149 bool bDefault; // default settings 150 com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > xSettings; 151 }; 152 153 struct UIElementType; 154 friend struct UIElementType; | 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 --- 138 unchanged lines hidden (view full) --- 147 rtl::OUString aName; 148 bool bModified; // has been changed since last storing 149 bool bDefault; // default settings 150 com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > xSettings; 151 }; 152 153 struct UIElementType; 154 friend struct UIElementType; |
155 typedef ::std::hash_map< rtl::OUString, UIElementData, OUStringHashCode, ::std::equal_to< rtl::OUString > > UIElementDataHashMap; | 155 typedef ::std::hash_map< rtl::OUString, UIElementData, rtl::OUStringHash, ::std::equal_to< rtl::OUString > > UIElementDataHashMap; |
156 157 struct UIElementType 158 { 159 UIElementType() : bModified( false ), 160 bLoaded( false ), 161 bDefaultLayer( false ), 162 nElementType( ::com::sun::star::ui::UIElementType::UNKNOWN ) {} 163 164 165 bool bModified; 166 bool bLoaded; 167 bool bDefaultLayer; 168 sal_Int16 nElementType; 169 UIElementDataHashMap aElementsHashMap; 170 com::sun::star::uno::Reference< com::sun::star::embed::XStorage > xStorage; 171 }; 172 173 typedef ::std::vector< UIElementType > UIElementTypesVector; 174 typedef ::std::vector< ::com::sun::star::ui::ConfigurationEvent > ConfigEventNotifyContainer; | 156 157 struct UIElementType 158 { 159 UIElementType() : bModified( false ), 160 bLoaded( false ), 161 bDefaultLayer( false ), 162 nElementType( ::com::sun::star::ui::UIElementType::UNKNOWN ) {} 163 164 165 bool bModified; 166 bool bLoaded; 167 bool bDefaultLayer; 168 sal_Int16 nElementType; 169 UIElementDataHashMap aElementsHashMap; 170 com::sun::star::uno::Reference< com::sun::star::embed::XStorage > xStorage; 171 }; 172 173 typedef ::std::vector< UIElementType > UIElementTypesVector; 174 typedef ::std::vector< ::com::sun::star::ui::ConfigurationEvent > ConfigEventNotifyContainer; |
175 typedef ::std::hash_map< rtl::OUString, UIElementInfo, OUStringHashCode, ::std::equal_to< rtl::OUString > > UIElementInfoHashMap; | 175 typedef ::std::hash_map< rtl::OUString, UIElementInfo, rtl::OUStringHash, ::std::equal_to< rtl::OUString > > UIElementInfoHashMap; |
176 177 // private methods 178 void impl_Initialize(); 179 void implts_notifyContainerListener( const ::com::sun::star::ui::ConfigurationEvent& aEvent, NotifyOp eOp ); 180 void impl_fillSequenceWithElementTypeInfo( UIElementInfoHashMap& aUIElementInfoCollection, sal_Int16 nElementType ); 181 void impl_preloadUIElementTypeList( sal_Int16 nElementType ); 182 UIElementData* impl_findUIElementData( const rtl::OUString& aResourceURL, sal_Int16 nElementType, bool bLoad = true ); 183 void impl_requestUIElementData( sal_Int16 nElementType, UIElementData& aUIElementData ); --- 23 unchanged lines hidden --- | 176 177 // private methods 178 void impl_Initialize(); 179 void implts_notifyContainerListener( const ::com::sun::star::ui::ConfigurationEvent& aEvent, NotifyOp eOp ); 180 void impl_fillSequenceWithElementTypeInfo( UIElementInfoHashMap& aUIElementInfoCollection, sal_Int16 nElementType ); 181 void impl_preloadUIElementTypeList( sal_Int16 nElementType ); 182 UIElementData* impl_findUIElementData( const rtl::OUString& aResourceURL, sal_Int16 nElementType, bool bLoad = true ); 183 void impl_requestUIElementData( sal_Int16 nElementType, UIElementData& aUIElementData ); --- 23 unchanged lines hidden --- |