نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir > Text-Editor-Vip > Text::Editor::Vip::Buffer::Plugins::Clipboard

Download:
Text-Editor-Vip-0.08.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Text::Editor::Vip::Buffer::Plugins::Clipboard - Internal clipboard handling

SYNOPSIS ^

  use Text::Editor::Vip::Buffer ;
  $buffer = new Text::Editor::Vip::Buffer() ;
  
 $buffer->LoadAndExpandWith('Text::Editor::Vip::Buffer::Plugins::Clipboard') ;

DESCRIPTION ^

Access Text::Editor::Vip::Buffer internal buffers.

Functions ^

SetClipboardContents

Sets the content of the named clipboard.

Arguments:

  $buffer->SetClipboardContents(4, 'something') ;
  $buffer->SetClipboardContents(4, ['something', "\n", 'hi']) ;

GetClipboardContents

Returns the contents of the named clipboard.

Arguments:

  $buffer->GetClipboardContents(4) ;

CopySelectionToClipboard

Makes a copy of the selected text and copies it to the named clipboard.

Arguments:

  $buffer->CopySelectionToClipboard('some_clipboard_name') ;

InsertClipboardContents

Inserts the Contents of the named clipboard into the buffer.

Arguments:

  $buffer->InsertClipboardContents('my_clipboard') ;

ClearClipboardContents

Arguments:

  $buffer->ClearClipboardContents('clipboard_1') ;

AppendToClipboardContents

Adds the text argument to the end of the clipboard.

Arguments:

  $buffer->AppendToClipboardContents('clipboard_2', "some string and a newline\n") ;

PopClipboard

Removes the last entry of a clipboard and returnes it. An error is displayed if the clipboard is empty.

Arguments:

  $buffer->PopClipboard(4) ;

GetNumberOfClipboardElements

Returns the number of elements in the clipboard, zero if the clipboard doesn't exist.

Arguments:

  $buffer->GetNumberOfClipboardElements(4) ;

YankLineToClipboard

Removes a line from the buffer and adds it to a clipboard

Arguments:

  $buffer->YankLineToClipboard(4, 'clipboard') ;

YankSelectionToClipboard

Removes the current selection from the buffer and adds it to a clipboard

Arguments:

  $buffer->YankSelectionToClipboard('clipboard') ;

AppendCurrentLineToClipboardContents

Adds the current line to a clipboars

Arguments:

  $buffer->AppendCurrentLineToClipboardContents(4) ;

AppendSelectionToClipboardContents

Adds the current selection to a clipboars

Arguments:

  $buffer->AppendSelectionToClipboardContents(4, 'clipboard') ;

AUTHOR ^

        Khemir Nadim ibn Hamouda
        CPAN ID: NKH
        mailto:nadim@khemir.net
        http:// no web site

COPYRIGHT ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

syntax highlighting: