drop PrintWindowSubTree that is only callable by itself
Change-Id: I14ec71ca429e60f7e350c92534db6d983a559c61 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112536 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
3e73d34757
commit
843f41917e
@ -10,5 +10,3 @@ sax/source/tools/fastserializer.hxx:184
|
||||
SvTreeListEntry * SvTabListBox::InsertEntryToColumn(const rtl::OUString &,unsigned long,unsigned short,void *)
|
||||
include/vcl/svtabbx.hxx:86
|
||||
|
||||
void sfx2::sidebar::Deck::PrintWindowSubTree(vcl::Window *,int)
|
||||
include/sfx2/sidebar/Deck.hxx:69
|
||||
|
@ -70,8 +70,6 @@ public:
|
||||
|
||||
virtual void DumpAsPropertyTree(tools::JsonWriter&) override;
|
||||
|
||||
static void PrintWindowSubTree(vcl::Window* pRoot, int nIndentation);
|
||||
|
||||
sal_Int32 GetMinimalWidth() const { return mnMinimalWidth; }
|
||||
|
||||
class ScrollContainerWindow final : public vcl::Window
|
||||
|
@ -366,37 +366,6 @@ void Deck::ShowPanel(const Panel& rPanel)
|
||||
-nNewThumbPos));
|
||||
}
|
||||
|
||||
static OUString GetWindowClassification(const vcl::Window* pWindow)
|
||||
{
|
||||
const OUString& rsName (pWindow->GetText());
|
||||
if (!rsName.isEmpty())
|
||||
{
|
||||
return rsName;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "window";
|
||||
}
|
||||
}
|
||||
|
||||
void Deck::PrintWindowSubTree(vcl::Window* pRoot, int nIndentation)
|
||||
{
|
||||
static const char* const sIndentation = " ";
|
||||
const Point aLocation (pRoot->GetPosPixel());
|
||||
const Size aSize (pRoot->GetSizePixel());
|
||||
SAL_INFO(
|
||||
"sfx.sidebar",
|
||||
sIndentation + strlen(sIndentation) - nIndentation * 4 << pRoot << " "
|
||||
<< GetWindowClassification(pRoot) << " "
|
||||
<< (pRoot->IsVisible() ? "visible" : "hidden") << " +"
|
||||
<< aLocation.X() << "+" << aLocation.Y() << " x" << aSize.Width()
|
||||
<< "x" << aSize.Height());
|
||||
|
||||
const sal_uInt16 nChildCount(pRoot->GetChildCount());
|
||||
for (sal_uInt16 nIndex = 0; nIndex < nChildCount; ++nIndex)
|
||||
PrintWindowSubTree(pRoot->GetChild(nIndex), nIndentation + 1);
|
||||
}
|
||||
|
||||
IMPL_LINK_NOARG(Deck, HandleVerticalScrollBarChange, ScrollBar*, void)
|
||||
{
|
||||
const sal_Int32 nYOffset (-mpVerticalScrollBar->GetThumbPos());
|
||||
|
Loading…
x
Reference in New Issue
Block a user