Roo.rtf.Hex = function(hex)
{
this.hexstr = hex;
-}
+};
Roo.rtf.Paragraph = function(opts)
{
this.content = []; ///??? is that used?
-}
\ No newline at end of file
+};
\ No newline at end of file
this.groups = []; // where we put the return.
// default is to parse TEXT...
-}
+};
Roo.rtf.Parser.prototype = {
text : '', // string being parsed..
controlWord : '',
});
}
-}
\ No newline at end of file
+} ;
\ No newline at end of file
Roo.rtf.Span = function(opts)
{
this.value = opts.value;
-}
+};
// Roo/rtf/Hex.js
Roo.rtf.Hex=function(A){this.hexstr=A;};
// Roo/rtf/Paragraph.js
-Roo.rtf.Paragraph=function(A){this.content=[];}
+Roo.rtf.Paragraph=function(A){this.content=[];};
// Roo/rtf/Span.js
Roo.rtf.Span=function(A){this.value=A.value;};
// Roo/rtf/Group.js
Roo.rtf.Group=function(A){this.content=[];};Roo.rtf.Group.prototype={ignorable:false,content:false,addContent:function(A){this.content.push(A);},toDataURL:function(){var A=false;switch(true){case this.content.filter(function(a){return a.value=='pngblip'}).length>0:A="image/png";
break;case this.content.filter(function(a){return a.value=='jpegblip'}).length>0:A="image/jpeg";break;default:return 'about:blank';}var B=this.content[this.content.length-1].value;return A+';base64,'+btoa(B.match(/\w{2}/g).map(function(a){return String.fromCharCode(parseInt(a,16));
-}).join(""));}}
+}).join(""));}};
// Roo/rtf/Ctrl.js
Roo.rtf.Ctrl=function(A){this.value=A.value;this.param=A.param;};
// Roo/rtf/Parser.js
,emitControlWord:function(){this.emitText();if(this.controlWord===''){this.emitError('empty control word');}else{this.push({type:'controlword',value:this.controlWord,param:this.controlWordParam!==''&&Number(this.controlWordParam),pos:this.cpos,row:this.row,col:this.col}
);}this.controlWord='';this.controlWordParam='';},emitStartGroup:function(){this.emitText();this.push({type:'groupstart',pos:this.cpos,row:this.row,col:this.col});},emitEndGroup:function(){this.emitText();this.push({type:'groupend',pos:this.cpos,row:this.row,col:this.col}
);},emitIgnorable:function(){this.emitText();this.push({type:'ignorable',pos:this.cpos,row:this.row,col:this.col});},emitHexChar:function(){this.emitText();this.push({type:'hexchar',value:this.hexChar,pos:this.cpos,row:this.row,col:this.col});this.hexChar=''}
-,emitError:function(A){this.emitText();this.push({type:'error',value:A,row:this.row,col:this.col,char:this.cpos});},emitEndParagraph:function(){this.emitText();this.push({type:'endparagraph',pos:this.cpos,row:this.row,col:this.col});}}
+,emitError:function(A){this.emitText();this.push({type:'error',value:A,row:this.row,col:this.col,char:this.cpos});},emitEndParagraph:function(){this.emitText();this.push({type:'endparagraph',pos:this.cpos,row:this.row,col:this.col});}};
// Roo/htmleditor/namespace.js
Roo.htmleditor={};
// Roo/htmleditor/Filter.js
Roo.rtf.Hex = function(hex)
{
this.hexstr = hex;
-}
+};
Roo.rtf.Paragraph = function(opts)
{
this.content = []; ///??? is that used?
-}Roo.rtf.Span = function(opts)
+};Roo.rtf.Span = function(opts)
{
this.value = opts.value;
-}
+};
Roo.rtf.Group = function(parent)
{
// we dont want to acutally store parent - it will make debug a nightmare..
this.content = [];
-}
+};
+
Roo.rtf.Group.prototype = {
ignorable : false,
content: false,
}).join(""));
}
-}
+};
Roo.rtf.Ctrl = function(opts)
{
this.value = opts.value;
this.groups = []; // where we put the return.
// default is to parse TEXT...
-}
+};
Roo.rtf.Parser.prototype = {
text : '', // string being parsed..
controlWord : '',
});
}
-} Roo.htmleditor = {};
+} ;Roo.htmleditor = {};
/**
* @class Roo.htmleditor.Filter
* Base Class for filtering htmleditor stuff. - do not use this directly - extend it.
Roo.rtf.Hex = function(hex)
{
this.hexstr = hex;
-}
+};
Roo.rtf.Paragraph = function(opts)
{
this.content = []; ///??? is that used?
-}Roo.rtf.Span = function(opts)
+};Roo.rtf.Span = function(opts)
{
this.value = opts.value;
-}
+};
Roo.rtf.Group = function(parent)
{
// we dont want to acutally store parent - it will make debug a nightmare..
this.content = [];
-}
+};
+
Roo.rtf.Group.prototype = {
ignorable : false,
content: false,
}).join(""));
}
-}
+};
Roo.rtf.Ctrl = function(opts)
{
this.value = opts.value;
this.groups = []; // where we put the return.
// default is to parse TEXT...
-}
+};
Roo.rtf.Parser.prototype = {
text : '', // string being parsed..
controlWord : '',
});
}
-} Roo.htmleditor = {};
+} ;Roo.htmleditor = {};
/**
* @class Roo.htmleditor.Filter
* Base Class for filtering htmleditor stuff. - do not use this directly - extend it.
// Roo/rtf/Hex.js
Roo.rtf.Hex=function(A){this.hexstr=A;};
// Roo/rtf/Paragraph.js
-Roo.rtf.Paragraph=function(A){this.content=[];}
+Roo.rtf.Paragraph=function(A){this.content=[];};
// Roo/rtf/Span.js
Roo.rtf.Span=function(A){this.value=A.value;};
// Roo/rtf/Group.js
Roo.rtf.Group=function(A){this.content=[];};Roo.rtf.Group.prototype={ignorable:false,content:false,addContent:function(A){this.content.push(A);},toDataURL:function(){var A=false;switch(true){case this.content.filter(function(a){return a.value=='pngblip'}).length>0:A="image/png";
break;case this.content.filter(function(a){return a.value=='jpegblip'}).length>0:A="image/jpeg";break;default:return 'about:blank';}var B=this.content[this.content.length-1].value;return A+';base64,'+btoa(B.match(/\w{2}/g).map(function(a){return String.fromCharCode(parseInt(a,16));
-}).join(""));}}
+}).join(""));}};
// Roo/rtf/Ctrl.js
Roo.rtf.Ctrl=function(A){this.value=A.value;this.param=A.param;};
// Roo/rtf/Parser.js
,emitControlWord:function(){this.emitText();if(this.controlWord===''){this.emitError('empty control word');}else{this.push({type:'controlword',value:this.controlWord,param:this.controlWordParam!==''&&Number(this.controlWordParam),pos:this.cpos,row:this.row,col:this.col}
);}this.controlWord='';this.controlWordParam='';},emitStartGroup:function(){this.emitText();this.push({type:'groupstart',pos:this.cpos,row:this.row,col:this.col});},emitEndGroup:function(){this.emitText();this.push({type:'groupend',pos:this.cpos,row:this.row,col:this.col}
);},emitIgnorable:function(){this.emitText();this.push({type:'ignorable',pos:this.cpos,row:this.row,col:this.col});},emitHexChar:function(){this.emitText();this.push({type:'hexchar',value:this.hexChar,pos:this.cpos,row:this.row,col:this.col});this.hexChar=''}
-,emitError:function(A){this.emitText();this.push({type:'error',value:A,row:this.row,col:this.col,char:this.cpos});},emitEndParagraph:function(){this.emitText();this.push({type:'endparagraph',pos:this.cpos,row:this.row,col:this.col});}}
+,emitError:function(A){this.emitText();this.push({type:'error',value:A,row:this.row,col:this.col,char:this.cpos});},emitEndParagraph:function(){this.emitText();this.push({type:'endparagraph',pos:this.cpos,row:this.row,col:this.col});}};
// Roo/htmleditor/namespace.js
Roo.htmleditor={};
// Roo/htmleditor/Filter.js