Issue 67474 - need support for mixed fix column-width and proportion column-width
Summary: need support for mixed fix column-width and proportion column-width
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.0.3
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-17 21:48 UTC by jianzhang
Modified: 2013-02-07 22:33 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jianzhang 2006-07-17 21:48:29 UTC
in a table, sometimes it need to fix width for some columns will one or  more 
column will be taking left over width. (ie. account detail report, where amount 
column has to be fixed in order fit possible numbers for the amounts, but the 
descrption column can be shorted if margin reduces)

In the edit/design mode, all above function can be done when then content and 
margin of document is already know.

when we write a program to create a xml content, where we allow user to choose 
the docuemnt margin, it becomes defficult to deal with, speically the 
programming of table is totally seperated from config margin settings for user.


it would be good if OO can support the following:
first 2 cols are proportion of left over width after 3rd col (ie, id user 
select margin is left 1in, right 1in, table width should be 6.5in and left over 
4.5in, col1 = 4.5in*40% = 1.8in col2 = 4.5in*60% = 2.7in) 

HTML would work this way.
open document spec. didn't say table cannot have two mix column types.

<style:style style:family="table-column" style:name="col1"> 
    <style:table-column-properties style:rel-column-width="40%"/> 
  </style:style> 
 
  <style:style style:family="table-column" style:name="col2"> 
    <style:table-column-properties style:rel-column-width="60%"/> 
  </style:style> 
  <style:style style:family="table-column" style:name="col3"> 
    <style:table-column-properties style:rel-column-width="2in"/> 
  </style:style> 
 
  <!-- .... --> 
 
  <table:table table:style-name="YYY" table:table-name="t1" > 
    <table:table-columns> 
      <table:table-column table:style-name="col1"/> 
      <table:table-column table:style-name="col2"/> 
      <table:table-column table:style-name="col3"/> 
    </table:table-columns> 
 
    <!-- ... --> 
 
  </table:table>
Comment 1 michael.ruess 2006-07-18 10:21:39 UTC
Reassigned to requirements.