示例#1
0
        public override void Perform(MHEngine engine)
        {
            MHObjectRef target = new MHObjectRef();

            m_Target.GetValue(target, engine); // Get the target
            if (m_fIsIncluded)
            {                                  // Included content
                MHOctetString included = new MHOctetString();
                m_Included.GetValue(included, engine);
                engine.FindObject(target).SetData(included, engine);
            }
            else
            {
                MHContentRef referenced = new MHContentRef();
                int          size, cc;
                m_Referenced.GetValue(referenced, engine);
                if (m_fSizePresent)
                {
                    size = m_ContentSize.GetValue(engine);
                }
                else
                {
                    size = 0;
                }
                if (m_fCCPriorityPresent)
                {
                    cc = m_CCPriority.GetValue(engine);
                }
                else
                {
                    cc = 0;
                }
                engine.FindObject(target).SetData(referenced, m_fSizePresent, size, m_fCCPriorityPresent, cc, engine);
            }
        }
示例#2
0
        public override void Perform(MHEngine engine)
        {
            MHObjectRef target = new MHObjectRef();

            m_Target.GetValue(target, engine); // Get the item to set.
            MHColour newColour = new MHColour();

            switch (m_ColourType)
            {
            case CT_None:
            {
                // If the colour is not specified use "transparent".
                newColour.SetFromString("\u0000\u0000\u0000\u00FF");
                break;
            }

            case CT_Absolute:
            {
                MHOctetString colour = new MHOctetString();
                m_Absolute.GetValue(colour, engine);
                newColour.ColStr.Copy(colour);
                break;
            }

            case CT_Indexed:
                newColour.SetFromIndex(m_Indexed.GetValue(engine));
                break;
            }
            SetColour(newColour, engine); // Set the colour of the appropriate portion of the visible
        }
        public override void Perform(MHEngine engine)
        {
            // Ignore the target which isn't used.
            MHOctetString feature = new MHOctetString();

            m_Feature.GetValue(feature, engine);
            engine.FindObject(m_Answer).SetVariableValue(new MHUnion(engine.GetEngineSupport(feature)));
        }
        public override void Perform(MHEngine engine)
        {
            // Get the new font attributes.
            MHOctetString newAttrs = new MHOctetString();

            m_FontAttrs.GetValue(newAttrs, engine);
            Target(engine).SetFontAttributes(newAttrs, engine);
        }
示例#5
0
        public override void Perform(MHEngine engine)
        {
            MHObjectRef target = new MHObjectRef();

            m_Target.GetValue(target, engine); // Get the target - this should always be the application
            MHOctetString fileName = new MHOctetString();

            m_FileName.GetValue(fileName, engine);
            bool fResult = engine.LoadStorePersistent(m_bIsLoad, fileName, m_Variables);

            engine.FindObject(m_Succeeded).SetVariableValue(new MHUnion(fResult));
        }
示例#6
0
        public override void Perform(MHEngine engine)
        {
            MHUnion targetVal = new MHUnion();
            // Find the target and get its current value.  The target can be an indirect reference.
            MHObjectRef parm = new MHObjectRef();

            m_Target.GetValue(parm, engine);
            MHRoot pTarget = engine.FindObject(parm);

            pTarget.GetVariableValue(targetVal, engine);
            targetVal.CheckType(MHUnion.U_String);
            // Get the string to append.
            MHOctetString toAppend = new MHOctetString();

            m_Operand.GetValue(toAppend, engine);
            targetVal.String.Append(toAppend);   // Add it on the end
            pTarget.SetVariableValue(targetVal); // Set the target to the result.
        }