SidebarToolBox.cxx (7a32b0c8) | SidebarToolBox.cxx (ee093554) |
---|---|
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 --- 74 unchanged lines hidden (view full) --- 83 84 85 86 87void SidebarToolBox::Paint (const Rectangle& rRect) 88{ 89 ToolBox::Paint(rRect); 90 | 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 --- 74 unchanged lines hidden (view full) --- 83 84 85 86 87void SidebarToolBox::Paint (const Rectangle& rRect) 88{ 89 ToolBox::Paint(rRect); 90 |
91 OSL_TRACE("paint ToolBox at %d,%d", 92 GetPosPixel().X(), 93 GetPosPixel().Y()); 94 | |
95 if (Theme::GetBoolean(Theme::Bool_UseToolBoxItemSeparator)) 96 { 97 const sal_Int32 nSeparatorY ((GetSizePixel().Height() - maItemSeparator.GetSizePixel().Height())/2); 98 const sal_uInt16 nItemCount (GetItemCount()); 99 int nLastRight (-1); 100 for (sal_uInt16 nIndex=0; nIndex<nItemCount; ++nIndex) 101 { 102 const Rectangle aItemBoundingBox (GetItemPosRect(nIndex)); --- 61 unchanged lines hidden --- | 91 if (Theme::GetBoolean(Theme::Bool_UseToolBoxItemSeparator)) 92 { 93 const sal_Int32 nSeparatorY ((GetSizePixel().Height() - maItemSeparator.GetSizePixel().Height())/2); 94 const sal_uInt16 nItemCount (GetItemCount()); 95 int nLastRight (-1); 96 for (sal_uInt16 nIndex=0; nIndex<nItemCount; ++nIndex) 97 { 98 const Rectangle aItemBoundingBox (GetItemPosRect(nIndex)); --- 61 unchanged lines hidden --- |