加入ocr-rtf格式
This commit is contained in:
parent
4ac06c7bdf
commit
a8bd4fee99
Binary file not shown.
|
@ -1681,7 +1681,7 @@ bug description:
|
|||
<message>
|
||||
<location filename="HGImgThumb.cpp" line="1214"/>
|
||||
<source>unsupported file format</source>
|
||||
<translation>拖拽仅支持jpg、bmp、png、tif/tiff、pdf和ofd格式</translation>
|
||||
<translation type="unfinished">拖拽仅支持jpg、bmp、png、tif/tiff、gif、pdf和ofd格式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="HGImgThumb.cpp" line="1230"/>
|
||||
|
|
|
@ -8,6 +8,7 @@ CutPaperTool::CutPaperTool(QWidget *parent) :
|
|||
ui(new Ui::CutPaperTool)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
|
||||
connect(ui->widget,SIGNAL(cutRectX(double)),this,SLOT(cutRectXSlot(double)));
|
||||
connect(ui->widget,SIGNAL(cutRectY(double)),this,SLOT(cutRectYSlot(double)));
|
||||
connect(ui->widget,SIGNAL(cutRectWidth(double)),this,SLOT(cutRectWidthSlot(double)));
|
||||
|
|
|
@ -43,6 +43,7 @@ static struct
|
|||
, {".gif", "GIF - Graphics Interchange Format", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES}
|
||||
, {".pdf", "OCR->PDF - Portable Document Format", FILE_TYPE_ATTR_THIRD_HANDLER | FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES}
|
||||
, {".ofd", "OCR->OFD - Open Fixed-layout Document", FILE_TYPE_ATTR_THIRD_HANDLER | FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES}
|
||||
, {".rtf", "OCR->RTF - Rich Text Format", FILE_TYPE_ATTR_THIRD_HANDLER | FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES}
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -86,7 +86,8 @@ Dialog_SaveAs::Dialog_SaveAs(QWidget *parent) :
|
|||
"OFD - Open Fixed-layout Document(*.ofd);;"
|
||||
"GIF - Graphics Interchange Format(*.gif);;"
|
||||
"OCR->PDF - Portable Document Format(*.pdf);;"
|
||||
"OCR->OFD - Open Fixed-layout Document(*.ofd)");
|
||||
"OCR->OFD - Open Fixed-layout Document(*.ofd);;"
|
||||
"OCR->RTF - Rich Text Format(*.rtf)");
|
||||
#endif
|
||||
|
||||
connect(ui->fileDialog, SIGNAL(accepted()), this, SLOT(on_dialog_accepted()));
|
||||
|
@ -177,6 +178,9 @@ void Dialog_SaveAs::on_dialog_accepted()
|
|||
case 8:
|
||||
extName = ".ofd";
|
||||
break;
|
||||
case 9:
|
||||
extName = ".rtf";
|
||||
break;
|
||||
}
|
||||
|
||||
assert(!extName.isEmpty());
|
||||
|
|
Loading…
Reference in New Issue