uiconfigurationmanagerimpl.hxx (67e470da) uiconfigurationmanagerimpl.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

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

149 bool bModified; // has been changed since last storing
150 bool bDefault; // default settings
151 bool bDefaultNode; // this is a default layer element data
152 com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > xSettings;
153 };
154
155 struct UIElementType;
156 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

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

149 bool bModified; // has been changed since last storing
150 bool bDefault; // default settings
151 bool bDefaultNode; // this is a default layer element data
152 com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > xSettings;
153 };
154
155 struct UIElementType;
156 friend struct UIElementType;
157 typedef ::std::hash_map< rtl::OUString, UIElementData, OUStringHashCode, ::std::equal_to< rtl::OUString > > UIElementDataHashMap;
157 typedef ::std::hash_map< rtl::OUString, UIElementData, rtl::OUStringHash, ::std::equal_to< rtl::OUString > > UIElementDataHashMap;
158
159 struct UIElementType
160 {
161 UIElementType() : bModified( false ),
162 bLoaded( false ),
163 bDefaultLayer( false ),
164 nElementType( ::com::sun::star::ui::UIElementType::UNKNOWN ) {}
165
166
167 bool bModified;
168 bool bLoaded;
169 bool bDefaultLayer;
170 sal_Int16 nElementType;
171 UIElementDataHashMap aElementsHashMap;
172 com::sun::star::uno::Reference< com::sun::star::embed::XStorage > xStorage;
173 };
174
175 typedef ::std::vector< UIElementType > UIElementTypesVector;
176 typedef ::std::vector< ::com::sun::star::ui::ConfigurationEvent > ConfigEventNotifyContainer;
158
159 struct UIElementType
160 {
161 UIElementType() : bModified( false ),
162 bLoaded( false ),
163 bDefaultLayer( false ),
164 nElementType( ::com::sun::star::ui::UIElementType::UNKNOWN ) {}
165
166
167 bool bModified;
168 bool bLoaded;
169 bool bDefaultLayer;
170 sal_Int16 nElementType;
171 UIElementDataHashMap aElementsHashMap;
172 com::sun::star::uno::Reference< com::sun::star::embed::XStorage > xStorage;
173 };
174
175 typedef ::std::vector< UIElementType > UIElementTypesVector;
176 typedef ::std::vector< ::com::sun::star::ui::ConfigurationEvent > ConfigEventNotifyContainer;
177 typedef ::std::hash_map< rtl::OUString, UIElementInfo, OUStringHashCode, ::std::equal_to< rtl::OUString > > UIElementInfoHashMap;
177 typedef ::std::hash_map< rtl::OUString, UIElementInfo, rtl::OUStringHash, ::std::equal_to< rtl::OUString > > UIElementInfoHashMap;
178
179 // private methods
180 void impl_Initialize();
181 void implts_notifyContainerListener( const ::com::sun::star::ui::ConfigurationEvent& aEvent, NotifyOp eOp );
182 void impl_fillSequenceWithElementTypeInfo( UIElementInfoHashMap& aUIElementInfoCollection, sal_Int16 nElementType );
183 void impl_preloadUIElementTypeList( Layer eLayer, sal_Int16 nElementType );
184 UIElementData* impl_findUIElementData( const rtl::OUString& aResourceURL, sal_Int16 nElementType, bool bLoad = true );
185 void impl_requestUIElementData( sal_Int16 nElementType, Layer eLayer, UIElementData& aUIElementData );

--- 29 unchanged lines hidden ---
178
179 // private methods
180 void impl_Initialize();
181 void implts_notifyContainerListener( const ::com::sun::star::ui::ConfigurationEvent& aEvent, NotifyOp eOp );
182 void impl_fillSequenceWithElementTypeInfo( UIElementInfoHashMap& aUIElementInfoCollection, sal_Int16 nElementType );
183 void impl_preloadUIElementTypeList( Layer eLayer, sal_Int16 nElementType );
184 UIElementData* impl_findUIElementData( const rtl::OUString& aResourceURL, sal_Int16 nElementType, bool bLoad = true );
185 void impl_requestUIElementData( sal_Int16 nElementType, Layer eLayer, UIElementData& aUIElementData );

--- 29 unchanged lines hidden ---