Package com.sun.star.report

Examples of com.sun.star.report.XSection


           
        }
    }
    private void clearDetails()
    {
        final XSection xSection = getReportDefinition().getDetail();
        emptySection(xSection);
    }
View Full Code Here


            {
                final XGroups xForeignGroups = getDesignTemplate().getGroups();
                int nGroups = xForeignGroups.getCount();
                Object aForeignGroup = xForeignGroups.getByIndex(_nGroup);
                XGroup xForeignGroup = (XGroup)UnoRuntime.queryInterface(XGroup.class, aForeignGroup);
                XSection xForeignGroupSection = xForeignGroup.getHeader();

                if (xForeignGroupSection != null)
                {
                    final XGroups xGroups = getReportDefinition().getGroups();
                    Object aGroup = xGroups.getByIndex(_nGroup);
                    XGroup xGroup = (XGroup)UnoRuntime.queryInterface(XGroup.class, aGroup);
                    XSection xGroupSection = xGroup.getHeader();
                   
                    // copy Properties
                    copyProperties(xForeignGroupSection, xGroupSection);
                }
            }
View Full Code Here

               // we need to append by hand
               // TODO: documentation is unclear here, that we have to insert by hand
               int nCount = xGroups.getCount();
               xGroups.insertByIndex(nCount, xGroup);

               final XSection xGroupSection = xGroup.getHeader();
               copyGroupProperties(nCount);
              
               Rectangle aRect = new Rectangle();
               aRect.X = nLeftPageIndent + getLeftGroupIndent(i);
               SectionObject aSO = getDesignTemplate().getGroupLabel(i);
               int nLabelHeight = 0;
//               if (aSO != null)
//               {
                   nLabelHeight = aSO.getHeight(500);
                   aRect = insertLabel(xGroupSection, getTitleFromFieldName(m_aGroupNames[i]), aRect, nLabelWidth, aSO);
//               }
//               else
//               {
//                   nLabelHeight = 500;
//                   aRect = insertBoldLabel(xGroupSection, getTitleFromFieldName(m_aGroupNames[i]), aRect, nLabelWidth);
//               }
               final String sGroupName = convertToFieldName(m_aGroupNames[i]);
               aSO = getDesignTemplate().getGroupTextField(i);
               insertFormattedField(xGroupSection, sGroupName, aRect, nFieldWidth, aSO);

               // draw a line under the label/formattedfield
               aRect.X = nLeftPageIndent + getLeftGroupIndent(i);
               aRect.Y = nLabelHeight;
               final int nLineWidth = getPageWidth() - getRightPageIndent() - aRect.X;
               final int nLineHeight = 250;
               insertHorizontalLine(xGroupSection, aRect, nLineWidth, nLineHeight);
               xGroupSection.setHeight(nLabelHeight + nLineHeight);
           }
           catch (com.sun.star.uno.Exception e)
           {
               // TODO: Exception not set.
           }
View Full Code Here

    {
        if (getDesignTemplate() != null )
        {
            try
            {
                XSection xForeignSection = getDesignTemplate().getDetail();
                if (xForeignSection != null)
                {
                    XSection xSection = getReportDefinition().getDetail();
                   
                    // copy Properties
                    copyProperties(xForeignSection, xSection);
                }
            }
View Full Code Here

    }
   
    // -------------------------------------------------------------------------
    protected void clearReportHeader()
    {
        XSection xSection;
        try
        {
            if (getReportDefinition().getReportHeaderOn())
            {
                xSection = getReportDefinition().getReportHeader();           
View Full Code Here

            if (getDesignTemplate().getReportHeaderOn())
            {
                // copy all Section information from Page Header to our Header
                try
                {
                    XSection xForeignSection = getDesignTemplate().getReportHeader();

                    if (xForeignSection != null)
                    {
                        getReportDefinition().setReportHeaderOn(true);
                        XSection xSection = getReportDefinition().getReportHeader();

                        // copy Sections
                        copySection(xForeignSection, xSection);
                    }
                }
View Full Code Here

            }
        }
    }
    protected void clearReportFooter()
    {
        XSection xSection;
        try
        {
            if (getReportDefinition().getReportFooterOn())
            {
                xSection = getReportDefinition().getReportFooter();
View Full Code Here

            if (getDesignTemplate().getReportFooterOn())
            {
                // copy all Section information from Page Header to our Header
                try
                {
                    XSection xForeignSection = getDesignTemplate().getReportFooter();

                    if (xForeignSection != null)
                    {
                        getReportDefinition().setReportFooterOn(true);
                        XSection xSection = getReportDefinition().getReportFooter();

                        // copy Sections
                        copySection(xForeignSection, xSection);
                    }
                }
View Full Code Here

    }
   
    // -------------------------------------------------------------------------
    protected void clearPageHeader()
    {
        XSection xSection;
        try
        {
            if (getReportDefinition().getPageHeaderOn())
            {
                xSection = getReportDefinition().getPageHeader();           
View Full Code Here

//       
//    }
       
    protected void clearPageFooter()
    {
        XSection xSection;
        try
        {
            if (getReportDefinition().getPageFooterOn())
            {
                xSection = getReportDefinition().getPageFooter();
View Full Code Here

TOP

Related Classes of com.sun.star.report.XSection

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.