diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-10-29 17:16:10 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-10-29 17:19:33 +0200 |
commit | 5eb7692ab845a879d265b2e4df48cb7e4536da33 (patch) | |
tree | 57b8a8d15f20dd0d045b5ed71f90d138f2a44882 /basctl/source/inc/objdlg.hxx | |
parent | ee73a6c5573391f5f8e2f100f8392c34d6c61344 (diff) |
tdf#95416: Get rid of #include "../foo/bar.hxx" style includes
Sample commit of what should be done, for the basctl module.
Change-Id: Ied47ea3129844179f2624c6870c05e48540fd0f6
Diffstat (limited to 'basctl/source/inc/objdlg.hxx')
-rw-r--r-- | basctl/source/inc/objdlg.hxx | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/basctl/source/inc/objdlg.hxx b/basctl/source/inc/objdlg.hxx new file mode 100644 index 000000000000..3263f777b463 --- /dev/null +++ b/basctl/source/inc/objdlg.hxx @@ -0,0 +1,61 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_BASCTL_SOURCE_INC_OBJDLG_HXX +#define INCLUDED_BASCTL_SOURCE_INC_OBJDLG_HXX + +#include "bastype2.hxx" +#include "bastypes.hxx" + +#include <vcl/fixed.hxx> + +namespace basctl +{ + + +// ObjectCatalog -- a docking window that contains the currently loaded macros +// in a tree structure. + +class ObjectCatalog : public DockingWindow +{ +public: + explicit ObjectCatalog(vcl::Window* pParent); + virtual ~ObjectCatalog(); + virtual void dispose() override; +public: + void UpdateEntries () { aTree->UpdateEntries(); } + void SetCurrentEntry (BaseWindow* pCurWin); + +private: + // title: "Object Catalog" + VclPtr<FixedText> aTitle; + // the tree-list of the objects + VclPtr<TreeListBox> aTree; + +private: + virtual void Resize () override; // Window + virtual void ToggleFloatingMode () override; // DockingWindow + void ArrangeWindows (); +}; + +} // namespace basctl + +#endif // INCLUDED_BASCTL_SOURCE_INC_OBJDLG_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |