blob: 147fa71f361f7f6ad0ffc522843a5342974faa37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PRINTING_PAGE_RANGE_H__
#define CHROME_BROWSER_PRINTING_PAGE_RANGE_H__
#include <vector>
namespace printing {
struct PageRange;
typedef std::vector<PageRange> PageRanges;
// Print range is inclusive. To select one page, set from == to.
struct PageRange {
int from;
int to;
bool operator==(const PageRange& rhs) const {
return from == rhs.from && to == rhs.to;
}
// Retrieves the sorted list of unique pages in the page ranges.
static std::vector<int> GetPages(const PageRanges& ranges);
};
} // namespace printing
#endif // CHROME_BROWSER_PRINTING_PAGE_RANGE_H__
|