1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SHELL_SOURCE_WIN32_SHLXTHANDLER_PROPSHEETS_LISTVIEWBUILDER_HXX
21 #define INCLUDED_SHELL_SOURCE_WIN32_SHLXTHANDLER_PROPSHEETS_LISTVIEWBUILDER_HXX
24 #pragma warning(push, 1)
33 #include "document_statistic.hxx"
37 class list_view_builder
;
38 typedef std::unique_ptr
<list_view_builder
> list_view_builder_ptr
;
40 // factory method for list_view_builder
41 list_view_builder_ptr
create_list_view_builder(
42 HWND hwnd_lv
, const std::wstring
& col1
, const std::wstring
& col2
);
46 class list_view_builder
49 virtual ~list_view_builder();
51 void build(statistic_group_list_t
& gl
);
56 const std::wstring
& column1_title
,
57 const std::wstring
& column2_title
);
59 virtual void setup_list_view();
60 virtual void insert_group(const std::wstring
& title
);
61 virtual void insert_item(const std::wstring
& title
, const std::wstring
& value
, bool is_editable
);
63 HWND
get_list_view() const;
64 int get_current_row() const;
70 std::wstring column1_title_
;
71 std::wstring column2_title_
;
73 friend list_view_builder_ptr
create_list_view_builder(HWND hwnd_lv
, const std::wstring
& col1
, const std::wstring
& col2
);
78 class winxp_list_view_builder
: public list_view_builder
81 winxp_list_view_builder(
83 const std::wstring
& column1_title
,
84 const std::wstring
& column2_title
);
86 virtual void setup_list_view();
87 virtual void insert_group(const std::wstring
& name
);
88 virtual void insert_item(const std::wstring
& title
, const std::wstring
& value
, bool is_editable
);
94 friend list_view_builder_ptr
create_list_view_builder(HWND hwnd_lv
, const std::wstring
& col1
, const std::wstring
& col2
);
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */