mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocDiff application: colored icons
This commit is contained in:
@ -1074,6 +1074,16 @@ void PDFDiffResult::finalize()
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t PDFDiffResult::getTypeFlags(size_t index) const
|
||||
{
|
||||
if (index >= m_differences.size())
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return uint32_t(m_differences[index].type);
|
||||
}
|
||||
|
||||
QString PDFDiffResult::getMessage(size_t index) const
|
||||
{
|
||||
if (index >= m_differences.size())
|
||||
@ -1154,6 +1164,26 @@ PDFInteger PDFDiffResult::getRightPage(size_t index) const
|
||||
return m_differences[index].pageIndex2;
|
||||
}
|
||||
|
||||
bool PDFDiffResult::isPageMoveDifference(size_t index) const
|
||||
{
|
||||
return getTypeFlags(index) & FLAGS_TYPE_PAGE_MOVE;
|
||||
}
|
||||
|
||||
bool PDFDiffResult::isAddDifference(size_t index) const
|
||||
{
|
||||
return getTypeFlags(index) & FLAGS_TYPE_ADD;
|
||||
}
|
||||
|
||||
bool PDFDiffResult::isRemoveDifference(size_t index) const
|
||||
{
|
||||
return getTypeFlags(index) & FLAGS_TYPE_REMOVE;
|
||||
}
|
||||
|
||||
bool PDFDiffResult::isReplaceDifference(size_t index) const
|
||||
{
|
||||
return getTypeFlags(index) & FLAGS_TYPE_REPLACE;
|
||||
}
|
||||
|
||||
PDFDiffResult PDFDiffResult::filter(bool filterPageMoveDifferences,
|
||||
bool filterTextDifferences,
|
||||
bool filterVectorGraphicsDifferences,
|
||||
|
Reference in New Issue
Block a user