14d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Copyright 2016 PDFium Authors. All rights reserved.
24d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Use of this source code is governed by a BSD-style license that can be
34d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// found in the LICENSE file.
44d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
54d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
64d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
74d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#ifndef CORE_FPDFDOC_CLINES_H_
84d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#define CORE_FPDFDOC_CLINES_H_
94d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
104d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include <stdint.h>
114d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
124d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fpdfdoc/cpvt_arraytemplate.h"
134d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fpdfdoc/cpvt_lineinfo.h"
144d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
154d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmannclass CLine;
164d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
174d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmannclass CLines final {
184d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann public:
194d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  CLines();
204d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  ~CLines();
214d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
224d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  int32_t GetSize() const;
234d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  CLine* GetAt(int32_t nIndex) const;
244d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
254d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  void Empty();
264d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  void RemoveAll();
274d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  int32_t Add(const CPVT_LineInfo& lineinfo);
284d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  void Clear();
294d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
304d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann private:
314d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  CPVT_ArrayTemplate<CLine*> m_Lines;
324d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann  int32_t m_nTotal;
334d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann};
344d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann
354d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#endif  // CORE_FPDFDOC_CLINES_H_
36