|
|
Class: HTMLDocumentFrame
Object
|
+--GraphicsContext
|
+--DeviceGraphicsContext
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--HTMLDocumentFrame
|
+--HTMLDocumentView
- Package:
- stx:libhtml
- Category:
- System-Documentation
- Version:
- rev:
1.141
date: 2009/11/11 11:21:01
- user: cg
- file: HTMLDocumentFrame.st directory: libhtml
- module: stx stc-classLibrary: libhtml
- Author:
- Claus Gittinger
displays HTML documents.
HTMLDocumentView
HTMLDocumentPainter
cleanup
-
flushCachedImages
-
-
lowSpaceCleanup
-
defaults
-
defaultAlienAppletsEnabled
-
-
defaultHTMLExtension
-
-
defaultInternalAppletsEnabled
-
-
defaultJavaAppletsEnabled
-
-
defaultScriptExecutionEnabled
-
-
documentFileFor: relativePath
-
given a relative path in the documentation hierarchy,
find the files absolute path - first trying the current language,
if not found, try an english version
initialization
-
initialize
-
-
initializeFileExecutorTable
-
-
initializeFileExtensionTable
-
setup the table mapping file-name extensions to
internal document types
-
initializeInternalImageTable
-
setup the table mapping internal document types to
bitmap image filenames
-
update: something with: aParameter from: changedObject
-
startup
-
onFile: aDocumentName in: aView
-
create a documentationView on aDocumentName in some other view.
Returns the htmlView
-
onFile: aFileName text: htmlText top: topDirectory in: top
-
create a documentationView on aDocumentName or htmlText in
some other view. Returns the htmlView.
Helper for onFile:in: and onText:in:
-
onText: htmlText in: aView
-
create a documentationView on htmlText (must be html) in some other view.
Returns the htmlView.
accessing
-
bind: key to: value
-
-
currentDirectoryName
-
return the current URLs directoryName
-
currentDocument
-
return the current document
-
currentURL
-
return the current documents URL
-
defaultViewBackgroundColor
-
-
documentEncoding
-
-
documentEncoding: anEncodingSymbol
-
-
forms
-
-
getDocumentFilename: urlString
-
-
getDocumentSource: anchorHref action: action
-
-
getFileSource: urlString
-
-
history
-
-
homeDocument: urlString
-
-
homeText: someText
-
-
infoDisplay: aString
-
-
infoHolder: aValueHolder
-
-
locationDisplay: aString
-
-
model: aValueHolder
-
-
painter
-
-
rememberDocument: url host: urlHost text: text action: action inHistory: inHistory
-
remember that the current document was ever visited.
If inHistory is true, it is also remembered in the back-history
-
setTopDirectoryName: aDirectoryName
-
-
showImages: aBoolean
-
turn on/off image display
-
showInfo: aString
-
-
style
-
returns the style information; a dictionary filled with
font-, color- and other information
-
updateLabelFlag: aBoolean
-
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
updateTopViewsTitleFlag: aBoolean
-
When I encounter a <title>-element, I can optionally update my topview's window title.
This behavior can be controlled by setting/clearing this flag.
The default is false (explicitly turned on by the HTMLDocumentView)
-
uriHolder: aValueHolder
-
-
uriInputHolder: aValueHolder
-
-
visitedURLs
-
accessing-document
-
localImageAt: url put: anImage
-
when using the html-view internally, this allows for images to be provided by
Smalltalk, without a need for a file or http-service
-
performAction: action source: source documentName: urlString remember: rem
-
-
setText: text
-
set the text - see example
-
setText: text anchor: anchor
-
set the text - see example
-
setText: text anchor: anchor documentName: documentName
-
-
setText: text header: header footer: footer id: elementId anchor: anchor
-
set the text - see examples
-
setText: text plain: plain anchor: anchor documentName: documentName remember: rem
-
-
showDocument: urlOrUrlString
-
-
showDocument: url file: fileName onHost: aHost anchor: anchor remember: rem source: showSource
-
-
showDocument: url source: aBoolean
-
-
showDocument: urlOrUrlString text: anchorText action: action remember: rem source: source
-
-
showFileDocument: fileName
-
-
showFileDocument: fileName anchor: anchor remember: rem
-
-
showFileDocument: fileName anchor: anchor remember: rem source: showSource
-
-
showFileDocument: fileName remember: rem
-
-
showTextDocument: urlString file: file method: method remember: rem source: source
-
accessing-security
-
alienAppletsEnabled
-
-
catchErrors
-
-
enableAlienApplets: aBoolean
-
-
enableExecution: aBoolean
-
-
enableInternalApplets: aBoolean
-
-
enableJavaApplets: aBoolean
-
-
enableScriptExecution: aBoolean
-
-
internalAppletsEnabled
-
-
javaAppletsEnabled
-
-
nameSpaceForExecution: aNameSpace
-
-
scriptExecutionEnabled
-
change & update
-
update: something with: aParameter from: changedObject
-
defaults
-
isManPageSuffix: suffix
-
-
mimeTypeFromSuffix: suffix
-
document painter callBacks
-
appletClass: className fromURL: url
-
-
appletClass: className fromURL: url archive: archiveURLOrNil
-
-
codeStreamFor: url
-
returns a stream on a codeFile or nil
-
fullURLPathFor: url
-
returns an URL's full path
-
imageFor: urlString
-
returns an image or nil
-
imageFor: urlStringIn now: now
-
returns an image or nil. The argument now specifies, if the image
should be converted to a device image right NOW or not.
Usually, it is false (i.e. no interest in a device image) during
document scan, and true when the image is to be displayed.
-
streamForURL: urlStringIn
-
returns a stream or nil
-
submitDoitMethod: method form: info
-
-
submitForm: info
-
-
title: aString
-
define the title - a callBack when a <TITLE> tag is encountered
-
visitTest: urlString action: actionString
-
event handling
-
buttonMotion: state x: x y: y
-
-
buttonPress: button x: x y: y
-
-
keyPress: key x: x y: y
-
-
mouseWheelZoom: amount
-
CTRL-wheel action
-
redraw
-
-
redrawX: x y: y width: w height: h
-
-
sizeChanged: how
-
help
-
flyByHelpTextAt: aPoint
-
initialization & release
-
destroy
-
-
fetchDeviceResources
-
fetch device specific resources.
-
initFonts: aPageStyle
-
-
initLazyFontStyle: aFontStyle size: fontSize encoding: encoding
-
-
initStyle
-
setup style specifics.
-
initialize
-
-
recreate
-
sent after a snapin or a migration, reinit for new device
-
reinitStyle
-
handle dynamic style changes
internal pseudo documents
-
documentStreamForErrorResponse: reply forURL: urlString location: location onHost: aHost
-
return an array filled with:
stream
newDocument name
newDocument directory
documentHost
mhmh - this is not very object-oriented ...
-
documentStreamForURL: urlOrString file: urlFileName onHost: aHost
-
return an array filled with:
stream
newDocument name
newDocument directory
documentHost
mhmh - this is not very object-oriented ...
-
pseudoDocumentStreamForDirectory: url
-
a directory in an HREF - create pseudo document
-
pseudoDocumentStreamForImageFile: url
-
an image in an HREF - create pseudo document
-
pseudoDocumentStreamForManPageFile: url
-
a manPage in an HREF - create pseudo document
-
pseudoDocumentStreamForPDFFile: url
-
a PDF file in an HREF - create error document, if acroread cannot be opened
-
pseudoDocumentStreamForPlainFile: url
-
a plainFile in an HREF - create pseudo document
-
pseudoDocumentStreamForPostscriptFile: url
-
a postscript file in an HREF - create error document, if ghostview cannot be opened
-
pseudoDocumentStreamForUnreadableFile: urlString
-
an unreadable file in an HREF - create pseudo document
-
pseudoDocumentStreamForUnreadableFile: urlString message: msg
-
an unreadable file in an HREF - create pseudo document
-
pseudoDocumentStreamOnString: aString headLine: headLine title: title
-
create pseudo document showing a string
-
pseudoDocumentStreamOnString: aString title: title
-
create pseudo document showing a string
menu & actions
-
clickedExampleTextOrNil
-
-
copyExampleText
-
-
copyLink
-
-
editImage
-
-
editMenu
-
return an appropriate popUpMenu.
check if pointer is over:
an example - offer copy-example
an image - offer inspect-image
a href - offer open-new-browser
-
editThisDocument
-
-
executeAndInspectExampleText
-
-
executeExampleText
-
-
inspectImage
-
-
openNewOnAnchor
-
-
saveImage
-
-
showImageInFileBrowser
-
-
workspaceOnExampleText
-
misc
-
ampersandBindings
-
-
backToPreviousDocument
-
-
fontEncodingFor: encodingSymbol
-
-
getVerticalPosition
-
-
isValidMethod: methodString
-
-
positionOnAnchor: aLocalAnchor
-
-
showNotFound: aFileName
-
-
startImageFlushProcess
-
queries
-
documentTitle
-
-
heightForLines: numberOfLines
-
return the height of the receiver, if numberOfLines are to be displayed
-
heightOfContents
-
-
horizontalScrollStep
-
-
preferredExtentForLines: numLines cols: numCols
-
get an approximation for the extent to display numLines and
numCols in normal fontsize
-
verticalScrollStep
-
return the amount to scroll when stepping up/down (also used for mouseWheel).
-
widthOfContents
-
user actions
-
anchorElementSelected: anchorElement
-
-
exampleElementSelected: exampleElement
-
user clicked on an example. If execution is enabled,
evaluate it save from any exceptions (show what happened, if
any exception is raised during evaluation).
If the exampleElement has a SHOWRESULT attribute, display the
printString in the infoView.
-
executeExampleText: action withResultDo: resultAction onErrorDo: errorAction
-
user clicked on an example. If execution is enabled,
evaluate it save from any exceptions (show what happened, if
any exception is raised during evaluation).
If the exampleElement has a SHOWRESULT attribute, display the
printString in the infoView.
-
showResultOfCodeExample: rslt
-
-
updateAnchorInfoForX: x y: y
-
look for any anchor under the mouse pointer at x/y;
update infoLabel, if there is any
|