summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rsc/source/parser/rscinit.cxx1
-rw-r--r--rsc/source/parser/rscyacc.y13
2 files changed, 14 insertions, 0 deletions
diff --git a/rsc/source/parser/rscinit.cxx b/rsc/source/parser/rscinit.cxx
index 0cec6cb720c0..eb02f71f26f3 100644
--- a/rsc/source/parser/rscinit.cxx
+++ b/rsc/source/parser/rscinit.cxx
@@ -105,6 +105,7 @@ void RscTypCont::Init()
aNmTb.Put( "POS", POSITION, (sal_IntPtr)0 );
aNmTb.Put( "SIZE", DIMENSION, (sal_IntPtr)0 );
aNmTb.Put( "ZoomInOutputSize", INZOOMOUTPUTSIZE,(sal_IntPtr)0 );
+ aNmTb.Put( "FloatingPos", FLOATINGPOS, (sal_IntPtr)0 );
}
{
aShort.SetRange( -32768, 32767 );
diff --git a/rsc/source/parser/rscyacc.y b/rsc/source/parser/rscyacc.y
index bf966214c1d2..43272f2fc8c8 100644
--- a/rsc/source/parser/rscyacc.y
+++ b/rsc/source/parser/rscyacc.y
@@ -307,6 +307,7 @@ RSCINST GetFirstTupelEle( const RSCINST & rTop )
%token POSITION
%token DIMENSION
%token INZOOMOUTPUTSIZE
+%token FLOATINGPOS
%token DEFINE
%token INCLUDE
%token MACROTARGET
@@ -755,6 +756,18 @@ var_definition
SetNumber( S.Top(), "_ZOOMINWIDTH", $4 );
SetNumber( S.Top(), "_ZOOMINHEIGHT", $6 );
}
+ | FLOATINGPOS '=' CONSTNAME '(' long_expression ',' long_expression
+ ')' ';'
+ {
+ SetConst( S.Top(), "_FLOATINGPOSMAPMODE", $3.hashid, $3.nValue );
+ SetNumber( S.Top(), "_FLOATINGPOSX", $5 );
+ SetNumber( S.Top(), "_FLOATINGPOSY", $7 );
+ }
+ | FLOATINGPOS '=' '(' long_expression ',' long_expression ')' ';'
+ {
+ SetNumber( S.Top(), "_FLOATINGPOSX", $4 );
+ SetNumber( S.Top(), "_FLOATINGPOSY", $6 );
+ }
;
var_header_class