summaryrefslogtreecommitdiff
path: root/indra/llui/llclipboard.h
blob: a5bb4fc790be8e00277f6272682de3fdca962ec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/** 
 * @file llclipboard.h
 * @brief LLClipboard base class
 *
 * Copyright (c) 2001-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_LLCLIPBOARD_H
#define LL_LLCLIPBOARD_H


#include "llstring.h"
#include "lluuid.h"

//
// Classes
//
class LLClipboard
{
protected:
	LLUUID		mSourceID;
	LLWString mString;
	
public:
	LLClipboard();
	~LLClipboard();

	void		copyFromSubstring(const LLWString &copy_from, S32 pos, S32 len, const LLUUID& source_id = LLUUID::null );


	BOOL		canPasteString();
	LLWString 	getPasteWString(LLUUID* source_id = NULL);
};


// Global singleton
extern LLClipboard gClipboard;


#endif  // LL_LLCLIPBOARD_H