CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


Methods (Win32)

Name

Description

NavView(SHORT view)

Moves one step forward or backward in the “View Path” history (each time the user changes the page, zoom, rotation, scroll location). Valid values for nView are -1 and +1.

SaveAs(fname, doctype)

Saves the file to disk. Fname is the filesystem path to the destination file  If doctype is “single” then only the current page is saved.  If doctype is “indirect” or “bundled” then the whole document is saved.

CopySelectedText()

Copies selected text to the clipboard.

SelectAllText()

Selects all the text on the current page.

UnselectText()

Unselects (and unhighlights) the selected text.

CopyImage()

Copies the raster image of the current page to the clipboard.

ExportImageAs(fname,format)

Saves current page to the specified filename in the given format.

Fname is a filesystem path to the destination file.

Format is ignored. “BMP” is currently the only format supported.

PrintDocTo(StartPage,EndPage,Zoom, Printername, options)

Prints a contiguous sequence of pages from the current document without prompting the user.

StartPage – 1-#of pages. First page to be printed. –1 means print the whole document.

EndPage – StartPage-# of pages. Last page to be printed. Ignored if StartPage = -1.

Zoom“currentzoom” “originalsize” “shrinktofit”. If null, uses shrinktofit.

Printername – Name of a valid printer. If null, uses the default printer.

Options – Reserved. Pass NULL.

ShowMagnifier (show)

Show. Bool.

Turns the Magnifier glass on or off.

ClearCache()

Empties the decode cache without changing MaxCacheSize. Ignored if MaxCacheSize=0 or if Cache=No. (See Setting Preferences.)

RestoreDefaults()

Resets the properties exposed via the Preferences dialog to their original (default) settings. (See Setting Preferences.)

HighlightTerm(exp, bMatchCase, bMatchWord, bAllMatches, color)

Highlights either the first or all occurrences of exp on the current page in the specified color.

exp – String Expression to be searched.

bMatchCase – If true, match is case-sensitive.

bMatchWord – If true, match is whole-word only.

bAllMatches – If true, all occurrences are highlighted.

Color – RGB value giving the highlight color.

Example:

myDjVu.HighlightTerm("DjVu", 0,0,1, 0x0000FF);

AddHighlightRect(x0,y0,w,h,color)

Adds a highlight rectangle.

x0, y0 – Text. Pixel coordinates of the lower left corner of the highlight area. Referenced to lower left corner of image.

w, h – Text. Width and height in pixels.

Color – RGB value.

RemoveAllHighlightRect()

Removes all highlighting created by

AddHighlightRect()

HighlightTerm()

Does not affect highlight annotations that are part of the document.

GetLastDjVuError (STRING sErr)

Sets sErr to the string corresponding to the last error generated by the control

GetDocPagesCount (LONG nPages)

Sets nPages the number of pages in the document

GetDocFormatVersion (INTEGER nVer)

Sets nVer to the DjVu file format version

GetPageResolution (INTEGER nDPI)

Sets nDPI to the resolution of the current page in dpi

GetPageLength (LONG nLength)

Sets nLength to the length of the current page, in pixels

GetPageWidth (LONG nWidth)

Sets nWidth to the width of the current page, in pixels

GetDocType (STRING sTtype)

Sets sType to “bundled”, “indirect” or “single”, the type of multipage DjVu document.

ScrollImage(x, y)

Scrolls image so by (x, y) pixels in original image coordinates. Right: x>0. Down: y>0.

CmdHelp()

Launches Help. Uses HelpURL property.

CmdPageInfo()

Posts “Page Info” dialog

CmdDocInfo()

Posts “Doc Info” dialog

CmdSavePageAs()

Posts “Save Page As…” dialog

CmdSaveDocAs()

Posts “Save Doc As…” sequence of dialogs

CmdFind()

Posts “Find” dialog

CmdExportToFile()

Posts “Export To File” dialog

CmdPrint()

Posts the “Print” dialog

CmdPreferences()

Posts the “Preferences” dialog

CmdAboutDjVu()

Posts the “About DjVu” dialog.

 



You are reading help file online using chmlib.com

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com
Partner sites: Logo Design, Simple Anti-Crisis Accounting Software, Voice Search for Web