bookctrl.cxx (efeef26f) | bookctrl.cxx (dec99bbd) |
---|---|
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 --- 114 unchanged lines hidden (view full) --- 123void SwBookmarkControl::Command( const CommandEvent& rCEvt ) 124{ 125 if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU && 126 GetStatusBar().GetItemText( GetId() ).Len() ) 127 { 128 CaptureMouse(); 129 BookmarkPopup_Impl aPop; 130 SwWrtShell* pWrtShell = ::GetActiveWrtShell(); | 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 --- 114 unchanged lines hidden (view full) --- 123void SwBookmarkControl::Command( const CommandEvent& rCEvt ) 124{ 125 if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU && 126 GetStatusBar().GetItemText( GetId() ).Len() ) 127 { 128 CaptureMouse(); 129 BookmarkPopup_Impl aPop; 130 SwWrtShell* pWrtShell = ::GetActiveWrtShell(); |
131 if( pWrtShell && pWrtShell->getIDocumentMarkAccess()->getMarksCount() > 0 ) | 131 if( pWrtShell && pWrtShell->getIDocumentMarkAccess()->getAllMarksCount() > 0 ) |
132 { 133 IDocumentMarkAccess* const pMarkAccess = pWrtShell->getIDocumentMarkAccess(); 134 IDocumentMarkAccess::const_iterator_t ppBookmarkStart = pMarkAccess->getBookmarksBegin(); 135 sal_uInt16 nPopupId = 1; 136 ::std::map<sal_Int32, sal_uInt16> aBookmarkIdx; 137 for(IDocumentMarkAccess::const_iterator_t ppBookmark = ppBookmarkStart; 138 ppBookmark != pMarkAccess->getBookmarksEnd(); 139 ppBookmark++) --- 21 unchanged lines hidden --- | 132 { 133 IDocumentMarkAccess* const pMarkAccess = pWrtShell->getIDocumentMarkAccess(); 134 IDocumentMarkAccess::const_iterator_t ppBookmarkStart = pMarkAccess->getBookmarksBegin(); 135 sal_uInt16 nPopupId = 1; 136 ::std::map<sal_Int32, sal_uInt16> aBookmarkIdx; 137 for(IDocumentMarkAccess::const_iterator_t ppBookmark = ppBookmarkStart; 138 ppBookmark != pMarkAccess->getBookmarksEnd(); 139 ppBookmark++) --- 21 unchanged lines hidden --- |