Make the TextView as large as a A4 page

Bug #1363685 reported by Tuur Dutoit
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Writer
Confirmed
Low
Unassigned

Bug Description

The TextView should be rendered as a page, as described in https://bugs.launchpad.net/writer/+bug/1360926. To get the full illusion, the TextView should be exactly as wide as a normal A4 page, and a slider would allow zooming in/out.

Now, how do we get the TextView to the right width? Are CSS cm or in units supported? Or are we going to have to fiddle around with screen resolutions and whatnot?

Tags: ui
tags: added: ui
Changed in writer:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Anthony Huben (harp37) wrote :

We should plan on inches. I believe, everything will work correctly since I have seen a couple of example using inches in them.

I don't think we should enable zooming yet. If you were thinking about doing this, I would advice waiting.

Letter (8.5 by 11) would be great to support, too, since this is the U.S. standard. A4 should be the optional format. It is well perfered by me and businesses.

This should be our number one priority, including other major tasks such as CMake, saving, and tabs. However, these things will come and development is a thing of beauty.

Revision history for this message
Tuur Dutoit (tuur-dutoit-f) wrote :

I think we should use centimeters in the code, as this is the international standard (except the USA). And we should support both Letter and A4 (again, A4 being the international standard, and Letter for US users).

I'm currently working on the styling of the toolbars and textview (I finally got hem working), so when I find out how to make them the right size, I'll do that.

Finally, I think you are working on tabs, is that correct? When we are done with what we're currently doing (styling, CMake and tabs), we can start with saving. Is that ok?

Revision history for this message
Ryan Riffle (ryanriffle) wrote :

It would be a minute task once it can be set like a page, to provide more than just A4 and Letter. I would think that if you were to support A4 that support for the other A class paper sizes should also be there, likewise for Letter.

Revision history for this message
Ryan Riffle (ryanriffle) wrote :

Also getting it to look like a page is all good, but we also need to think of how multiple pages will be possible before writing the code to do this and have to change it because it doesn't allow for multiple pages.

One of the problems is that currently a TextView is used which will just scroll when the text overflows the page. I am not sure if css is capable of making it look like a new page has started because on my web based word processor it wasn't able to. I had to check the paragraph positions and create a new page element if one was needed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.