Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Okular
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joao Oliveira
Okular
Commits
4072eb0c
Commit
4072eb0c
authored
Mar 02, 2017
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add override
parent
b50aff3e
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
193 additions
and
193 deletions
+193
-193
core/action.h
core/action.h
+17
-17
core/annotations.h
core/annotations.h
+26
-26
core/area.h
core/area.h
+5
-5
core/documentcommands_p.h
core/documentcommands_p.h
+30
-30
core/generator_p.h
core/generator_p.h
+3
-3
core/textdocumentgenerator.h
core/textdocumentgenerator.h
+12
-12
core/textdocumentgenerator_p.h
core/textdocumentgenerator_p.h
+2
-2
extensions.h
extensions.h
+5
-5
generators/chm/kio-msits/msits.h
generators/chm/kio-msits/msits.h
+3
-3
generators/djvu/kdjvu.h
generators/djvu/kdjvu.h
+8
-8
generators/dvi/TeXFont_PFB.h
generators/dvi/TeXFont_PFB.h
+1
-1
generators/dvi/TeXFont_PK.h
generators/dvi/TeXFont_PK.h
+1
-1
generators/dvi/TeXFont_TFM.h
generators/dvi/TeXFont_TFM.h
+1
-1
generators/dvi/dviexport.h
generators/dvi/dviexport.h
+2
-2
generators/dvi/generator_dvi.h
generators/dvi/generator_dvi.h
+9
-9
generators/epub/generator_epub.h
generators/epub/generator_epub.h
+1
-1
generators/fictionbook/converter.h
generators/fictionbook/converter.h
+1
-1
generators/kimgio/generator_kimgio.h
generators/kimgio/generator_kimgio.h
+6
-6
generators/ooo/converter.h
generators/ooo/converter.h
+1
-1
generators/poppler/formfields.h
generators/poppler/formfields.h
+30
-30
generators/poppler/popplerembeddedfile.h
generators/poppler/popplerembeddedfile.h
+6
-6
generators/spectre/rendererthread.h
generators/spectre/rendererthread.h
+1
-1
mobile/components/documentitem.h
mobile/components/documentitem.h
+1
-1
mobile/components/okularplugin.h
mobile/components/okularplugin.h
+1
-1
mobile/components/pageitem.h
mobile/components/pageitem.h
+2
-2
ui/findbar.h
ui/findbar.h
+1
-1
ui/formwidgets.h
ui/formwidgets.h
+15
-15
ui/ktreeviewsearchline.h
ui/ktreeviewsearchline.h
+1
-1
ui/layers.h
ui/layers.h
+1
-1
No files found.
core/action.h
View file @
4072eb0c
...
...
@@ -142,12 +142,12 @@ class OKULARCORE_EXPORT GotoAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
/**
* Returns the action tip.
*/
QString
actionTip
()
const
;
QString
actionTip
()
const
override
;
/**
* Returns whether the goto action points to an external document.
...
...
@@ -198,12 +198,12 @@ class OKULARCORE_EXPORT ExecuteAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
/**
* Returns the action tip.
*/
QString
actionTip
()
const
;
QString
actionTip
()
const
override
;
/**
* Returns the file name of the application to execute.
...
...
@@ -242,12 +242,12 @@ class OKULARCORE_EXPORT BrowseAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
/**
* Returns the action tip.
*/
QString
actionTip
()
const
;
QString
actionTip
()
const
override
;
/**
* Returns the url to browse.
...
...
@@ -301,12 +301,12 @@ class OKULARCORE_EXPORT DocumentAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
/**
* Returns the action tip.
*/
QString
actionTip
()
const
;
QString
actionTip
()
const
override
;
/**
* Returns the type of action.
...
...
@@ -343,12 +343,12 @@ class OKULARCORE_EXPORT SoundAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
/**
* Returns the action tip.
*/
QString
actionTip
()
const
;
QString
actionTip
()
const
override
;
/**
* Returns the volume of the sound.
...
...
@@ -403,12 +403,12 @@ class OKULARCORE_EXPORT ScriptAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
/**
* Returns the action tip.
*/
QString
actionTip
()
const
;
QString
actionTip
()
const
override
;
/**
* Returns the type of action.
...
...
@@ -456,12 +456,12 @@ class OKULARCORE_EXPORT MovieAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
/**
* Returns the action tip.
*/
QString
actionTip
()
const
;
QString
actionTip
()
const
override
;
/**
* Returns the operation type.
...
...
@@ -521,12 +521,12 @@ class OKULARCORE_EXPORT RenditionAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
/**
* Returns the action tip.
*/
QString
actionTip
()
const
;
QString
actionTip
()
const
override
;
/**
* Returns the operation type.
...
...
@@ -571,7 +571,7 @@ class OKULARCORE_EXPORT BackendOpaqueAction : public Action
/**
* Returns the action type.
*/
ActionType
actionType
()
const
;
ActionType
actionType
()
const
override
;
private:
Q_DISABLE_COPY
(
BackendOpaqueAction
)
...
...
core/annotations.h
View file @
4072eb0c
...
...
@@ -843,12 +843,12 @@ class OKULARCORE_EXPORT TextAnnotation : public Annotation
/**
* Returns the sub type of the text annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the text annotation as xml in @p document under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
TextAnnotation
)
...
...
@@ -1003,12 +1003,12 @@ class OKULARCORE_EXPORT LineAnnotation : public Annotation
/**
* Returns the sub type of the line annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the line annotation as xml in @p document under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
LineAnnotation
)
...
...
@@ -1064,13 +1064,13 @@ class OKULARCORE_EXPORT GeomAnnotation : public Annotation
/**
* Returns the sub type of the geometrical annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the geometrical annotation as xml in @p document
* under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
GeomAnnotation
)
...
...
@@ -1207,13 +1207,13 @@ class OKULARCORE_EXPORT HighlightAnnotation : public Annotation
/**
* Returns the sub type of the highlight annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the highlight annotation as xml in @p document
* under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
HighlightAnnotation
)
...
...
@@ -1251,13 +1251,13 @@ class OKULARCORE_EXPORT StampAnnotation : public Annotation
/**
* Returns the sub type of the stamp annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the stamp annotation as xml in @p document
* under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
StampAnnotation
)
...
...
@@ -1301,13 +1301,13 @@ class OKULARCORE_EXPORT InkAnnotation : public Annotation
/**
* Returns the sub type of the ink annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the ink annotation as xml in @p document
* under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
InkAnnotation
)
...
...
@@ -1354,13 +1354,13 @@ class OKULARCORE_EXPORT CaretAnnotation : public Annotation
/**
* Returns the sub type of the caret annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the caret annotation as xml in @p document
* under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
CaretAnnotation
)
...
...
@@ -1407,13 +1407,13 @@ class OKULARCORE_EXPORT FileAttachmentAnnotation : public Annotation
/**
* Returns the sub type of the file attachment annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the file attachment annotation as xml in @p document
* under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
FileAttachmentAnnotation
)
...
...
@@ -1467,13 +1467,13 @@ class OKULARCORE_EXPORT SoundAnnotation : public Annotation
/**
* Returns the sub type of the sound annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the sound annotation as xml in @p document
* under the given parent @p node.
*/
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
node
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
SoundAnnotation
)
...
...
@@ -1513,12 +1513,12 @@ class OKULARCORE_EXPORT MovieAnnotation : public Annotation
/**
* Returns the sub type of the movie annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the movie annotation as xml in @p document
* under the given @p parentNode.
*/
void
store
(
QDomNode
&
parentNode
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
parentNode
,
QDomDocument
&
document
)
const
override
;
private:
Q_DECLARE_PRIVATE
(
MovieAnnotation
)
...
...
@@ -1554,13 +1554,13 @@ class OKULARCORE_EXPORT ScreenAnnotation : public Annotation
/**
* Returns the sub type of the screen annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the screen annotation as xml in @p document
* under the given @p parentNode.
*/
void
store
(
QDomNode
&
parentNode
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
parentNode
,
QDomDocument
&
document
)
const
override
;
/**
* Sets the @p action that is executed when the annotation is triggered.
...
...
@@ -1623,13 +1623,13 @@ class OKULARCORE_EXPORT WidgetAnnotation : public Annotation
/**
* Returns the sub type of the widget annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the widget annotation as xml in @p document
* under the given @p parentNode.
*/
void
store
(
QDomNode
&
parentNode
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
parentNode
,
QDomDocument
&
document
)
const
override
;
/**
* Sets the additional @p action of the given @p type.
...
...
@@ -1678,13 +1678,13 @@ class OKULARCORE_EXPORT RichMediaAnnotation : public Annotation
/**
* Returns the sub type of the rich media annotation.
*/
SubType
subType
()
const
;
SubType
subType
()
const
override
;
/**
* Stores the rich media annotation as xml in @p document
* under the given @p parentNode.
*/
void
store
(
QDomNode
&
parentNode
,
QDomDocument
&
document
)
const
;
void
store
(
QDomNode
&
parentNode
,
QDomDocument
&
document
)
const
override
;
/**
* Gets the movie object.
...
...
core/area.h
View file @
4072eb0c
...
...
@@ -452,18 +452,18 @@ class OKULARCORE_EXPORT AnnotationObjectRect : public ObjectRect
* Returns the bounding rect of the annotation object rectangle for the
* scaling factor @p xScale and @p yScale.
*/
virtual
QRect
boundingRect
(
double
xScale
,
double
yScale
)
const
;
QRect
boundingRect
(
double
xScale
,
double
yScale
)
const
override
;
/**
* Returns whether the annotation object rectangle contains the point @p x, @p y for the
* scaling factor @p xScale and @p yScale.
*/
virtual
bool
contains
(
double
x
,
double
y
,
double
xScale
,
double
yScale
)
const
;
bool
contains
(
double
x
,
double
y
,
double
xScale
,
double
yScale
)
const
override
;
/**
* Transforms the annotation object rectangle with the operations defined by @p matrix.
*/
v
irtual
void
transform
(
const
QTransform
&
matrix
)
;
v
oid
transform
(
const
QTransform
&
matrix
)
override
;
private:
Annotation
*
m_annotation
;
...
...
@@ -489,13 +489,13 @@ class OKULARCORE_EXPORT SourceRefObjectRect : public ObjectRect
* Returns the bounding rect of the source reference object rectangle for the
* scaling factor @p xScale and @p yScale.
*/
virtual
QRect
boundingRect
(
double
xScale
,
double
yScale
)
const
;
QRect
boundingRect
(
double
xScale
,
double
yScale
)
const
override
;
/**
* Returns whether the source reference object rectangle contains the point @p x, @p y for the
* scaling factor @p xScale and @p yScale.
*/
virtual
bool
contains
(
double
x
,
double
y
,
double
xScale
,
double
yScale
)
const
;
bool
contains
(
double
x
,
double
y
,
double
xScale
,
double
yScale
)
const
override
;
private:
NormalizedPoint
m_point
;
...
...
core/documentcommands_p.h
View file @
4072eb0c
...
...
@@ -31,9 +31,9 @@ class AddAnnotationCommand : public QUndoCommand
virtual
~
AddAnnotationCommand
();
v
irtual
void
undo
()
;
v
oid
undo
()
override
;
v
irtual
void
redo
()
;
v
oid
redo
()
override
;
private:
Okular
::
DocumentPrivate
*
m_docPriv
;
...
...
@@ -47,8 +47,8 @@ class RemoveAnnotationCommand : public QUndoCommand
public:
RemoveAnnotationCommand
(
Okular
::
DocumentPrivate
*
doc
,
Okular
::
Annotation
*
annotation
,
int
pageNumber
);
virtual
~
RemoveAnnotationCommand
();
v
irtual
void
undo
()
;
v
irtual
void
redo
()
;
v
oid
undo
()
override
;
v
oid
redo
()
override
;
private:
Okular
::
DocumentPrivate
*
m_docPriv
;
...
...
@@ -65,8 +65,8 @@ class ModifyAnnotationPropertiesCommand : public QUndoCommand
QDomNode
oldProperties
,
QDomNode
newProperties
);
v
irtual
void
undo
()
;
v
irtual
void
redo
()
;
v
oid
undo
()
override
;
v
oid
redo
()
override
;
private:
Okular
::
DocumentPrivate
*
m_docPriv
;
...
...
@@ -85,10 +85,10 @@ class TranslateAnnotationCommand : public QUndoCommand
const
Okular
::
NormalizedPoint
&
delta
,
bool
completeDrag
);
v
irtual
void
undo
()
;
v
irtual
void
redo
()
;
virtual
int
id
()
const
;
virtual
bool
mergeWith
(
const
QUndoCommand
*
uc
)
;
v
oid
undo
()
override
;
v
oid
redo
()
override
;
int
id
()
const
override
;
bool
mergeWith
(
const
QUndoCommand
*
uc
)
override
;
Okular
::
NormalizedPoint
minusDelta
();
Okular
::
NormalizedRect
translateBoundingRectangle
(
const
Okular
::
NormalizedPoint
&
delta
);
...
...
@@ -110,10 +110,10 @@ class EditTextCommand : public QUndoCommand
int
prevAnchorPos
);
v
irtual
void
undo
()
=
0
;
v
irtual
void
redo
()
=
0
;
virtual
int
id
()
const
=
0
;
virtual
bool
mergeWith
(
const
QUndoCommand
*
uc
)
;
v
oid
undo
()
override
=
0
;
v
oid
redo
()
override
=
0
;
int
id
()
const
override
=
0
;
bool
mergeWith
(
const
QUndoCommand
*
uc
)
override
;
private:
enum
EditType
{
...
...
@@ -151,10 +151,10 @@ class EditAnnotationContentsCommand : public EditTextCommand
int
prevAnchorPos
);
v
irtual
void
undo
()
;
v
irtual
void
redo
()
;
virtual
int
id
()
const
;
virtual
bool
mergeWith
(
const
QUndoCommand
*
uc
)
;
v
oid
undo
()
override
;
v
oid
redo
()
override
;
int
id
()
const
override
;
bool
mergeWith
(
const
QUndoCommand
*
uc
)
override
;
private:
Okular
::
DocumentPrivate
*
m_docPriv
;
...
...
@@ -173,10 +173,10 @@ class EditFormTextCommand : public EditTextCommand
const
QString
&
prevContents
,
int
prevCursorPos
,
int
prevAnchorPos
);
v
irtual
void
undo
()
;
v
irtual
void
redo
()
;
virtual
int
id
()
const
;
virtual
bool
mergeWith
(
const
QUndoCommand
*
uc
)
;
v
oid
undo
()
override
;
v
oid
redo
()
override
;
int
id
()
const
override
;
bool
mergeWith
(
const
QUndoCommand
*
uc
)
override
;
private:
Okular
::
DocumentPrivate
*
m_docPriv
;
Okular
::
FormFieldText
*
m_form
;
...
...
@@ -193,8 +193,8 @@ class EditFormListCommand : public QUndoCommand
const
QList
<
int
>
&
prevChoices
);
v
irtual
void
undo
()
;
v
irtual
void
redo
()
;
v
oid
undo
()
override
;
v
oid
redo
()
override
;
private:
Okular
::
DocumentPrivate
*
m_docPriv
;
...
...
@@ -217,10 +217,10 @@ class EditFormComboCommand : public EditTextCommand
int
prevAnchorPos
);
v
irtual
void
undo
()
;
v
irtual
void
redo
()
;
virtual
int
id
()
const
;
virtual
bool
mergeWith
(
const
QUndoCommand
*
uc
)
;
v
oid
undo
()
override
;
v
oid
redo
()
override
;
int
id
()
const
override
;
bool
mergeWith
(
const
QUndoCommand
*
uc
)
override
;
private:
Okular
::
DocumentPrivate
*
m_docPriv
;
...
...
@@ -239,8 +239,8 @@ class EditFormButtonsCommand : public QUndoCommand
const
QList
<
bool
>
&
newButtonStates
);
v
irtual
void
undo
()
;
v
irtual
void
redo
()
;
v
oid
undo
()
override
;
v
oid
redo
()
override
;
private:
void
clearFormButtonStates
();
...
...
core/generator_p.h
View file @
4072eb0c
...
...
@@ -106,7 +106,7 @@ class PixmapGenerationThread : public QThread
NormalizedRect
boundingBox
()
const
;
protected:
v
irtual
void
run
()
;
v
oid
run
()
override
;
private:
Generator
*
mGenerator
;
...
...
@@ -133,7 +133,7 @@ class TextPageGenerationThread : public QThread
TextPage
*
textPage
()
const
;
protected:
v
irtual
void
run
()
;
v
oid
run
()
override
;
private:
Generator
*
mGenerator
;
...
...
@@ -156,7 +156,7 @@ class FontExtractionThread : public QThread
void
progress
(
int
page
);
protected:
v
irtual
void
run
()
;
v
oid
run
()
override
;
private:
Generator
*
mGenerator
;
...
...
core/textdocumentgenerator.h
View file @
4072eb0c
...
...
@@ -174,24 +174,24 @@ class OKULARCORE_EXPORT TextDocumentGenerator : public Generator, public Okular:
virtual
~
TextDocumentGenerator
();
// [INHERITED] load a document and fill up the pagesVector
Document
::
OpenResult
loadDocumentWithPassword
(
const
QString
&
fileName
,
QVector
<
Okular
::
Page
*>
&
pagesVector
,
const
QString
&
password
);
Document
::
OpenResult
loadDocumentWithPassword
(
const
QString
&
fileName
,
QVector
<
Okular
::
Page
*>
&
pagesVector
,
const
QString
&
password
)
override
;
// [INHERITED] perform actions on document / pages
bool
canGeneratePixmap
()
const
;
void
generatePixmap
(
Okular
::
PixmapRequest
*
request
);
bool
canGeneratePixmap
()
const
override
;
void
generatePixmap
(
Okular
::
PixmapRequest
*
request
)
override
;
// [INHERITED] print document using already configured QPrinter
bool
print
(
QPrinter
&
printer
);
bool
print
(
QPrinter
&
printer
)
override
;
// [INHERITED] text exporting
Okular
::
ExportFormat
::
List
exportFormats
()
const
;
bool
exportTo
(
const
QString
&
fileName
,
const
Okular
::
ExportFormat
&
format
);
Okular
::
ExportFormat
::
List
exportFormats
()
const
override
;
bool
exportTo
(
const
QString
&
fileName
,
const
Okular
::
ExportFormat
&
format
)
override
;
// [INHERITED] config interface
/// By default checks if the default font has changed or not
bool
reparseConfig
();
bool
reparseConfig
()
override
;
/// Does nothing by default. You need to reimplement it in your generator
void
addPages
(
KConfigDialog
*
dlg
);
void
addPages
(
KConfigDialog
*
dlg
)
override
;
/**
* Config skeleton for TextDocumentSettingsWidget
...
...
@@ -203,12 +203,12 @@ class OKULARCORE_EXPORT TextDocumentGenerator : public Generator, public Okular:
*/
TextDocumentSettings
*
generalSettings
();
Okular
::
DocumentInfo
generateDocumentInfo
(
const
QSet
<
DocumentInfo
::
Key
>
&
keys
)
const
;
const
Okular
::
DocumentSynopsis
*
generateDocumentSynopsis
();
Okular
::
DocumentInfo
generateDocumentInfo
(
const
QSet
<
DocumentInfo
::
Key
>
&
keys
)
const
override
;
const
Okular
::
DocumentSynopsis
*
generateDocumentSynopsis
()
override
;
protected:
bool
doCloseDocument
();
Okular
::
TextPage
*
textPage
(
Okular
::
Page
*
page
);
bool
doCloseDocument
()
override
;
Okular
::
TextPage
*
textPage
(
Okular
::
Page
*
page
)
override
;
private:
Q_DECLARE_PRIVATE
(
TextDocumentGenerator
)
...
...
core/textdocumentgenerator_p.h
View file @
4072eb0c
...
...
@@ -130,8 +130,8 @@ class TextDocumentGeneratorPrivate : public GeneratorPrivate
Q_DECLARE_PUBLIC
(
TextDocumentGenerator
)
/* reimp */
QVariant
metaData
(
const
QString
&
key
,
const
QVariant
&
option
)
const
;
/* reimp */
QImage
image
(
PixmapRequest
*
);
/* reimp */
QVariant
metaData
(
const
QString
&
key
,
const
QVariant
&
option
)
const
override
;
/* reimp */
QImage
image
(
PixmapRequest
*
)
override
;
void
calculateBoundingRect
(
int
startPosition
,
int
endPosition
,
QRectF
&
rect
,
int
&
page
)
const
;
void
calculatePositions
(
int
page
,
int
&
start
,
int
&
end
)
const
;
...
...
extensions.h
View file @
4072eb0c
...
...
@@ -42,11 +42,11 @@ class OkularLiveConnectExtension : public KParts::LiveConnectExtension
OkularLiveConnectExtension
(
Part
*
parent
);
// from LiveConnectExtension
virtual
bool
get
(
const
unsigned
long
objid
,
const
QString
&
field
,
Type
&
type
,
unsigned
long
&
retobjid
,
QString
&
value
);
virtual
bool
put
(
const
unsigned
long
objid
,
const
QString
&
field
,
const
QString
&
value
)
;
virtual
bool
call
(
const
unsigned
long
objid
,
const
QString
&
func
,
const
QStringList
&
args
,
Type
&
type
,
unsigned
long
&
retobjid
,
QString
&
value
);
bool
get
(
const
unsigned
long
objid
,
const
QString
&
field
,
Type
&
type
,
unsigned
long
&
retobjid
,
QString
&
value
)
override
;
bool
put
(
const
unsigned
long
objid
,
const
QString
&
field
,
const
QString
&
value
)
override
;
bool
call
(
const
unsigned
long
objid
,
const
QString
&
func
,
const
QStringList
&
args
,
Type
&
type
,
unsigned
long
&
retobjid
,
QString
&
value
)
override
;
private:
QString
eval
(
const
QString
&
script
);
...
...
generators/chm/kio-msits/msits.h
View file @
4072eb0c
...
...
@@ -37,9 +37,9 @@ public:
ProtocolMSITS
(
const
QByteArray
&
,
const
QByteArray
&
);
virtual
~
ProtocolMSITS
();
v
irtual
void
get
(
const
QUrl
&
)
;
v
irtual
void
listDir
(
const
QUrl
&
url
)
;
v
irtual
void
stat
(
const
QUrl
&
url
)
;
v
oid
get
(
const
QUrl
&
)
override
;
v
oid
listDir
(
const
QUrl
&
url
)
override
;
v
oid
stat
(
const
QUrl
&
url
)
override
;
private:
// This function does next thing:
...
...
generators/djvu/kdjvu.h
View file @
4072eb0c
...
...
@@ -92,7 +92,7 @@ class KDjVu
friend
class
KDjVu
;
public:
virtual
int
type
()
const
;
int
type
()
const
override
;
QString
page
()
const
;
private:
...
...
@@ -108,7 +108,7 @@ class KDjVu
friend
class
KDjVu
;
public:
virtual
int
type
()
const
;
int
type
()
const
override
;
QString
url
()
const
;
private:
...
...
@@ -150,9 +150,9 @@ class KDjVu
friend
class
KDjVu
;
public:
virtual
int
type
()
const
;
virtual
QColor
color
()
const
;
v
irtual
void
setColor
(
const
QColor
&
color
)
;
int
type
()
const
override
;
QColor
color
()
const
override
;
v
oid
setColor
(
const
QColor
&
color
)
override
;
QSize
size
()
const
;
bool
inlineText
()
const
;
...
...
@@ -170,9 +170,9 @@ class KDjVu
friend
class
KDjVu
;
public:
virtual
int
type
()
const
;
virtual
QColor
color
()
const
;
v
irtual
void
setColor
(
const
QColor
&
color
)
;
int
type
()
const
override
;
QColor
color
()
const
override
;
v
oid
setColor
(
const
QColor
&
color
)
override
;
QPoint
point2
()
const
;
bool
isArrow
()
const
;
int
width
()
const
;
...
...
generators/dvi/TeXFont_PFB.h
View file @
4072eb0c
...
...
@@ -26,7 +26,7 @@ class TeXFont_PFB : public TeXFont {
TeXFont_PFB
(
TeXFontDefinition
*
parent
,
fontEncoding
*
enc
=
0
,
double
slant
=
0.0
);
~
TeXFont_PFB
();
glyph
*
getGlyph
(
quint16
character
,
bool
generateCharacterPixmap
=
false
,
const
QColor
&
color
=
Qt
::
black
);
glyph
*
getGlyph
(
quint16
character
,
bool
generateCharacterPixmap
=
false
,
const
QColor
&
color
=
Qt
::
black
)
override
;
private:
FT_Face
face
;
...
...
generators/dvi/TeXFont_PK.h
View file @
4072eb0c
...
...
@@ -13,7 +13,7 @@ class TeXFont_PK : public TeXFont {
TeXFont_PK
(
TeXFontDefinition
*
parent
);
~
TeXFont_PK
();
glyph
*
getGlyph
(
quint16
character
,
bool
generateCharacterPixmap
=
false
,
const
QColor
&
color
=
Qt
::
black
);
glyph
*
getGlyph
(
quint16
character
,
bool
generateCharacterPixmap
=
false
,
const
QColor
&
color
=
Qt
::
black
)
override
;
private:
// open font file or NULL
...
...
generators/dvi/TeXFont_TFM.h
View file @
4072eb0c
...
...
@@ -26,7 +26,7 @@ class TeXFont_TFM : public TeXFont {
TeXFont_TFM
(
TeXFontDefinition
*
parent
);
~
TeXFont_TFM
();
glyph
*
getGlyph
(
quint16
character
,
bool
generateCharacterPixmap
=
false
,
const
QColor
&
color
=
Qt
::
black
);
glyph
*
getGlyph
(
quint16
character
,
bool
generateCharacterPixmap
=
false
,
const
QColor
&
color
=
Qt
::
black
)
override
;
private:
fix_word
characterWidth_in_units_of_design_size
[
256
];
...
...
generators/dvi/dviexport.h
View file @
4072eb0c
...
...
@@ -128,8 +128,8 @@ public:
QPrinter
::
Orientation
orientation
=
QPrinter
::
Portrait
);
private:
v
irtual
void
abort_process_impl
()
;
v
irtual
void
finished_impl
(
int
exit_code
)
;
v
oid
abort_process_impl
()
override
;
v
oid
finished_impl
(
int
exit_code
)
override
;
QPrinter
*
printer_
;
QString
output_name_
;
...
...
generators/dvi/generator_dvi.h
View file @
4072eb0c
...
...
@@ -29,25 +29,25 @@ class DviGenerator : public Okular::Generator
Q_INTERFACES
(
Okular
::
Generator
)
public:
DviGenerator
(
QObject
*
parent
,
const
QVariantList
&
args
);
bool
loadDocument
(
const
QString
&
fileName
,
QVector
<
Okular
::
Page
*
>
&
pagesVector
);
bool
loadDocument
(
const
QString
&
fileName
,
QVector
<
Okular
::
Page
*
>
&
pagesVector
)
override
;
// document information
Okular
::
DocumentInfo
generateDocumentInfo
(
const
QSet
<
Okular
::
DocumentInfo
::
Key
>
&
keys
)
const
;
Okular
::
DocumentInfo
generateDocumentInfo
(
const
QSet
<
Okular
::
DocumentInfo
::
Key
>
&
keys
)
const
override
;
// table of contents
const
Okular
::
DocumentSynopsis
*
generateDocumentSynopsis
();
const
Okular
::
DocumentSynopsis
*
generateDocumentSynopsis
()
override
;
// list of fonts
Okular
::
FontInfo
::
List
fontsForPage
(
int
page
);
Okular
::
FontInfo
::
List
fontsForPage
(
int
page
)
override
;
bool
print
(
QPrinter
&
printer
);
bool
print
(
QPrinter
&
printer
)
override
;