ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class PDFViewerImpl.PDFViewerImpl(system, config)

I am the abstract parent of all classes which can satisify the second half of the Bridge pattern with the <no title> class.

Parameters:

  • system: a <no title> object which lets us control the remote system

  • config: a <no title> object defining the current user

load(path)

Load a given document to view.

Parameters:

  • path: the string path to the file to load

Examples:

user.PDFViewer.load( r’c:tempinstructions.pdf’ )

PDFViewerImpl.get_pdf_viewer(system, config, v_type=None)

This is a Factory function to get the correct implementor of the <no title> application type for a <no title> to use.

Parameters:

  • system: a <no title> object connected to the target system

  • config: a <no title> object defining this <no title>

  • v_type: optionally the type to create, ignoring what config says

Return: a concrete subclass of <no title> or None if no appropriate class can be found

Examples:

  • viewer = get_pdf_viewer( user._sys, user.config )

  • viewer = get_pdf_viewer( self._system, self.config, v_type )