"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Plugins/Pdf/PDFWriter/PDFPage.cpp" between
TeXmacs-1.99.4-src.tar.gz and TeXmacs-1.99.5-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

PDFPage.cpp  (TeXmacs-1.99.4-src):PDFPage.cpp  (TeXmacs-1.99.5-src)
skipping to change at line 20 skipping to change at line 20
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
#include "PDFPage.h" #include "PDFPage.h"
#include "Trace.h"
PDFPage::PDFPage(void) PDFPage::PDFPage(void)
{ {
mContentContext = NULL; mContentContext = NULL;
mRotate.first = false;
mTrimBox.first = false; mTrimBox.first = false;
mArtBox.first = false; mArtBox.first = false;
mCropBox.first = false; mCropBox.first = false;
mBleedBox.first = false; mBleedBox.first = false;
} }
PDFPage::~PDFPage(void) PDFPage::~PDFPage(void)
{ {
} }
void PDFPage::SetMediaBox(const PDFRectangle& inMediaBox) void PDFPage::SetMediaBox(const PDFRectangle& inMediaBox)
{ {
mMediaBox = inMediaBox; mMediaBox = inMediaBox;
} }
const PDFRectangle& PDFPage::GetMediaBox() const const PDFRectangle& PDFPage::GetMediaBox() const
{ {
return mMediaBox; return mMediaBox;
} }
void PDFPage::SetRotate( unsigned int inRotate )
{
if ( inRotate % 90 )
{
TRACE_LOG("PDFPage::SetRotate, Exception, the value must be a multiple o
f 90. defaulting to 0");
inRotate = 0;
}
mRotate.first = true;
mRotate.second = inRotate;
}
const BoolAndUnsignedInt& PDFPage::GetRotate() const
{
return mRotate;
}
void PDFPage::AddContentStreamReference(ObjectIDType inStreamReference) void PDFPage::AddContentStreamReference(ObjectIDType inStreamReference)
{ {
mContentStreamReferences.push_back(inStreamReference); mContentStreamReferences.push_back(inStreamReference);
} }
ObjectIDType PDFPage::GetContentStreamsCount() ObjectIDType PDFPage::GetContentStreamsCount()
{ {
return (ObjectIDType)mContentStreamReferences.size(); return (ObjectIDType)mContentStreamReferences.size();
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 19 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS