Permalink
Cannot retrieve contributors at this time
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?
CSE3150_Project/DocumentParagraph.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (34 sloc)
893 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 */ |