Lines Matching refs:pStatusbar
106 static void lcl_CreateStatusbarItem( StatusBar* pStatusbar, in lcl_CreateStatusbarItem() argument
111 pStatusbar->InsertItem( nItemId, in lcl_CreateStatusbarItem()
116 pStatusbar->SetItemCommand( nItemId, rAddonItem.aCommandURL ); in lcl_CreateStatusbarItem()
117 pStatusbar->SetQuickHelpText( nItemId, rAddonItem.aLabel ); in lcl_CreateStatusbarItem()
118 pStatusbar->SetAccessibleName( nItemId, rAddonItem.aLabel ); in lcl_CreateStatusbarItem()
124 pStatusbar->SetItemData( nItemId, pUserData ); in lcl_CreateStatusbarItem()
127 static bool lcl_MergeItems( StatusBar* pStatusbar, in lcl_MergeItems() argument
143 if ( nInsPos > pStatusbar->GetItemCount() ) in lcl_MergeItems()
146 lcl_CreateStatusbarItem( pStatusbar, nInsPos, rItemId, rItem ); in lcl_MergeItems()
153 static bool lcl_ReplaceItem( StatusBar* pStatusbar, in lcl_ReplaceItem() argument
159 pStatusbar->RemoveItem( pStatusbar->GetItemId( nPos ) ); in lcl_ReplaceItem()
160 return lcl_MergeItems( pStatusbar, nPos, 0, rItemId, rModuleIdentifier, rAddonToolbarItems ); in lcl_ReplaceItem()
163 static bool lcl_RemoveItems( StatusBar* pStatusbar, in lcl_RemoveItems() argument
172 if ( nPos < pStatusbar->GetItemCount() ) in lcl_RemoveItems()
173 pStatusbar->RemoveItem( nPos ); in lcl_RemoveItems()
203 StatusBar* pStatusbar, in FindReferencePos() argument
206 for ( sal_uInt16 nPos = 0; nPos < pStatusbar->GetItemCount(); nPos++ ) in FindReferencePos()
208 const ::rtl::OUString rCmd = pStatusbar->GetItemCommand( pStatusbar->GetItemId( nPos ) ); in FindReferencePos()
217 StatusBar* pStatusbar, in ProcessMergeOperation() argument
226 return lcl_MergeItems( pStatusbar, nPos, 1, rItemId, rModuleIdentifier, rItems ); in ProcessMergeOperation()
228 return lcl_MergeItems( pStatusbar, nPos, 0, rItemId, rModuleIdentifier, rItems ); in ProcessMergeOperation()
230 return lcl_ReplaceItem( pStatusbar, nPos, rItemId, rModuleIdentifier, rItems ); in ProcessMergeOperation()
232 return lcl_RemoveItems( pStatusbar, nPos, rMergeCommandParameter ); in ProcessMergeOperation()
238 StatusBar* pStatusbar, in ProcessMergeFallback() argument
257 return lcl_MergeItems( pStatusbar, 0, 0, rItemId, rModuleIdentifier, rItems ); in ProcessMergeFallback()
259 … return lcl_MergeItems( pStatusbar, STATUSBAR_APPEND, 0, rItemId, rModuleIdentifier, rItems ); in ProcessMergeFallback()