Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
/**
* DocumentParagraph.h
*
* Author: Jamey Calabrese
*/
#ifndef DOCUMENT_PARAGRAPH_H
#define DOCUMENT_PARAGRAPH_H
#include "DocumentRow.h"
#include <vector>
#include <memory>
class DocumentParagraph
{
public:
DocumentParagraph(int maxWidth, int maxHeight);
DocumentParagraph(int maxWidth, int maxHeight, DocumentParagraph &dp);
~DocumentParagraph();
void SetParagraphNumber(int pNum);
int GetParagraphNumber();
int GetActualLineCount();
int GetLineCount();
int GetLineLength(int lineNum);
int GetRowFromGridCol(int &col);
int TranslateCol(int row, int col);
std::string GetLine(int lineNumber);
std::string GetString();
bool AppendWord(std::shared_ptr<std::string> word);
private:
int maxWidth;
int maxHeight;
std::shared_ptr<std::vector<std::shared_ptr<DocumentRow>>> dRows;
int leadingRow;
int pNum;
};
#endif /* DOCUMENT_PARAGRAPH_H */