Beiträge von Felipe

    Hi,

    I tried doing a new WPTools 6.27'' install under my XE2, with all WPtools defaults; then I compiled again UseDefEditior demo, and the problem is still there.

    It seems the problem is, when there is somoe paragraph spacebefore setting, combined with margirn mirroring. On that cases, the first line of even pages goes out of margin.

    Best regards,

    Felipe.

    Hi,

    I am having some text justification error in some texts, in where some paragraphs, in the first line of a page can go out of margin, like this example done with WPTools Editor sample program:


    The RTF for this example is this copied at the end of this message.

    Best regards,

    Felipe.

    {\rtf1\ansi\deff0\uc1\ansicpg1252\deftab425{\fonttbl{\f0\fnil\fcharset1 Times New Roman;}{\f1\fnil\fcharset2 Wingdings;}{\f2\fnil\fcharset2 Symbol;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;}\margmirror\wpprheadfoot2\paperw12240\paperh20160\margl2835\margr850\margt2835\margb3402\headery720\footery720\ftnbj\sftnbj\sftnrstcont\nocolbal\sftnnar\saftnnar\fet0\endnhere\sectdefaultcl{\*\generator xx-PRM;}{\info{\*\doccomm S}
    {\*\title A/DEMANDAE}
    {\*\subject INICIA DEMANDA EJECUTIVA.AUTORIZA.}
    }{\*\userprops {\propname html}\proptype11{\staticval 1}
    {\propname documentencoding}\proptype30{\staticval utf-8}
    }{\pard\plain\sl360\qj\plain\f0\fs26\cf0\b\par
    \pard\plain\sl360\qj\toc1\plain\f0\fs26\cf0\b\par
    \toc1\plain\f0\fs26\cf0\tab\tab Como previo a todo y a fin de habilitar la competencia de V.S., vengo a interponer como previa la declaraci\u243 ?n de inconstitucionalidad de las disposiciones contenidas en los art\u237 ?culos 21, 22 y 46 inciso 1 de la ley 24557, que hago extensiva a las disposiciones correlativas y concordantes de dicha ley y normas reglamentarias de las mismas. \par
    \pard\plain\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc1\plain\f0\fs26\cf0\tab\tab Ello porque somete la decisi\u243 ?n de materias que deben estar reservadas a la competencia judicial, al juicio de tribunales administrativos m\u233 ?dicos, sin que sea suficiente para garantizar la integridad de la indemnizaci\u243 ?n por infortunios laborales, la existencia de un recurso de alzada. \par
    \pard\plain\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc1\plain\f0\fs26\cf0\tab\tab Asimismo t\u233 ?ngase en cuenta que la competencia federal deriva por exclusion de la propia Constituci\u243 ?n Nacional, y que no supone sea atribuida la aplicaci\u243 ?n del derecho comun m\u225 ?s que en supuestos excepcionales que no se dan en este caso, carencia que no pude ser suplida por ley sin caer en la inconstitucionalidad que ahora reclamo. \par
    \pard\plain\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc1\plain\f0\fs26\cf0\tab\tab A lo que debo agregar que la garant\u237 ?a de la defensa en juicio y la innominada del debido proceso legal, exigen la posibilidad de asistencia letrada, y la decisi\u243 ?n con pleno alcance a todas las cuestiones de hecho y derecho, por un tribunal competente del poder judicial.\par
    \pard\plain\sb100\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc1\plain\f0\fs26\cf0\tab\tab En el marco de la garant\u237 ?a constitucional del debido proceso adjetivo est\u225 ? incluida, indudablemente, la exigencia de idoneidad t\u233 ?cnico-jur\u237 ?dica de los jueces o tribunales condici\u243 ?n que no re\u250 ?nen los integrantes de las comisiones m\u233 ?dicas previstas en el sistema de riesgos del trabajo\par
    \pard\plain\sb100\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc1\plain\f0\fs26\cf0\tab\tab Corresponde declarar la inconstitucionalidad de los arts. 21 , 22 y 46, inc.1 de la ley 24.557, del decreto 717/1996 y dem\u225 ?s normas reglamentarias y complementarias y admitirse la competencia de la Justicia Nacional del Trabajo (arts. 20 y 21, inc. a de la L.O.).\par
    \pard\plain\sb100\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc0\plain\f0\fs26\cf0\tab\tab Sin perjuicio de destacar que la Corte Suprema en el caso "Castillo " se limit\u243 ? a declarar la inconstitucionalidad del art. 46, inc. 1 , ley 24.557, los fundamentos all\u237 ? expuestos por nuestro m\u225 ?s Alto Tribunal constituyen pautas orientadoras para dilucidar la inconstitucionalidad de los arts. 21 y 22 , ley cit., de las normas pertinentes del decreto 717/1996 y de la resoluci\u243 ?n 45/1997, Superintendencia de Riesgos del Trabajo\par
    \pard\plain\sb100\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc1\plain\f0\fs26\cf0\tab\tab Y ello es as\u237 ?, y la inconstitucionalidad procede, porque el sistema cuestionado no prev\u233 ? el control judicial amplio y suficiente exigido por la Corte Suprema en el caso "Estrada, Angel S/Accidente "\par
    \pard\plain\sb100\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc1\plain\f0\fs26\cf0\tab\tab El derecho a la asistencia letrada obligatoria es un componente esencial e insoslayable del derecho "a ser o\u237 ?do con las debidas garant\u237 ?as" y a la "inviolabilidad de la defensa en juicio de la persona y de los derechos", porque la "determinaci\u243 ?n" o "sustanciaci\u243 ?n" de los derechos invocados por los trabajadores y sus derechohabientes est\u225 ? condicionada a una adecuada exposici\u243 ?n de los hechos, al correcto ofrecimiento de las pruebas y a una s\u243 ?lida fundamentaci\u243 ?n jur\u237 ?dica, tareas todas que requieren inexorablemente la participaci\u243 ?n de un abogado como ha sido expuesto entre otros muchos decisorios por la C. Nac. Trab., Sala 5\u170 ? con fecha 31/03/2008 en autos Gonz\u225 ?lez, Protacio v. Berkley International ART S.A.\par
    \pard\plain\sb100\sl360\qj\toc1\plain\f0\fs26\cf0\par
    \toc1\plain\f0\fs26\cf0\tab\tab Este sentido destaco lo resuelto por el m\u225 ?ximo tribunal: \f0\cf0\b\i "...2.Que, contrariamente a lo sostenido por el procurador fiscal en el dictamen que antecede, no es inoficioso pronunciarse sobre la cuesti\u243 ?n federal se\u241 ?alada en el considerando anterior por haber sido preterida, sin suministrar razones para ello, la intervenci\u243 ?n de las comisiones m\u233 ?dicas prevista en los arts. 21 y 22 LRT. \par
    \toc1\plain\f0\fs26\cf0\b\i Esto es as\u237 ?, pues si bien el trabajador actor plante\u243 ? su demanda indemnizatoria ante el Poder Judicial mendocino sin haber previamente ocurrido ante dichos \u243 ?rganos, ello encuentra explicaci\u243 ?n en la propia sentencia del a quo. En efecto, este \u250 ?ltimo ensay\u243 ? la hip\u243 ?tesis de que el reclamante pudo haber actuado de la manera indicada "para evitar que se considerara -mal o bien- que se hab\u237 ?a sometido voluntariamente a un r\u233 ?gimen legal que lo lleva luego autom\u225 ?ticamente por el camino de la justicia federal" (fs. 292 del expediente principal, agregado por cuerda). Luego, atento a que esta consideraci\u243 ?n ha quedado firme ante la falta de cuestionamiento alguno, el tribunal debe atenerse a ella, m\u225 ?xime cuando las comisiones mencionadas son "organismos de orden federal" (Fallos 322:1220).\par
    }}

    Hi;

    Please, what is the TWPRichText event to be used for marking words whit the red waves. Is there an example for doinw or own spell check on the fly method?.

    OnSpellCheckWord is not published in the TWPRichView class.

    Thank you.

    Felipe

    Julian;

    Ok, now I changed it:


    if Ref.AGetDef(WPAT_BorderFlags, i) and ((i or WPBRD_DRAW_ALL4) = i) then


    But the problem is when border is WPBRD_SINGLE:


    Ref.AGet(WPAT_BorderType, t) returns False
    Ref.AGet(WPAT_BorderTypeT, t) returns False
    Ref.AGet(WPAT_BorderTypeL, t) returns False
    Ref.AGet(WPAT_BorderTypeB, t) returns False
    Ref.AGet(WPAT_BorderTypeR, t) returns False


    Why is that?, it may return true, I guess.

    Thank you.

    Felipe

    Hello,

    I can't find how to read what type of borders are set for a paragraph. AGet does not return what is set for the paragraph. My code for checking it is:


    var
    i, t: integer;
    Ref: TParagraph;
    begin
    Ref := WP.ActiveParagraph;
    i := Ref.AGetDef(WPAT_BorderFlags, -1);
    if ((i or WPBRD_DRAW_ALL4) = i) then
    begin
    if not (Ref.AGet(WPAT_BorderType, t) or
    Ref.AGet(WPAT_BorderTypeT, t) or
    Ref.AGet(WPAT_BorderTypeL, t) or
    Ref.AGet(WPAT_BorderTypeB, t) or
    Ref.AGet(WPAT_BorderTypeR, t)) then ...


    When I try with a WPBRD_SINGLE border, all the AGet are returning False (meaning WP does not see any of this properties). Here is the rtf example:


    {\rtf1\ansi\deff0\uc1\ansicpg1252\deftab720{\fonttbl{\f0\fnil\fcharset1 Times New Roman;}{\f1\fnil\fcharset1 Arial;}{\f2\fnil\fcharset2 Wingdings;}{\f3\fnil\fcharset2 Symbol;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;}\wpprheadfoot1\paperw12240\paperh15840\margl720\margr720\margt720\margb720\headery720\footery720\ftnbj\sftnbj\sftnrstcont\nocolbal\sftnnar\saftnnar\fet0\endnhere\sectdefaultcl{\*\generator WPTools_6.060-PRM;}{\pard\brdrl\brdrs\brdrr\brdrs\brdrt\brdrs\brdrb\brdrs\plain\f0\fs22 este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo \par
    }}


    Instead, when I try WPBRD_SINGLE border, it returns t=2 (but it may return WPBRD_DOUBLE which is equal to 4). Here is the rtf example:


    {\rtf1\ansi\deff0\uc1\ansicpg1252\deftab720{\fonttbl{\f0\fnil\fcharset1 Times New Roman;}{\f1\fnil\fcharset2 Wingdings;}{\f2\fnil\fcharset2 Symbol;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;}\wpprheadfoot1\paperw12240\paperh15840\margl720\margr720\margt720\margb720\headery720\footery720\ftnbj\sftnbj\sftnrstcont\nocolbal\sftnnar\saftnnar\fet0\endnhere\sectdefaultcl{\*\generator WPTools_6.060-PRM;}{\pard\brdrl\brdrth\brdrr\brdrth\brdrt\brdrth\brdrb\brdrth\plain\fs22 este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo este es mi parrafo \par
    }}


    In both examples, the WP output is the needes (first one single, last one double).

    Where is my fault?

    Thank you.

    Felipe

    Julian;

    We can control how de users define the borders, and we can stablish a limitation to cero width when a dotted border is used.

    But we can´t control what they bring in from other text editors that have the capacity of using dotted borders with width bigger than cero.

    So I think WP reader has to fix this parameters, or it has to paint an acceptable representation (for example without loosing a border like in my example screenshot), without errors.

    I think the best is the reader solution, because in that way WP will paint properly, and also we will have a chance to edit that properties in a WYSIWYG way.

    Thank you.

    Felipe

    Julian;

    Sorry but I tried for monthds to make WPTools 6 to show very simple paragraph borders without success, and this one is just a case. WPTools has no problem to print a dotted line (please note de margin box dotted line). It has problems with paragraph border in general.

    If I set dotted border with WP6 I see this:

    [Blockierte Grafik: http://www.freeimagehosting.net/t/44baa.jpg]

    Not only if paints solid line, it also forget to print a bottom line in a box.
    But if I open this document with WP4, I see it very well:

    [Blockierte Grafik: http://www.freeimagehosting.net/t/a5e61.jpg]

    Same if I open it with MS-Word:

    [Blockierte Grafik: http://www.freeimagehosting.net/t/d3cae.jpg]

    Best regards,

    Felipe

    Hi;

    A form has an WPRichText control, and I want it to show the text at a CPPosition; with WPTools 4 I set that position in the TForm.OnShow event and it works; but with WPTools 6, it does not show current CPPosition when the form shows up. I checked CPPosition when the form is visible, and it is in the needed position, but WPRichText is showing the top of document.

    How do I show the document starting at the wanted CPPosition?.

    Thank you.

    Felipe.

    Hi Julian;

    For example, I am editing the header, and I try:

    WP.WorkOnText := wpIsFooter;
    WP.CPPosition := 0;
    WP.SetFocus;

    ... but not, it does not scroll; I mean, cursor is set on footer but I still see header and body, but not the footer. I also tried:

    WP.ScrollToPosition(WP.CPPosition, 0, 0);

    ... same results.

    Felipe.

    Hi;

    I am inserting a type wpobjHorizontalLine text object, and I am protecting the whole paragraph so editing is posible on it (as Julian suggested me).

    But I see that, even if paragraph is protected, the object can be selected (by clicking) and then deleted.

    That, is not bad for me, if I also can delete the parent paragraph too. Otherwise, it will be an empty/protected paragraph into the text, and I think it is not so good.

    How can I tell WP to delete this paragraph too, when the object is deleted?.

    Thank you.

    Felipe

    Hi;

    Fine, it works to get the footnote value; now I try to change that value with a new one, but as I see on the manual this RTFTEXT object does not expose a property or method to set it as an ansi string. "AsString" seems to be rtf format.

    How do I set it?

    Felipe

    Hi;

    You say you use SaveToFile to save to a tmp file; try to load into WP editor from that file and, if it works, you can be sure the problem is not about WPTools.

    I think you are getting some kind of string convertion when you load/save to the database.

    Felipe.

    Hi Julian;

    Ok, I tried and it is much better; but I see two things:

    1. The line, not always is painted with the same Height.

    2. If I am at the end of the protected paragraph, I can't press <Enter> for adding a new one; and, if the line is the last paragraph in the document, then I can't add more text after it.

    3. Even if the paragraph is protected, it still accepts changes in the paragraph properties (like indents); so, if the user want a full horizontal line (from left margin to right marging) he must take care when it does paragraph formating for the whole text, because he line changes too (even if it is protected).

    4. Is there a way to show the line with a special background or so when it is focused?. I tried to use ProtectedTextAttr but nothing.

    Thank you.

    Felipe

    Hi;

    I can find footnote object at CPPosition witn FootnoteAtCP. But I can't see how to retrieve the text. I tried using EmbeddedText and GetText but I get empty string.

    Is there a property to get/set Footnote text?.

    Thank you.

    Felipe

    Hi;

    Is it possible to add an horizontal line in a way it's paragraph remains read-only and only can be deleted?.

    I use the next code for inserting and it works. But if I go to the begin of the line, I can start adding text to the same paragrph. Also, if I remove the end of paragraph for the previous paragraph then both paragraphs are joined.


    Thank you.

    Felipe