bindings.cxx (d119d52d) bindings.cxx (5d65efa0)
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

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

1030void SfxBindings::Register( SfxControllerItem& rItem )
1031{
1032 Register_Impl( rItem, sal_False );
1033}
1034
1035void SfxBindings::Register_Impl( SfxControllerItem& rItem, sal_Bool bInternal )
1036{
1037 DBG_MEMTEST();
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

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

1030void SfxBindings::Register( SfxControllerItem& rItem )
1031{
1032 Register_Impl( rItem, sal_False );
1033}
1034
1035void SfxBindings::Register_Impl( SfxControllerItem& rItem, sal_Bool bInternal )
1036{
1037 DBG_MEMTEST();
1038 DBG_ASSERT( nRegLevel > 0, "registration without EnterRegistrations" );
1038 // DBG_ASSERT( nRegLevel > 0, "registration without EnterRegistrations" );
1039 DBG_ASSERT( !pImp->bInNextJob, "SfxBindings::Register while status-updating" );
1040
1041 // insert new cache if it does not already exist
1042 sal_uInt16 nId = rItem.GetId();
1043 sal_uInt16 nPos = GetSlotPos(nId);
1044 if ( nPos >= pImp->pCaches->Count() ||
1045 (*pImp->pCaches)[nPos]->GetId() != nId )
1046 {

--- 1376 unchanged lines hidden ---
1039 DBG_ASSERT( !pImp->bInNextJob, "SfxBindings::Register while status-updating" );
1040
1041 // insert new cache if it does not already exist
1042 sal_uInt16 nId = rItem.GetId();
1043 sal_uInt16 nPos = GetSlotPos(nId);
1044 if ( nPos >= pImp->pCaches->Count() ||
1045 (*pImp->pCaches)[nPos]->GetId() != nId )
1046 {

--- 1376 unchanged lines hidden ---