summaryrefslogtreecommitdiff
path: root/include/svtools/breadcrumb.hxx
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-06-10 15:55:01 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-07-16 09:52:54 +0200
commit9d552ef119ab83d1b8f9ebf9655d8b4188e5f792 (patch)
tree9af40173f9e29a77e41818835c86876c4707ff7d /include/svtools/breadcrumb.hxx
parent795b14d1a4aed8725ccea4d3ddf3cc90c9e5807d (diff)
the breadcrumb class moved to the new file
Change-Id: I283080522090766682b1d6c7911466898b11758a
Diffstat (limited to 'include/svtools/breadcrumb.hxx')
-rw-r--r--include/svtools/breadcrumb.hxx52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/svtools/breadcrumb.hxx b/include/svtools/breadcrumb.hxx
new file mode 100644
index 000000000000..86be5d207875
--- /dev/null
+++ b/include/svtools/breadcrumb.hxx
@@ -0,0 +1,52 @@
+/* -*- 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/.
+ */
+
+#ifndef INCLUDED_SVTOOLS_BREADCRUMB_HXX
+#define INCLUDED_SVTOOLS_BREADCRUMB_HXX
+
+#include <svtools/svtdllapi.h>
+
+#include <tools/urlobj.hxx>
+
+#include <vcl/fixedhyper.hxx>
+#include <vcl/layout.hxx>
+
+#include <vector>
+
+class SVT_DLLPUBLIC Breadcrumb : public VclHBox
+{
+ private:
+ std::vector< VclPtr< FixedHyperlink > > m_aLinks;
+ std::vector< VclPtr< FixedText > > m_aSeparators;
+
+ OUString m_sRootName;
+ OUString m_sClickedURL;
+
+ Link<> m_aClickHdl;
+
+ void appendField();
+
+ DECL_LINK ( ClickLinkHdl, FixedHyperlink* );
+
+ public:
+ Breadcrumb( vcl::Window* pParent, WinBits nWinStyle = 0 );
+ ~Breadcrumb();
+
+ void dispose();
+
+ void SetClickHdl( const Link<>& rLink );
+ OUString GetHdlURL();
+
+ void SetRootName( const OUString& rURL );
+ void SetURL( const OUString& rURL );
+};
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */