summaryrefslogtreecommitdiff
path: root/poppler/StructTreeRoot.h
AgeCommit message (Collapse)AuthorFilesLines
2019-03-28Use the newly introduced Ref::INVALID()Albert Astals Cid1-2/+2
2018-12-06Remove the file gtypes.h completelyOliver Sander1-1/+0
2018-11-09Pass small and trivially-copyable type by valueAlbert Astals Cid1-1/+1
2018-10-10Remove usage of pragmas interface and implementationAdam Reichold1-4/+0
GCC recommends not using them for a long time and its documentation says: > These #pragmas have been superceded as of GCC 2.7.2 by COMDAT support > and the “key method” heuristic mentioned in Vague Linkage. > Using them can actually cause your program to grow due to > unnecessary out-of-line copies of inline functions. Also nobody seems to set USE_GCC_PRAGMAS and sometimes they were guarded by just __GNUC__ which upsets Clang.
2018-10-05Some more NULL to nullptrAlbert Astals Cid1-3/+3
2018-09-19Update (C)Albert Astals Cid1-0/+1
2018-09-17Fix TODO in OCGs by creating a look-up table from Ref to ↵Adam Reichold1-1/+1
OptionalContentGroup (and make Ref a regular type to do so).
2018-03-18Update copyrightsAlbert Astals Cid1-0/+1
2018-01-09Fix another clazy rule-of-three warningAlbert Astals Cid1-4/+2
We can just use the default copy assignemnt and constructor for Parent
2018-01-08Run clang-tidy with modernize nullptrAlbert Astals Cid1-1/+1
Also add two enum values in the qt5 frontend to representate no flags Also mark glib/gtk/cairo system includes so that gcc doesn't report the issues in those headers
2018-01-08Delete lots of copy constructors and copy assignment operatorsAlbert Astals Cid1-0/+4
Fixes rule-of-three and copyable-polymorphic warnings reported by clazy. The default copy constructor and copy assignment operator are only valid for simple classes so we delete them (i.e. make then not exist) when we have either a virtual class or a destructor, the code still compiles so this doesn't fix any bug, it is more a protection for when you think you can copy a class and don't realize the default copy constrcutor is not doing what you want and you get crashes. Hopefully this helps us in the future :)
2018-01-04Fix some bugs in StructTreeRoot parsing of parent treeAdrian Johnson1-4/+10
- Add support for parsing child nodes in the number tree - Number tree keys do not have to be consecutive numbers. Use map instead of vector for parentTree. - Due to performance impact of iterating a map instead of vector in parentTreeAdd, add a reverse mapping from Ref to parentTree. - Add mcid parameter to findParentElement() to enable finding the parent when there are multiple MCIDs on the same page. - Move RefCompare from pdfinfo.cc to Object.h so it can be used by other files. Bug #103912
2014-03-270.25.2poppler-0.25.2Albert Astals Cid1-1/+1
2014-03-05Rename getNumElements, getElement and appendElement as getNumChildren, ↵Carlos Garcia Campos1-4/+4
getChild and appendChild It's more consistent with other internal API and less confusing.
2013-10-02Tagged-PDF: Implement parsing of StructTreeRootAdrian Perez de Castro1-0/+83
Implement parsing of the StructTreeRoot entry of the Catalog. Also, the Catalog::getStructTreeRoot() and PDFDoc::getStructTreeRoot() methods are modified to return an instance of StructTreeRoot instead of an Object. All elements from the StructTreeRoot are parsed except for: - IDTree: it is a lookup tree to locate items by their ID, which would be barely useful because the whole structure tree is to be kept in memory, which should be fast enough to traverse. - ParentTreeNextKey: This is needed only when the ParentTree object is to be modified. For the moment the implementation deals only with reading, so this has been deliberately left out. StructElem tree nodes from the document structure tree are parsed as a StructElement instance. Attributes and extraction of content out from elements are not yet handled. https://bugs.freedesktop.org/show_bug.cgi?id=64815