toolbarlayoutmanager.hxx (f8e07b45) | toolbarlayoutmanager.hxx (44e86b95) |
---|---|
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 --- 205 unchanged lines hidden (view full) --- 214 //--------------------------------------------------------------------------------------------------------- 215 bool implts_isParentWindowVisible() const; 216 ::Rectangle implts_calcDockingArea(); 217 void implts_sortUIElements(); 218 void implts_reparentToolbars(); 219 rtl::OUString implts_generateGenericAddonToolbarTitle( sal_Int32 nNumber ) const; 220 void implts_setElementData( UIElement& rUIElement, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDockableWindow >& rDockWindow ); 221 void implts_destroyDockingAreaWindows(); | 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 --- 205 unchanged lines hidden (view full) --- 214 //--------------------------------------------------------------------------------------------------------- 215 bool implts_isParentWindowVisible() const; 216 ::Rectangle implts_calcDockingArea(); 217 void implts_sortUIElements(); 218 void implts_reparentToolbars(); 219 rtl::OUString implts_generateGenericAddonToolbarTitle( sal_Int32 nNumber ) const; 220 void implts_setElementData( UIElement& rUIElement, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDockableWindow >& rDockWindow ); 221 void implts_destroyDockingAreaWindows(); |
222 bool implts_setToolbarVisibility( bool bVisible, UIElement aUIElement ); |
|
222 223 //--------------------------------------------------------------------------------------------------------- 224 // layout methods 225 //--------------------------------------------------------------------------------------------------------- 226 void implts_setDockingAreaWindowSizes( const ::com::sun::star::awt::Rectangle& rBorderSpace ); 227 ::Point implts_findNextCascadeFloatingPos(); 228 void implts_renumberRowColumnData( ::com::sun::star::ui::DockingArea eDockingArea, DockingOperation eDockingOperation, const UIElement& rUIElement ); 229 void implts_calcWindowPosSizeOnSingleRowColumn( sal_Int32 nDockingArea, 230 sal_Int32 nOffset, 231 SingleRowColumnWindowData& rRowColumnWindowData, 232 const ::Size& rContainerSize ); 233 void implts_setLayoutDirty(); 234 void implts_setLayoutInProgress( bool bInProgress = true ); 235 bool implts_isLayoutInProgress() const { return m_bLayoutInProgress; } | 223 224 //--------------------------------------------------------------------------------------------------------- 225 // layout methods 226 //--------------------------------------------------------------------------------------------------------- 227 void implts_setDockingAreaWindowSizes( const ::com::sun::star::awt::Rectangle& rBorderSpace ); 228 ::Point implts_findNextCascadeFloatingPos(); 229 void implts_renumberRowColumnData( ::com::sun::star::ui::DockingArea eDockingArea, DockingOperation eDockingOperation, const UIElement& rUIElement ); 230 void implts_calcWindowPosSizeOnSingleRowColumn( sal_Int32 nDockingArea, 231 sal_Int32 nOffset, 232 SingleRowColumnWindowData& rRowColumnWindowData, 233 const ::Size& rContainerSize ); 234 void implts_setLayoutDirty(); 235 void implts_setLayoutInProgress( bool bInProgress = true ); 236 bool implts_isLayoutInProgress() const { return m_bLayoutInProgress; } |
236 | 237 |
237 //--------------------------------------------------------------------------------------------------------- 238 // lookup/container methods 239 //--------------------------------------------------------------------------------------------------------- 240 UIElement implts_findToolbar( const rtl::OUString& aName ); 241 UIElement implts_findToolbar( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xToolbar ); 242 UIElement& impl_findToolbar( const rtl::OUString& aName ); 243 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > implts_getXWindow( const ::rtl::OUString& aName ); 244 Window* implts_getWindow( const ::rtl::OUString& aName ); 245 bool implts_insertToolbar( const UIElement& rUIElement ); 246 void implts_setToolbar( const UIElement& rUIElement ); 247 ::Size implts_getTopBottomDockingAreaSizes(); 248 void implts_getUIElementVectorCopy( UIElementVector& rCopy ); | 238 //--------------------------------------------------------------------------------------------------------- 239 // lookup/container methods 240 //--------------------------------------------------------------------------------------------------------- 241 UIElement implts_findToolbar( const rtl::OUString& aName ); 242 UIElement implts_findToolbar( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xToolbar ); 243 UIElement& impl_findToolbar( const rtl::OUString& aName ); 244 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > implts_getXWindow( const ::rtl::OUString& aName ); 245 Window* implts_getWindow( const ::rtl::OUString& aName ); 246 bool implts_insertToolbar( const UIElement& rUIElement ); 247 void implts_setToolbar( const UIElement& rUIElement ); 248 ::Size implts_getTopBottomDockingAreaSizes(); 249 void implts_getUIElementVectorCopy( UIElementVector& rCopy ); |
249 | 250 |
250 //--------------------------------------------------------------------------------------------------------- 251 // internal docking methods 252 //--------------------------------------------------------------------------------------------------------- 253 ::Rectangle implts_calcHotZoneRect( const ::Rectangle& rRect, sal_Int32 nHotZoneOffset ); 254 void implts_calcDockingPosSize( UIElement& aUIElement, DockingOperation& eDockOperation, ::Rectangle& rTrackingRect, const Point& rMousePos ); 255 DockingOperation implts_determineDockingOperation( ::com::sun::star::ui::DockingArea DockingArea, const ::Rectangle& rRowColRect, const Point& rMousePos ); 256 ::Rectangle implts_getWindowRectFromRowColumn( ::com::sun::star::ui::DockingArea DockingArea, const SingleRowColumnWindowData& rRowColumnWindowData, const ::Point& rMousePos, const rtl::OUString& rExcludeElementName ); 257 ::Rectangle implts_determineFrontDockingRect( ::com::sun::star::ui::DockingArea eDockingArea, 258 sal_Int32 nRowCol, 259 const ::Rectangle& rDockedElementRect, 260 const ::rtl::OUString& rMovedElementName, 261 const ::Rectangle& rMovedElementRect ); 262 ::Rectangle implts_calcTrackingAndElementRect( ::com::sun::star::ui::DockingArea eDockingArea, 263 sal_Int32 nRowCol, 264 UIElement& rUIElement, 265 const ::Rectangle& rTrackingRect, 266 const ::Rectangle& rRowColumnRect, 267 const ::Size& rContainerWinSize ); | 251 //--------------------------------------------------------------------------------------------------------- 252 // internal docking methods 253 //--------------------------------------------------------------------------------------------------------- 254 ::Rectangle implts_calcHotZoneRect( const ::Rectangle& rRect, sal_Int32 nHotZoneOffset ); 255 void implts_calcDockingPosSize( UIElement& aUIElement, DockingOperation& eDockOperation, ::Rectangle& rTrackingRect, const Point& rMousePos ); 256 DockingOperation implts_determineDockingOperation( ::com::sun::star::ui::DockingArea DockingArea, const ::Rectangle& rRowColRect, const Point& rMousePos ); 257 ::Rectangle implts_getWindowRectFromRowColumn( ::com::sun::star::ui::DockingArea DockingArea, const SingleRowColumnWindowData& rRowColumnWindowData, const ::Point& rMousePos, const rtl::OUString& rExcludeElementName ); 258 ::Rectangle implts_determineFrontDockingRect( ::com::sun::star::ui::DockingArea eDockingArea, 259 sal_Int32 nRowCol, 260 const ::Rectangle& rDockedElementRect, 261 const ::rtl::OUString& rMovedElementName, 262 const ::Rectangle& rMovedElementRect ); 263 ::Rectangle implts_calcTrackingAndElementRect( ::com::sun::star::ui::DockingArea eDockingArea, 264 sal_Int32 nRowCol, 265 UIElement& rUIElement, 266 const ::Rectangle& rTrackingRect, 267 const ::Rectangle& rRowColumnRect, 268 const ::Size& rContainerWinSize ); |
268 | 269 |
269 void implts_getDockingAreaElementInfos( ::com::sun::star::ui::DockingArea DockingArea, std::vector< SingleRowColumnWindowData >& rRowColumnsWindowData ); 270 void implts_getDockingAreaElementInfoOnSingleRowCol( ::com::sun::star::ui::DockingArea, sal_Int32 nRowCol, SingleRowColumnWindowData& rRowColumnWindowData ); 271 void implts_findNextDockingPos( ::com::sun::star::ui::DockingArea DockingArea, const ::Size& aUIElementSize, ::Point& rVirtualPos, ::Point& rPixelPos ); 272 void implts_setTrackingRect( ::com::sun::star::ui::DockingArea eDockingArea, const ::Point& rMousePos, ::Rectangle& rTrackingRect ); | 270 void implts_getDockingAreaElementInfos( ::com::sun::star::ui::DockingArea DockingArea, std::vector< SingleRowColumnWindowData >& rRowColumnsWindowData ); 271 void implts_getDockingAreaElementInfoOnSingleRowCol( ::com::sun::star::ui::DockingArea, sal_Int32 nRowCol, SingleRowColumnWindowData& rRowColumnWindowData ); 272 void implts_findNextDockingPos( ::com::sun::star::ui::DockingArea DockingArea, const ::Size& aUIElementSize, ::Point& rVirtualPos, ::Point& rPixelPos ); 273 void implts_setTrackingRect( ::com::sun::star::ui::DockingArea eDockingArea, const ::Point& rMousePos, ::Rectangle& rTrackingRect ); |
273 | 274 |
274 //--------------------------------------------------------------------------------------------------------- 275 // creation methods 276 //--------------------------------------------------------------------------------------------------------- 277 void implts_createAddonsToolBars(); 278 void implts_createCustomToolBars(); 279 void implts_createNonContextSensitiveToolBars(); 280 void implts_createCustomToolBars( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > >& aCustomTbxSeq ); 281 void implts_createCustomToolBar( const rtl::OUString& aTbxResName, const rtl::OUString& aTitle ); 282 void implts_createToolBar( const ::rtl::OUString& aName, bool& bNotify, ::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement >& rUIElement ); 283 css::uno::Reference< css::ui::XUIElement > implts_createElement( const ::rtl::OUString& aName ); 284 void implts_setToolbarCreation( bool bStart = true ); 285 bool implts_isToolbarCreationActive(); | 275 //--------------------------------------------------------------------------------------------------------- 276 // creation methods 277 //--------------------------------------------------------------------------------------------------------- 278 void implts_createAddonsToolBars(); 279 void implts_createCustomToolBars(); 280 void implts_createNonContextSensitiveToolBars(); 281 void implts_createCustomToolBars( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > >& aCustomTbxSeq ); 282 void implts_createCustomToolBar( const rtl::OUString& aTbxResName, const rtl::OUString& aTitle ); 283 void implts_createToolBar( const ::rtl::OUString& aName, bool& bNotify, ::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement >& rUIElement ); 284 css::uno::Reference< css::ui::XUIElement > implts_createElement( const ::rtl::OUString& aName ); 285 void implts_setToolbarCreation( bool bStart = true ); 286 bool implts_isToolbarCreationActive(); |
286 | 287 |
287 //--------------------------------------------------------------------------------------------------------- 288 // persistence methods 289 //--------------------------------------------------------------------------------------------------------- 290 sal_Bool implts_readWindowStateData( const rtl::OUString& aName, UIElement& rElementData ); 291 void implts_writeWindowStateData( const UIElement& rElementData ); 292 void implts_writeNewWindowStateData( const rtl::OUString aName, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& xWindow ); | 288 //--------------------------------------------------------------------------------------------------------- 289 // persistence methods 290 //--------------------------------------------------------------------------------------------------------- 291 sal_Bool implts_readWindowStateData( const rtl::OUString& aName, UIElement& rElementData ); 292 void implts_writeWindowStateData( const UIElement& rElementData ); 293 void implts_writeNewWindowStateData( const rtl::OUString aName, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& xWindow ); |
293 | 294 |
294 //--------------------------------------------------------------------------------------------------------- 295 // members 296 //--------------------------------------------------------------------------------------------------------- 297 css::uno::Reference< css::lang::XMultiServiceFactory > m_xSMGR; 298 css::uno::Reference< css::frame::XFrame > m_xFrame; 299 css::uno::Reference< css::awt::XWindow2 > m_xContainerWindow; 300 css::uno::Reference< css::awt::XWindow > m_xDockAreaWindows[DOCKINGAREAS_COUNT]; 301 css::uno::Reference< ::com::sun::star::ui::XUIElementFactory > m_xUIElementFactoryManager; --- 36 unchanged lines hidden --- | 295 //--------------------------------------------------------------------------------------------------------- 296 // members 297 //--------------------------------------------------------------------------------------------------------- 298 css::uno::Reference< css::lang::XMultiServiceFactory > m_xSMGR; 299 css::uno::Reference< css::frame::XFrame > m_xFrame; 300 css::uno::Reference< css::awt::XWindow2 > m_xContainerWindow; 301 css::uno::Reference< css::awt::XWindow > m_xDockAreaWindows[DOCKINGAREAS_COUNT]; 302 css::uno::Reference< ::com::sun::star::ui::XUIElementFactory > m_xUIElementFactoryManager; --- 36 unchanged lines hidden --- |