Package com.sun.star.wizards.document

Examples of com.sun.star.wizards.document.TimeStampControl


            }
            else{
                DatabaseControl[] DBControls = curControlForm.getDatabaseControls();
                for (int n = 0; n < DBControls.length; n++){
                    if (DBControls[n].xServiceInfo.supportsService("com.sun.star.drawing.ShapeCollection")){
                        TimeStampControl oTimeStampControl = (TimeStampControl) DBControls[n];
                        for (int i = 0; i < 2; i++){
                            XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i);
                            if (xPropertySet.getPropertySetInfo().hasPropertyByName("Border"))
                                xPropertySet.setPropertyValue("Border", IBorderValue);
                        }
                    }
                    else{                      
View Full Code Here


            else{
                DatabaseControl[] DBControls = curControlForm.getDatabaseControls();
                for (int n = 0; n < DBControls.length; n++){
                    if (_iStyleColors[SODBTEXTCOLOR] > -1)
                        if (DBControls[n].xServiceInfo.supportsService("com.sun.star.drawing.ShapeCollection")){
                                TimeStampControl oTimeStampControl = (TimeStampControl) DBControls[n];
                                for (int i = 0; i < 2; i++){
                                    XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i);
                                    setDBControlColors(xPropertySet, _iStyleColors);
                                }
                        }
                        else
                            setDBControlColors(DBControls[n].xPropertySet, _iStyleColors);
View Full Code Here

            if (((curLabelControl.getSize().Width > curDBControl.getSize().Width)) && (WidthFactor > 0))
                nControlBaseWidth = curLabelControl.getSize().Width;
            else
                nControlBaseWidth = curDBControl.getSize().Width;
            if (FieldColumns[i].FieldType == DataType.TIMESTAMP){
                TimeStampControl oDBTimeStampControl = (TimeStampControl) curDBControl;
                nControlBaseWidth = oDBTimeStampControl.getSize().Width;
                if (this.isReducable(i) || WidthFactor > 0)
                    oDBTimeStampControl.setSize( new Size(nControlBaseWidth + WidthFactor * CorrWidth, oDBTimeStampControl.getSize().Height));
            }
            else{
                if (this.isReducable(i) || WidthFactor > 0)
                    curDBControl.setSize( new Size(nControlBaseWidth + WidthFactor * CorrWidth, curDBControl.getSize().Height));
            }
View Full Code Here

        Point aPoint = new Point(nXDBPos, nYDBPos);
        if (bControlsareCreated)
            DBControlList[i].setPosition(aPoint);
        else{
            if (FieldColumns[i].FieldType == DataType.TIMESTAMP)
                DBControlList[i] = new TimeStampControl(new Resource(xMSF, "FormWizard", "dbw"), oFormHandler, xFormName, FieldColumns[i].FieldName, aPoint);
            else{      
                DBControlList[i] = new DatabaseControl(oFormHandler, xFormName, FieldColumns[i].FieldName, FieldColumns[i].FieldType, aPoint);
                if (DBControlList[i].getControlType() == FormHandler.SOCHECKBOX)
                    DBControlList[i].setPropertyValue("Label", "");
            }
View Full Code Here

            {
                nControlBaseWidth = curDBControl.getSize().Width;
            }
            if (FieldColumns[i].getFieldType() == DataType.TIMESTAMP)
            {
                TimeStampControl oDBTimeStampControl = (TimeStampControl) curDBControl;
                nControlBaseWidth = oDBTimeStampControl.getSize().Width;
                if (this.isReducable(i) || WidthFactor > 0)
                {
                    oDBTimeStampControl.setSize(new Size(nControlBaseWidth + WidthFactor * CorrWidth, oDBTimeStampControl.getSize().Height));
                }
            }
            else
            {
                if (this.isReducable(i) || WidthFactor > 0)
View Full Code Here

            }
            else
            {
                if (nFieldType == DataType.TIMESTAMP)
                {
                    DBControlList[i] = new TimeStampControl(new Resource(xMSF, "FormWizard", "dbw"), oFormHandler, xFormName, sFieldName, aPoint);
                }
                else
                {
                    DBControlList[i] = new DatabaseControl(oFormHandler, xFormName, sFieldName, nFieldType, aPoint);
                    if (DBControlList[i].getControlType() == FormHandler.SOCHECKBOX)
View Full Code Here

                    DatabaseControl[] DBControls = curControlForm.getDatabaseControls();
                    for (int n = 0; n < DBControls.length; n++)
                    {
                        if (DBControls[n].xServiceInfo.supportsService("com.sun.star.drawing.ShapeCollection"))
                        {
                            TimeStampControl oTimeStampControl = (TimeStampControl) DBControls[n];
                            for (int i = 0; i < 2; i++)
                            {
                                XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i);
                                if (xPropertySet.getPropertySetInfo().hasPropertyByName("Border"))
                                {
                                    xPropertySet.setPropertyValue("Border", IBorderValue);
                                }
                            }
View Full Code Here

                            DatabaseControl aDBControl = DBControls[n];
                            if (aDBControl != null)
                            {
                                if (aDBControl.xServiceInfo.supportsService("com.sun.star.drawing.ShapeCollection"))
                            {
                                    TimeStampControl oTimeStampControl = (TimeStampControl) aDBControl;
                                for (int i = 0; i < 2; i++)
                                {
                                    XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i);
                                    setDBControlColors(xPropertySet, _iStyleColors);
                                }
                            }
                            else
                            {
View Full Code Here

            {
                nControlBaseWidth = controlSize.Width;
            }
            if (FieldColumns[i].getFieldType() == DataType.TIMESTAMP)
            {
                TimeStampControl oDBTimeStampControl = (TimeStampControl) dbControl;
                nControlBaseWidth = oDBTimeStampControl.getSize().Width;
            }
            if (WidthFactor > 0 || isReducable(i, labelSize.Width, controlSize.Width))
            {
                controlSize.Width = nControlBaseWidth + WidthFactor * CorrWidth;
                dbControl.setSize(controlSize);
View Full Code Here

            }
            else
            {
                if (nFieldType == DataType.TIMESTAMP)
                {
                    DBControlList[i] = new TimeStampControl(new Resource(xMSF, "FormWizard", "dbw"), oFormHandler, xFormName, sFieldName, aPoint);
                }
                else
                {
                    DBControlList[i] = new DatabaseControl(oFormHandler, xFormName, sFieldName, nFieldType, aPoint);
                    if (DBControlList[i].getControlType() == FormHandler.SOCHECKBOX)
View Full Code Here

TOP

Related Classes of com.sun.star.wizards.document.TimeStampControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.