Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: printing/page_number.h

Issue 7799003: Add printing.dll to the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/metafile_skia_wrapper.h ('k') | printing/page_range.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_PAGE_NUMBER_H_ 5 #ifndef PRINTING_PAGE_NUMBER_H_
6 #define PRINTING_PAGE_NUMBER_H_ 6 #define PRINTING_PAGE_NUMBER_H_
7 7
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "printing/page_range.h" 10 #include "printing/page_range.h"
11 11
12 namespace printing { 12 namespace printing {
13 13
14 class PrintSettings; 14 class PrintSettings;
15 15
16 // Represents a page series following the array of page ranges defined in a 16 // Represents a page series following the array of page ranges defined in a
17 // PrintSettings. 17 // PrintSettings.
18 class PageNumber { 18 class PRINTING_EXPORT PageNumber {
19 public: 19 public:
20 // Initializes the page to the first page in the settings's range or 0. 20 // Initializes the page to the first page in the settings's range or 0.
21 PageNumber(const PrintSettings& settings, int document_page_count); 21 PageNumber(const PrintSettings& settings, int document_page_count);
22 22
23 PageNumber(); 23 PageNumber();
24 24
25 void operator=(const PageNumber& other); 25 void operator=(const PageNumber& other);
26 26
27 // Initializes the page to the first page in the setting's range or 0. It 27 // Initializes the page to the first page in the setting's range or 0. It
28 // initialize to npos if the range is empty and document_page_count is 0. 28 // initialize to npos if the range is empty and document_page_count is 0.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Debug output support. 64 // Debug output support.
65 template<class E, class T> 65 template<class E, class T>
66 inline typename std::basic_ostream<E,T>& operator<<( 66 inline typename std::basic_ostream<E,T>& operator<<(
67 typename std::basic_ostream<E,T>& ss, const PageNumber& page) { 67 typename std::basic_ostream<E,T>& ss, const PageNumber& page) {
68 return ss << page.ToInt(); 68 return ss << page.ToInt();
69 } 69 }
70 70
71 } // namespace printing 71 } // namespace printing
72 72
73 #endif // PRINTING_PAGE_NUMBER_H_ 73 #endif // PRINTING_PAGE_NUMBER_H_
OLDNEW
« no previous file with comments | « printing/metafile_skia_wrapper.h ('k') | printing/page_range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698